summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2007-08-06 19:11:19 +0000
committerDoug Goldstein <cardoe@gentoo.org>2007-08-06 19:11:19 +0000
commit637ecdf7ddf2279609144058a1a7bc7b79bccbc1 (patch)
tree6436035fbf5e3601de21cfbce3eda623c6b1f686 /eclass
parentadd note about removal in 30 days (diff)
downloadgentoo-2-637ecdf7ddf2279609144058a1a7bc7b79bccbc1.tar.gz
gentoo-2-637ecdf7ddf2279609144058a1a7bc7b79bccbc1.tar.bz2
gentoo-2-637ecdf7ddf2279609144058a1a7bc7b79bccbc1.zip
updates to MythTV eclass to always use svn after revision 13783. details @ http://blog.cardoe.com/archives/2007/08/06/mythtv-packaging-changes/
Diffstat (limited to 'eclass')
-rw-r--r--eclass/mythtv.eclass38
1 files changed, 24 insertions, 14 deletions
diff --git a/eclass/mythtv.eclass b/eclass/mythtv.eclass
index 606159efb573..cbef548d1c72 100644
--- a/eclass/mythtv.eclass
+++ b/eclass/mythtv.eclass
@@ -1,34 +1,44 @@
# 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.6 2007/03/19 07:06:29 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mythtv.eclass,v 1.7 2007/08/06 19:11:19 cardoe Exp $
#
-# Author: Doug Goldstein <cardoe@gentoo.org>
+# @ECLASS: mythtv.eclass
+# @MAINTAINER: Doug Goldstein <cardoe@gentoo.org>
+# @BLURB: Downloads the MythTV source packages and any patches from the fixes branch
#
-# Downloads the MythTV source packages and any patches from the fixes branch
-#
-inherit eutils
+
+inherit eutils versionator
# Release version
MY_PV="${PV%_*}"
+# what product do we want
+if [[ ${PN} = mythtv ]]; then
+ MY_PN="mythtv"
+elif [[ ${PN} = mythtv-themes ]]; then
+ MY_PN="myththemes"
+else
+ MY_PN="mythplugins"
+fi
+
# _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}"
+ ESVN_REPO_URI="http://svn.mythtv.org/svn/trunk/${MY_PN}"
elif [[ $PV = *_p* ]]; then
PATCHREV="${PV##*_p}"
+# as of 0.20_p13783, we're using svn always
+ if [[ $PATCHREV -gt 13783 ]]; then
+ SVNREV=$PATCHREV
+ unset PATCHREV
+ VER_COMP=( $(get_version_components ${MY_PV}) )
+ FIXES_VER="${VER_COMP[0]}-${VER_COMP[1]}"
+ ESVN_REPO_URI="http://svn.mythtv.org/svn/branches/release-${FIXES_VER}-fixes/${MY_PN}"
+ fi
fi
fi
-if [[ ${PN} = mythtv ]]; then
- MY_PN="mythtv"
-elif [[ ${PN} = mythtv-themes ]]; then
- MY_PN="myththemes"
-else
- MY_PN="mythplugins"
-fi
-
-ESVN_REPO_URI="http://svn.mythtv.org/svn/trunk/${MY_PN}"
ESVN_OPTIONS="-r ${SVNREV}"
HOMEPAGE="http://www.mythtv.org"