/[gentoo-x86]/eclass/mythtv.eclass
Gentoo

Diff of /eclass/mythtv.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.10 Revision 1.13
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/mythtv.eclass,v 1.10 2008/02/14 22:41:49 cardoe Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mythtv.eclass,v 1.13 2008/04/01 04:05:02 cardoe Exp $
4# 4#
5# @ECLASS: mythtv.eclass 5# @ECLASS: mythtv.eclass
6# @MAINTAINER: Doug Goldstein <cardoe@gentoo.org> 6# @MAINTAINER: Doug Goldstein <cardoe@gentoo.org>
7# @BLURB: Downloads the MythTV source packages and any patches from the fixes branch 7# @BLURB: Downloads the MythTV source packages and any patches from the fixes branch
8# 8#
14 14
15# what product do we want 15# what product do we want
16case "${PN}" in 16case "${PN}" in
17 mythtv) MY_PN="mythtv";; 17 mythtv) MY_PN="mythtv";;
18 mythtv-themes) MY_PN="myththemes";; 18 mythtv-themes) MY_PN="myththemes";;
19 mythtv-themes-extra) MY_PN="themes";;
19 *) MY_PN="mythplugins";; 20 *) MY_PN="mythplugins";;
20esac 21esac
21 22
22# _pre is from SVN trunk while _p and _beta are from SVN ${MY_PV}-fixes 23# _pre is from SVN trunk while _p and _beta are from SVN ${MY_PV}-fixes
23# TODO: probably ought to do something smart if the regex doesn't match anything 24# TODO: probably ought to do something smart if the regex doesn't match anything
24[[ "${PV}" =~ (_beta|_pre|_p)([0-9]+) ]] || { 25[[ "${PV}" =~ (_beta|_pre|_p|_alpha)([0-9]+) ]] || {
25 eerror "Invalid version requested (_beta|_pre|_p) only" 26 eerror "Invalid version requested (_alpha|_beta|_pre|_p) only"
26 exit 1 27 exit 1
27} 28}
28 29
29REV_PREFIX="${BASH_REMATCH[1]}" # _beta, _pre, or _p 30REV_PREFIX="${BASH_REMATCH[1]}" # _beta, _pre, or _p
30MYTHTV_REV="${BASH_REMATCH[2]}" # revision number 31MYTHTV_REV="${BASH_REMATCH[2]}" # revision number
31 32
32case $REV_PREFIX in 33case $REV_PREFIX in
33 _pre) MYTHTV_REPO="trunk/${MY_PN}";; 34 _pre|_alpha) MYTHTV_REPO="trunk/${MY_PN}";;
34 _p|_beta) VER_COMP=( $(get_version_components ${MY_PV}) ) 35 _p|_beta) VER_COMP=( $(get_version_components ${MY_PV}) )
35 FIXES_VER="${VER_COMP[0]}-${VER_COMP[1]}" 36 FIXES_VER="${VER_COMP[0]}-${VER_COMP[1]}"
36 MYTHTV_REPO="branches/release-${FIXES_VER}-fixes/${MY_PN}";; 37 MYTHTV_REPO="branches/release-${FIXES_VER}-fixes/${MY_PN}";;
37esac 38esac
38 39
39ESVN_REPO_URI="http://svn.mythtv.org/svn/${MYTHTV_REPO}" 40ESVN_REPO_URI="http://svn.mythtv.org/svn/${MYTHTV_REPO}@${MYTHTV_REV}"
40ESVN_OPTIONS="-r ${MYTHTV_REV}"
41 41
42HOMEPAGE="http://www.mythtv.org" 42HOMEPAGE="http://www.mythtv.org"
43LICENSE="GPL-2" 43LICENSE="GPL-2"
44SRC_URI="" 44SRC_URI=""

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20