summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2007-03-19 02:58:08 +0000
committerDoug Goldstein <cardoe@gentoo.org>2007-03-19 02:58:08 +0000
commit41d2b91f5a0b9db7f7f225988d4c3f48c112e4e0 (patch)
tree6f4934fce25a3902c4222ae579c310e6ed1a248e
parentRemove ka0ttic from metadata.xml due to retirement. (diff)
downloadhistorical-41d2b91f5a0b9db7f7f225988d4c3f48c112e4e0.tar.gz
historical-41d2b91f5a0b9db7f7f225988d4c3f48c112e4e0.tar.bz2
historical-41d2b91f5a0b9db7f7f225988d4c3f48c112e4e0.zip
Updates to the mythtv eclass to allow for live SVN ebuilds
-rw-r--r--eclass/mythtv.eclass23
1 files changed, 15 insertions, 8 deletions
diff --git a/eclass/mythtv.eclass b/eclass/mythtv.eclass
index c0e8c87728a4..7c8ec2817877 100644
--- a/eclass/mythtv.eclass
+++ b/eclass/mythtv.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mythtv.eclass,v 1.3 2006/09/25 16:35:23 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mythtv.eclass,v 1.4 2007/03/19 02:58:08 cardoe Exp $
#
# Author: Doug Goldstein <cardoe@gentoo.org>
#
@@ -11,12 +11,16 @@ inherit eutils
# Release version
MY_PV="${PV%_*}"
-# SVN revision number to increment from the released version
-if [ "x${MY_PV}" != "x${PV}" ]; then
- PATCHREV="${PV##*_p}"
+# _pre is from SVN trunk while _p is from SVN ${MY_PV}-fixes
+if [[ ${MY_PV} != ${PV} ]]; then
+ if [[ $PV = *_pre* ]]; then
+ SVNREV="${PV##*_pre}"
+ elif [[ $PV = *_p* ]]; then
+ PATCHREV="${PV##*_p}"
+ fi
fi
-if [ "x${PN}" = "xmythtv" ]; then
+if [[ ${PN} = mythtv ]]; then
MY_PN="mythtv"
else
MY_PN="mythplugins"
@@ -24,14 +28,17 @@ fi
HOMEPAGE="http://www.mythtv.org"
LICENSE="GPL-2"
-SRC_URI="mirror://gentoo/${MY_PN}-${MY_PV}.tar.bz2"
-if [ -n "${PATCHREV}" ] ; then
+SRC_URI=""
+if [[ -z ${SVNREV} ]] ; then
+ SRC_URI="${SRC_URI} mirror://gentoo/${MY_PN}-${MY_PV}.tar.bz2"
+fi
+if [[ -n ${PATCHREV} ]] ; then
SRC_URI="${SRC_URI}
http://dev.gentoo.org/~cardoe/files/mythtv/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch.bz2"
fi
mythtv-fixes_patch() {
- if [ -n "$PATCHREV" ]; then
+ if [[ -n ${PATCHREV} ]]; then
epatch ${WORKDIR}/${MY_PN}-${MY_PV}_svn${PATCHREV}.patch
fi
}