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

Contents of /eclass/mythtv.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Tue Apr 1 04:05:02 2008 UTC (6 years, 5 months ago) by cardoe
Branch: MAIN
Changes since 1.12: +2 -1 lines
mythtv-themes-extra support from Jesse Adelman <jesse@boldandbusted.com> bug #214453

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/mythtv.eclass,v 1.12 2008/03/06 20:43:16 cardoe Exp $
4 #
5 # @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 #
9
10 inherit eutils versionator subversion
11
12 # Release version
13 MY_PV="${PV%_*}"
14
15 # what product do we want
16 case "${PN}" in
17 mythtv) MY_PN="mythtv";;
18 mythtv-themes) MY_PN="myththemes";;
19 mythtv-themes-extra) MY_PN="themes";;
20 *) MY_PN="mythplugins";;
21 esac
22
23 # _pre is from SVN trunk while _p and _beta are from SVN ${MY_PV}-fixes
24 # TODO: probably ought to do something smart if the regex doesn't match anything
25 [[ "${PV}" =~ (_beta|_pre|_p|_alpha)([0-9]+) ]] || {
26 eerror "Invalid version requested (_alpha|_beta|_pre|_p) only"
27 exit 1
28 }
29
30 REV_PREFIX="${BASH_REMATCH[1]}" # _beta, _pre, or _p
31 MYTHTV_REV="${BASH_REMATCH[2]}" # revision number
32
33 case $REV_PREFIX in
34 _pre|_alpha) MYTHTV_REPO="trunk/${MY_PN}";;
35 _p|_beta) VER_COMP=( $(get_version_components ${MY_PV}) )
36 FIXES_VER="${VER_COMP[0]}-${VER_COMP[1]}"
37 MYTHTV_REPO="branches/release-${FIXES_VER}-fixes/${MY_PN}";;
38 esac
39
40 ESVN_REPO_URI="http://svn.mythtv.org/svn/${MYTHTV_REPO}@${MYTHTV_REV}"
41
42 HOMEPAGE="http://www.mythtv.org"
43 LICENSE="GPL-2"
44 SRC_URI=""

  ViewVC Help
Powered by ViewVC 1.1.20