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

Contents of /eclass/mythtv.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide 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 cardoe 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 cardoe 1.5 # $Header: /var/cvsroot/gentoo-x86/eclass/mythtv.eclass,v 1.4 2007/03/19 02:58:08 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    
33 cardoe 1.1 HOMEPAGE="http://www.mythtv.org"
34 cardoe 1.2 LICENSE="GPL-2"
35 cardoe 1.4 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 cardoe 1.3 SRC_URI="${SRC_URI}
41     http://dev.gentoo.org/~cardoe/files/mythtv/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch.bz2"
42 cardoe 1.1 fi
43    
44     mythtv-fixes_patch() {
45 cardoe 1.4 if [[ -n ${PATCHREV} ]]; then
46 cardoe 1.1 epatch ${WORKDIR}/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch
47     fi
48     }

  ViewVC Help
Powered by ViewVC 1.1.20