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

Contents of /eclass/mythtv.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Mar 19 07:06:29 2007 UTC (7 years, 9 months ago) by cardoe
Branch: MAIN
Changes since 1.5: +2 -1 lines
ESVN_OPTIONS needs to be passed with our _pre# for the SVN revision we want.

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.5 2007/03/19 03:11:35 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 ESVN_OPTIONS="-r ${SVNREV}"
33
34 HOMEPAGE="http://www.mythtv.org"
35 LICENSE="GPL-2"
36 SRC_URI=""
37 if [[ -z ${SVNREV} ]] ; then
38 SRC_URI="${SRC_URI} mirror://gentoo/${MY_PN}-${MY_PV}.tar.bz2"
39 fi
40 if [[ -n ${PATCHREV} ]] ; then
41 SRC_URI="${SRC_URI}
42 http://dev.gentoo.org/~cardoe/files/mythtv/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch.bz2"
43 fi
44
45 mythtv-fixes_patch() {
46 if [[ -n ${PATCHREV} ]]; then
47 epatch ${WORKDIR}/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch
48 fi
49 }

  ViewVC Help
Powered by ViewVC 1.1.20