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

Contents of /eclass/mythtv.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.18 - (hide annotations) (download)
Fri Oct 16 04:26:15 2009 UTC (4 years, 6 months ago) by cardoe
Branch: MAIN
Changes since 1.17: +5 -5 lines
add support for release candidate versions

1 cardoe 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 cardoe 1.18 # $Header: /var/cvsroot/gentoo-x86/eclass/mythtv.eclass,v 1.17 2009/08/25 16:51:21 gentoofan23 Exp $
4 cardoe 1.1 #
5 cardoe 1.7 # @ECLASS: mythtv.eclass
6 cardoe 1.14 # @AUTHOR: Doug Goldstein <cardoe@gentoo.org>
7 cardoe 1.7 # @MAINTAINER: Doug Goldstein <cardoe@gentoo.org>
8     # @BLURB: Downloads the MythTV source packages and any patches from the fixes branch
9 cardoe 1.1 #
10 cardoe 1.7
11 cardoe 1.14 inherit versionator
12 cardoe 1.1
13     # Release version
14     MY_PV="${PV%_*}"
15    
16 cardoe 1.7 # what product do we want
17 cardoe 1.10 case "${PN}" in
18     mythtv) MY_PN="mythtv";;
19     mythtv-themes) MY_PN="myththemes";;
20 cardoe 1.13 mythtv-themes-extra) MY_PN="themes";;
21 cardoe 1.10 *) MY_PN="mythplugins";;
22     esac
23    
24     # _pre is from SVN trunk while _p and _beta are from SVN ${MY_PV}-fixes
25     # TODO: probably ought to do something smart if the regex doesn't match anything
26 cardoe 1.18 [[ "${PV}" =~ (_alpha|_beta|_pre|_rc|_p)([0-9]+) ]] || {
27     eerror "Invalid version requested (_alpha|_beta|_pre|_rc|_p) only"
28 cardoe 1.10 exit 1
29     }
30    
31 cardoe 1.18 REV_PREFIX="${BASH_REMATCH[1]}" # _alpha, _beta, _pre, _rc, or _p
32 cardoe 1.10 MYTHTV_REV="${BASH_REMATCH[2]}" # revision number
33 cardoe 1.1
34 cardoe 1.10 case $REV_PREFIX in
35 cardoe 1.12 _pre|_alpha) MYTHTV_REPO="trunk/${MY_PN}";;
36 cardoe 1.18 _p|_beta|_rc) VER_COMP=( $(get_version_components ${MY_PV}) )
37 cardoe 1.10 FIXES_VER="${VER_COMP[0]}-${VER_COMP[1]}"
38     MYTHTV_REPO="branches/release-${FIXES_VER}-fixes/${MY_PN}";;
39     esac
40    
41 cardoe 1.1 HOMEPAGE="http://www.mythtv.org"
42 cardoe 1.2 LICENSE="GPL-2"
43 cardoe 1.15 SRC_URI="http://svn.mythtv.org/trac/changeset/${MYTHTV_REV}/${MYTHTV_REPO}?old_path=%2F&format=zip -> ${MY_PN}-${PV}.zip"
44 gentoofan23 1.17 S="${WORKDIR}/${MYTHTV_REPO}"

  ViewVC Help
Powered by ViewVC 1.1.20