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

Contents of /eclass/mythtv.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.20 - (show annotations) (download)
Mon Nov 16 07:59:47 2009 UTC (4 years, 8 months ago) by cardoe
Branch: MAIN
Changes since 1.19: +4 -1 lines
add DEPEND on unzip temporarily for bug #283798

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.19 2009/10/31 22:10:58 cardoe Exp $
4 #
5 # @ECLASS: mythtv.eclass
6 # @AUTHOR: Doug Goldstein <cardoe@gentoo.org>
7 # @MAINTAINER: Doug Goldstein <cardoe@gentoo.org>
8 # @BLURB: Downloads the MythTV source packages and any patches from the fixes branch
9 #
10
11 inherit versionator
12
13 # temporary until all the packagers are fixed for bug #283798
14 DEPEND="app-arch/unzip"
15
16 # Release version
17 MY_PV="${PV%_*}"
18
19 # what product do we want
20 case "${PN}" in
21 mythtv) MY_PN="mythtv";;
22 mythtv-themes) MY_PN="myththemes";;
23 mythtv-themes-extra) MY_PN="themes";;
24 *) MY_PN="mythplugins";;
25 esac
26
27 # _pre is from SVN trunk while _p and _beta are from SVN ${MY_PV}-fixes
28 # TODO: probably ought to do something smart if the regex doesn't match anything
29 [[ "${PV}" =~ (_alpha|_beta|_pre|_rc|_p)([0-9]+) ]] || {
30 eerror "Invalid version requested (_alpha|_beta|_pre|_rc|_p) only"
31 exit 1
32 }
33
34 REV_PREFIX="${BASH_REMATCH[1]}" # _alpha, _beta, _pre, _rc, or _p
35 MYTHTV_REV="${BASH_REMATCH[2]}" # revision number
36
37 case $REV_PREFIX in
38 _pre|_alpha) MYTHTV_REPO="trunk";;
39 _p|_beta|_rc) VER_COMP=( $(get_version_components ${MY_PV}) )
40 FIXES_VER="${VER_COMP[0]}-${VER_COMP[1]}"
41 MYTHTV_REPO="branches/release-${FIXES_VER}-fixes";;
42 esac
43
44 HOMEPAGE="http://www.mythtv.org"
45 LICENSE="GPL-2"
46 SRC_URI="http://svn.mythtv.org/trac/changeset/${MYTHTV_REV}/${MYTHTV_REPO}/${MY_PN}?old_path=%2F&format=zip -> ${MY_PN}-${PV}.zip"
47 S="${WORKDIR}/${MYTHTV_REPO}/${MY_PN}"

  ViewVC Help
Powered by ViewVC 1.1.20