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

Contents of /eclass/mythtv.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Mar 19 03:11:35 2007 UTC (7 years, 4 months ago) by cardoe
Branch: MAIN
Changes since 1.4: +5 -1 lines
Add ESVN_REPO_URI and support myththemes

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.4 2007/03/19 02:58:08 cardoe Exp $
4 #
5 # Author: Doug Goldstein <cardoe@gentoo.org>
6 #
7 # Downloads the MythTV source packages and any patches from the fixes branch
8 #
9 inherit eutils
10
11 # Release version
12 MY_PV="${PV%_*}"
13
14 # _pre is from SVN trunk while _p is from SVN ${MY_PV}-fixes
15 if [[ ${MY_PV} != ${PV} ]]; then
16 if [[ $PV = *_pre* ]]; then
17 SVNREV="${PV##*_pre}"
18 elif [[ $PV = *_p* ]]; then
19 PATCHREV="${PV##*_p}"
20 fi
21 fi
22
23 if [[ ${PN} = mythtv ]]; then
24 MY_PN="mythtv"
25 elif [[ ${PN} = mythtv-themes ]]; then
26 MY_PN="myththemes"
27 else
28 MY_PN="mythplugins"
29 fi
30
31 ESVN_REPO_URI="http://svn.mythtv.org/svn/trunk/${MY_PN}"
32
33 HOMEPAGE="http://www.mythtv.org"
34 LICENSE="GPL-2"
35 SRC_URI=""
36 if [[ -z ${SVNREV} ]] ; then
37 SRC_URI="${SRC_URI} mirror://gentoo/${MY_PN}-${MY_PV}.tar.bz2"
38 fi
39 if [[ -n ${PATCHREV} ]] ; then
40 SRC_URI="${SRC_URI}
41 http://dev.gentoo.org/~cardoe/files/mythtv/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch.bz2"
42 fi
43
44 mythtv-fixes_patch() {
45 if [[ -n ${PATCHREV} ]]; then
46 epatch ${WORKDIR}/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch
47 fi
48 }

  ViewVC Help
Powered by ViewVC 1.1.20