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

Contents of /eclass/mythtv.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (hide annotations) (download)
Thu Feb 14 22:41:49 2008 UTC (6 years, 6 months ago) by cardoe
Branch: MAIN
Changes since 1.9: +26 -41 lines
I removed all backwords compat support for installing older versions. After removing the old stuff, kojiro checked it out and cleaned up the resultant eclass.

1 cardoe 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 cardoe 1.10 # $Header: /var/cvsroot/gentoo-x86/eclass/mythtv.eclass,v 1.9 2008/02/14 20:37:45 cardoe Exp $
4 cardoe 1.1 #
5 cardoe 1.7 # @ECLASS: mythtv.eclass
6     # @MAINTAINER: Doug Goldstein <cardoe@gentoo.org>
7     # @BLURB: Downloads the MythTV source packages and any patches from the fixes branch
8 cardoe 1.1 #
9 cardoe 1.7
10 cardoe 1.10 inherit eutils versionator subversion
11 cardoe 1.1
12     # Release version
13     MY_PV="${PV%_*}"
14    
15 cardoe 1.7 # what product do we want
16 cardoe 1.10 case "${PN}" in
17     mythtv) MY_PN="mythtv";;
18     mythtv-themes) MY_PN="myththemes";;
19     *) MY_PN="mythplugins";;
20     esac
21    
22     # _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     [[ "${PV}" =~ (_beta|_pre|_p)([0-9]+) ]] || {
25     eerror "Invalid version requested (_beta|_pre|_p) only"
26     exit 1
27     }
28    
29     REV_PREFIX="${BASH_REMATCH[1]}" # _beta, _pre, or _p
30     MYTHTV_REV="${BASH_REMATCH[2]}" # revision number
31 cardoe 1.1
32 cardoe 1.10 case $REV_PREFIX in
33     _pre) MYTHTV_REPO="trunk/${MY_PN}";;
34     _p|_beta) VER_COMP=( $(get_version_components ${MY_PV}) )
35     FIXES_VER="${VER_COMP[0]}-${VER_COMP[1]}"
36     MYTHTV_REPO="branches/release-${FIXES_VER}-fixes/${MY_PN}";;
37     esac
38    
39     ESVN_REPO_URI="http://svn.mythtv.org/svn/${MYTHTV_REPO}"
40     ESVN_OPTIONS="-r ${MYTHTV_REV}"
41 cardoe 1.5
42 cardoe 1.1 HOMEPAGE="http://www.mythtv.org"
43 cardoe 1.2 LICENSE="GPL-2"
44 cardoe 1.4 SRC_URI=""

  ViewVC Help
Powered by ViewVC 1.1.20