summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2010-12-21 22:49:06 +0000
committerGilles Dartiguelongue <eva@gentoo.org>2010-12-21 22:49:06 +0000
commit2bafb0579680818a9a5f1e8f995166585f6f4212 (patch)
treeb1149a1c671d2c2cb1b8dda39682b3ea277f62c4 /dev-python/pyorbit
parentAdd support for multiple python slots, bug #349239. (diff)
downloadgentoo-2-2bafb0579680818a9a5f1e8f995166585f6f4212.tar.gz
gentoo-2-2bafb0579680818a9a5f1e8f995166585f6f4212.tar.bz2
gentoo-2-2bafb0579680818a9a5f1e8f995166585f6f4212.zip
Add support for multiple python slots, bug #309045.
(Portage version: 2.2.0_alpha9/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pyorbit')
-rw-r--r--dev-python/pyorbit/ChangeLog5
-rw-r--r--dev-python/pyorbit/pyorbit-2.24.0.ebuild45
2 files changed, 37 insertions, 13 deletions
diff --git a/dev-python/pyorbit/ChangeLog b/dev-python/pyorbit/ChangeLog
index 59bf0336a9b0..efdae83df4a8 100644
--- a/dev-python/pyorbit/ChangeLog
+++ b/dev-python/pyorbit/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-python/pyorbit
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyorbit/ChangeLog,v 1.71 2010/07/20 15:29:05 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyorbit/ChangeLog,v 1.72 2010/12/21 22:49:06 eva Exp $
+
+ 21 Dec 2010; Gilles Dartiguelongue <eva@gentoo.org> pyorbit-2.24.0.ebuild:
+ Add support for multiple python slots, bug #309045.
20 Jul 2010; Jeroen Roovers <jer@gentoo.org> pyorbit-2.14.3.ebuild,
pyorbit-2.24.0.ebuild:
diff --git a/dev-python/pyorbit/pyorbit-2.24.0.ebuild b/dev-python/pyorbit/pyorbit-2.24.0.ebuild
index 0a11efe24f68..9a55c6509f74 100644
--- a/dev-python/pyorbit/pyorbit-2.24.0.ebuild
+++ b/dev-python/pyorbit/pyorbit-2.24.0.ebuild
@@ -1,8 +1,14 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyorbit/pyorbit-2.24.0.ebuild,v 1.13 2010/07/20 15:29:05 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyorbit/pyorbit-2.24.0.ebuild,v 1.14 2010/12/21 22:49:06 eva Exp $
-inherit python gnome2 multilib
+EAPI="3"
+GCONF_DEBUG="no"
+PYTHON_DEPEND="2:2.4"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit gnome2 multilib python
DESCRIPTION="ORBit2 bindings for Python"
HOMEPAGE="http://www.pygtk.org/"
@@ -12,32 +18,47 @@ SLOT="0"
KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sh sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~x86-solaris"
IUSE=""
-RDEPEND=">=dev-lang/python-2.4
- >=gnome-base/orbit-2.12"
+RDEPEND=">=gnome-base/orbit-2.12"
DEPEND="${RDEPEND}
>=dev-util/pkgconfig-0.12.0"
DOCS="AUTHORS ChangeLog INSTALL NEWS README TODO"
-src_unpack() {
- unpack ${A}
+src_prepare() {
# disable pyc compiling
mv "${S}"/py-compile "${S}"/py-compile.orig
ln -s $(type -P true) "${S}"/py-compile
+
+ python_copy_sources
+}
+
+src_configure() {
+ python_execute_function -s gnome2_src_configure
+}
+
+src_compile() {
+ python_execute_function -s gnome2_src_compile
+}
+
+src_test() {
+ python_execute_function -s -d
}
src_install() {
- [[ -z ${ED} ]] && local ED=${D}
- gnome2_src_install
+ installation() {
+ gnome2_src_install
- mv "${ED}"$(python_get_sitedir)/{CORBA.py,pyorbit_CORBA.py}
- mv "${ED}"$(python_get_sitedir)/{PortableServer.py,pyorbit_PortableServer.py}
+ mv "${ED}"$(python_get_sitedir)/{CORBA.py,pyorbit_CORBA.py}
+ mv "${ED}"$(python_get_sitedir)/{PortableServer.py,pyorbit_PortableServer.py}
+ }
+ python_execute_function -s installation
+ python_clean_installation_image
}
pkg_postinst() {
- python_mod_optimize $(python_get_sitedir)/{pyorbit_CORBA.py,pyorbit_PortableServer.py}
+ python_mod_optimize pyorbit_CORBA.py pyorbit_PortableServer.py
}
pkg_postrm() {
- python_mod_cleanup $(python_get_sitedir)/{pyorbit_CORBA.py,pyorbit_PortableServer.py}
+ python_mod_cleanup pyorbit_CORBA.py pyorbit_PortableServer.py
}