summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-03-04 22:21:40 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-03-04 22:21:40 +0000
commit85d437e0e181fa207a70f736387071a131e054bd (patch)
tree761f9036a9bd833ecc835f285c2c5df192ab3a91 /media-gfx
parentDrop net-firewall/iptables[netlink], per bug 354309 (diff)
downloadgentoo-2-85d437e0e181fa207a70f736387071a131e054bd.tar.gz
gentoo-2-85d437e0e181fa207a70f736387071a131e054bd.tar.bz2
gentoo-2-85d437e0e181fa207a70f736387071a131e054bd.zip
Set SUPPORT_PYTHON_ABIS (bug #313487).
(Portage version: 2.2.0_alpha26_p6/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/drqueue/ChangeLog8
-rw-r--r--media-gfx/drqueue/drqueue-0.64.3-r1.ebuild21
-rw-r--r--media-gfx/drqueue/drqueue-9999.ebuild21
3 files changed, 32 insertions, 18 deletions
diff --git a/media-gfx/drqueue/ChangeLog b/media-gfx/drqueue/ChangeLog
index 2fa2de124801..c7dc076781dc 100644
--- a/media-gfx/drqueue/ChangeLog
+++ b/media-gfx/drqueue/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-gfx/drqueue
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/drqueue/ChangeLog,v 1.2 2010/02/06 02:54:15 sping Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/drqueue/ChangeLog,v 1.3 2011/03/04 22:21:40 arfrever Exp $
+
+ 04 Mar 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ drqueue-0.64.3-r1.ebuild, drqueue-9999.ebuild:
+ Set SUPPORT_PYTHON_ABIS (bug #313487).
06 Feb 2010; Sebastian Pipping <sping@gentoo.org>
drqueue-0.64.3-r1.ebuild, drqueue-9999.ebuild:
diff --git a/media-gfx/drqueue/drqueue-0.64.3-r1.ebuild b/media-gfx/drqueue/drqueue-0.64.3-r1.ebuild
index d78d3bc420f1..ddb7be6a895d 100644
--- a/media-gfx/drqueue/drqueue-0.64.3-r1.ebuild
+++ b/media-gfx/drqueue/drqueue-0.64.3-r1.ebuild
@@ -1,8 +1,11 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/drqueue/drqueue-0.64.3-r1.ebuild,v 1.2 2010/02/06 02:54:15 sping Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/drqueue/drqueue-0.64.3-r1.ebuild,v 1.3 2011/03/04 22:21:40 arfrever Exp $
-EAPI="2"
+EAPI="3"
+PYTHON_DEPEND="python? 2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-jython"
inherit eutils distutils
@@ -16,19 +19,20 @@ KEYWORDS="~amd64 ~x86"
IUSE="X python ruby"
RDEPEND="X? ( >=x11-libs/gtk+-2 )
- python? ( dev-lang/python )
ruby? ( dev-lang/ruby )
app-shells/tcsh"
DEPEND="${RDEPEND}
python? ( dev-lang/swig )
ruby? ( dev-lang/swig )
- python? ( >=dev-python/setuptools-0.6_rc6 )
+ python? ( dev-python/setuptools )
>=dev-util/scons-0.97"
pkg_setup() {
enewgroup drqueue
enewuser drqueue -1 /bin/bash /dev/null daemon,drqueue
+
+ use python && python_pkg_setup
}
src_prepare() {
@@ -119,6 +123,7 @@ src_install() {
# Install DRKeewee web service and example python scripts
insinto /var/lib/${PN}/python
doins -r DrKeewee examples || die "doins failed"
+ python_convert_shebangs -r 2 "${ED}var/lib/${PN}/python"
fi
if use ruby; then
@@ -132,13 +137,13 @@ pkg_postinst() {
einfo "and /etc/conf.d/drqmd DRQUEUE_MASTER=\"hostname\""
einfo "to reflect your master's hostname."
if use python ; then
- einfo ""
+ einfo
einfo "DrKeewee can be found in /var/lib/drqueue/python"
- python_mod_optimize "$(python_get_sitedir)"/drqueue
+ distutils_pkg_postinst
fi
}
pkg_postrm() {
- use python && python_mod_cleanup "$(python_get_sitedir)"/drqueue
+ use python && distutils_pkg_postrm
}
diff --git a/media-gfx/drqueue/drqueue-9999.ebuild b/media-gfx/drqueue/drqueue-9999.ebuild
index f96f7473cab2..2c0363902252 100644
--- a/media-gfx/drqueue/drqueue-9999.ebuild
+++ b/media-gfx/drqueue/drqueue-9999.ebuild
@@ -1,8 +1,11 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/drqueue/drqueue-9999.ebuild,v 1.2 2010/02/06 02:54:15 sping Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/drqueue/drqueue-9999.ebuild,v 1.3 2011/03/04 22:21:40 arfrever Exp $
-EAPI="2"
+EAPI="3"
+PYTHON_DEPEND="python? 2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-jython"
inherit eutils distutils git
@@ -16,19 +19,20 @@ KEYWORDS=""
IUSE="X python ruby"
RDEPEND="X? ( >=x11-libs/gtk+-2 )
- python? ( dev-lang/python )
ruby? ( dev-lang/ruby )
app-shells/tcsh"
DEPEND="${RDEPEND}
python? ( dev-lang/swig )
ruby? ( dev-lang/swig )
- python? ( >=dev-python/setuptools-0.6_rc6 )
+ python? ( dev-python/setuptools )
>=dev-util/scons-0.97"
pkg_setup() {
enewgroup drqueue
enewuser drqueue -1 /bin/bash /dev/null daemon,drqueue
+
+ use python && python_pkg_setup
}
src_compile() {
@@ -115,6 +119,7 @@ src_install() {
# Install DRKeewee web service and example python scripts
insinto /var/lib/${PN}/python
doins -r DrKeewee examples || die "doins failed"
+ python_convert_shebangs -r 2 "${ED}var/lib/${PN}/python"
fi
if use ruby; then
@@ -128,13 +133,13 @@ pkg_postinst() {
einfo "and /etc/conf.d/drqmd DRQUEUE_MASTER=\"hostname\""
einfo "to reflect your master's hostname."
if use python ; then
- einfo ""
+ einfo
einfo "DrKeewee can be found in /var/lib/drqueue/python"
- python_mod_optimize "$(python_get_sitedir)"/drqueue
+ distutils_pkg_postinst
fi
}
pkg_postrm() {
- use python && python_mod_cleanup "$(python_get_sitedir)"/drqueue
+ use python && distutils_pkg_postrm
}