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

Contents of /eclass/mythtv.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Mar 19 02:58:08 2007 UTC (7 years, 9 months ago) by cardoe
Branch: MAIN
Changes since 1.3: +15 -8 lines
Updates to the mythtv eclass to allow for live SVN ebuilds

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.3 2006/09/25 16:35:23 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 else
26 MY_PN="mythplugins"
27 fi
28
29 HOMEPAGE="http://www.mythtv.org"
30 LICENSE="GPL-2"
31 SRC_URI=""
32 if [[ -z ${SVNREV} ]] ; then
33 SRC_URI="${SRC_URI} mirror://gentoo/${MY_PN}-${MY_PV}.tar.bz2"
34 fi
35 if [[ -n ${PATCHREV} ]] ; then
36 SRC_URI="${SRC_URI}
37 http://dev.gentoo.org/~cardoe/files/mythtv/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch.bz2"
38 fi
39
40 mythtv-fixes_patch() {
41 if [[ -n ${PATCHREV} ]]; then
42 epatch ${WORKDIR}/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch
43 fi
44 }

  ViewVC Help
Powered by ViewVC 1.1.20