summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2006-09-19 23:16:05 +0000
committerDoug Goldstein <cardoe@gentoo.org>2006-09-19 23:16:05 +0000
commit25d204f2a3dcafc3ed616b45e34b6b05196f92be (patch)
tree691d7347861da9cb773f0d2f1197a93046088f92 /eclass/mythtv-plugins.eclass
parentadd -j1 to src_compile emakes (#141990) (diff)
downloadhistorical-25d204f2a3dcafc3ed616b45e34b6b05196f92be.tar.gz
historical-25d204f2a3dcafc3ed616b45e34b6b05196f92be.tar.bz2
historical-25d204f2a3dcafc3ed616b45e34b6b05196f92be.zip
New MythTV eclass that downloads svn revisions and patches and merges them in. Made the plugins class work with this.
Diffstat (limited to 'eclass/mythtv-plugins.eclass')
-rw-r--r--eclass/mythtv-plugins.eclass27
1 files changed, 4 insertions, 23 deletions
diff --git a/eclass/mythtv-plugins.eclass b/eclass/mythtv-plugins.eclass
index 39993a9f2cea..5af7d402a1d6 100644
--- a/eclass/mythtv-plugins.eclass
+++ b/eclass/mythtv-plugins.eclass
@@ -1,32 +1,16 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mythtv-plugins.eclass,v 1.16 2006/09/14 20:33:11 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mythtv-plugins.eclass,v 1.17 2006/09/19 23:16:05 cardoe Exp $
#
# Author: Doug Goldstein <cardoe@gentoo.org>
#
# Installs MythTV plugins along with patches from the release-${PV}-fixes branch
#
-inherit eutils multilib qt3 versionator
+inherit mythtv multilib qt3 versionator
# Extra configure options to pass to econf
MTVCONF=${MTVCONF:=""}
-# Release version
-MY_PV="${PV%_*}"
-
-# SVN revision number to increment from the released version
-if [ "x${MY_PV}" != "x${PV}" ]; then
- PATCHREV="${PV##*_p}"
-fi
-
-DESCRIPTION=${DESCRIPTION:="MythTV plugin"}
-HOMEPAGE="http://www.mythtv.org"
-SRC_URI="http://ftp.osuosl.org/pub/mythtv/mythplugins-${MY_PV}.tar.bz2"
-if [ -n "${PATCHREV}" ] ; then
- SRC_URI="${SRC_URI} http://dev.gentoo.org/~cardoe/files/mythtv/mythplugins-${MY_PV}_svn${PATCHREV}.patch.bz2"
-fi
-
-
LICENSE="GPL-2"
SLOT="0"
IUSE="${IUSE} debug mmx"
@@ -54,6 +38,8 @@ mythtv-plugins_src_unpack() {
unpack ${A}
cd "${S}"
+ mythtv-fixes_patch
+
sed -e 's!PREFIX = /usr/local!PREFIX = /usr!' \
-i 'settings.pro' || die "fixing PREFIX to /usr failed"
@@ -67,10 +53,6 @@ mythtv-plugins_src_unpack() {
-e "s:\$\${PREFIX}/lib/:\$\${PREFIX}/$(get_libdir)/:g" \
-e "s:\$\${PREFIX}/lib$:\$\${PREFIX}/$(get_libdir):g" \
{} \;
-
- if [ -n "$PATCHREV" ]; then
- epatch ${WORKDIR}/mythplugins-${MY_PV}_svn${PATCHREV}.patch
- fi
}
mythtv-plugins_src_compile() {
@@ -108,7 +90,6 @@ mythtv-plugins_src_compile() {
}
mythtv-plugins_src_install() {
- debug-print ${MYTHPLUGINS}
if hasq ${PN} ${MYTHPLUGINS} ; then
cd "${S}"/${PN}
else