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

Contents of /eclass/mythtv.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Mon Mar 19 07:06:29 2007 UTC (7 years, 8 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 cardoe 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 cardoe 1.6 # $Header: /var/cvsroot/gentoo-x86/eclass/mythtv.eclass,v 1.5 2007/03/19 03:11:35 cardoe Exp $
4 cardoe 1.1 #
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 cardoe 1.4 # _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 cardoe 1.1 fi
22    
23 cardoe 1.4 if [[ ${PN} = mythtv ]]; then
24 cardoe 1.1 MY_PN="mythtv"
25 cardoe 1.5 elif [[ ${PN} = mythtv-themes ]]; then
26     MY_PN="myththemes"
27 cardoe 1.1 else
28     MY_PN="mythplugins"
29     fi
30    
31 cardoe 1.5 ESVN_REPO_URI="http://svn.mythtv.org/svn/trunk/${MY_PN}"
32 cardoe 1.6 ESVN_OPTIONS="-r ${SVNREV}"
33 cardoe 1.5
34 cardoe 1.1 HOMEPAGE="http://www.mythtv.org"
35 cardoe 1.2 LICENSE="GPL-2"
36 cardoe 1.4 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 cardoe 1.3 SRC_URI="${SRC_URI}
42     http://dev.gentoo.org/~cardoe/files/mythtv/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch.bz2"
43 cardoe 1.1 fi
44    
45     mythtv-fixes_patch() {
46 cardoe 1.4 if [[ -n ${PATCHREV} ]]; then
47 cardoe 1.1 epatch ${WORKDIR}/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch
48     fi
49     }

  ViewVC Help
Powered by ViewVC 1.1.20