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

Contents of /eclass/mythtv.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Sep 19 23:16:05 2006 UTC (7 years, 6 months ago) by cardoe
Branch: MAIN
New MythTV eclass that downloads svn revisions and patches and merges them in. Made the plugins class work with this.

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-plugins.eclass,v 1.16 2006/09/14 20:33:11 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 # SVN revision number to increment from the released version
15 if [ "x${MY_PV}" != "x${PV}" ]; then
16 PATCHREV="${PV##*_p}"
17 fi
18
19 if [ "x${PN}" = "xmythtv" ]; then
20 MY_PN="mythtv"
21 else
22 MY_PN="mythplugins"
23 fi
24
25 HOMEPAGE="http://www.mythtv.org"
26 SRC_URI="http://ftp.osuosl.org/pub/mythtv/${MY_PN}-${MY_PV}.tar.bz2"
27 if [ -n "${PATCHREV}" ] ; then
28 SRC_URI="${SRC_URI} http://dev.gentoo.org/~cardoe/files/mythtv/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch.bz2"
29 fi
30
31 mythtv-fixes_patch() {
32 if [ -n "$PATCHREV" ]; then
33 epatch ${WORKDIR}/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch
34 fi
35 }

  ViewVC Help
Powered by ViewVC 1.1.20