summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2010-10-29 19:50:01 +0000
committerGilles Dartiguelongue <eva@gentoo.org>2010-10-29 19:50:01 +0000
commit143d0fd171c78dd3a245e632bfcff78e94fffb19 (patch)
tree59ef93625722e64ad6e0ede242c3798790e3c6cb /app-text
parentRemove ~ppc and ~ppc64 (diff)
downloadgentoo-2-143d0fd171c78dd3a245e632bfcff78e94fffb19.tar.gz
gentoo-2-143d0fd171c78dd3a245e632bfcff78e94fffb19.tar.bz2
gentoo-2-143d0fd171c78dd3a245e632bfcff78e94fffb19.zip
Enhance multiple python ABI support, bug #312103.
(Portage version: 2.2.0_alpha2/cvs/Linux x86_64)
Diffstat (limited to 'app-text')
-rw-r--r--app-text/gnome-doc-utils/ChangeLog6
-rw-r--r--app-text/gnome-doc-utils/gnome-doc-utils-0.20.2.ebuild33
2 files changed, 35 insertions, 4 deletions
diff --git a/app-text/gnome-doc-utils/ChangeLog b/app-text/gnome-doc-utils/ChangeLog
index bc918c6fed1e..e72e359d4182 100644
--- a/app-text/gnome-doc-utils/ChangeLog
+++ b/app-text/gnome-doc-utils/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-text/gnome-doc-utils
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/gnome-doc-utils/ChangeLog,v 1.172 2010/10/17 15:33:17 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/gnome-doc-utils/ChangeLog,v 1.173 2010/10/29 19:50:01 eva Exp $
+
+ 29 Oct 2010; Gilles Dartiguelongue <eva@gentoo.org>
+ gnome-doc-utils-0.20.2.ebuild:
+ Enhance multiple python ABI support, bug #312103.
17 Oct 2010; Raúl Porcel <armin76@gentoo.org>
gnome-doc-utils-0.20.1.ebuild:
diff --git a/app-text/gnome-doc-utils/gnome-doc-utils-0.20.2.ebuild b/app-text/gnome-doc-utils/gnome-doc-utils-0.20.2.ebuild
index 8ad4a1ef9ce5..4f1ab504eb4f 100644
--- a/app-text/gnome-doc-utils/gnome-doc-utils-0.20.2.ebuild
+++ b/app-text/gnome-doc-utils/gnome-doc-utils-0.20.2.ebuild
@@ -1,10 +1,12 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/gnome-doc-utils/gnome-doc-utils-0.20.2.ebuild,v 1.1 2010/10/04 09:19:15 eva Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/gnome-doc-utils/gnome-doc-utils-0.20.2.ebuild,v 1.2 2010/10/29 19:50:01 eva Exp $
EAPI="3"
GCONF_DEBUG="no"
PYTHON_DEPEND="2:2.4"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
inherit gnome2 python
@@ -37,7 +39,7 @@ MAKEOPTS="${MAKEOPTS} -j1"
pkg_setup() {
G2CONF="${G2CONF} --disable-scrollkeeper"
- python_set_active_version 2
+ python_pkg_setup
}
src_prepare() {
@@ -46,10 +48,35 @@ src_prepare() {
# disable pyc compiling
mv py-compile py-compile.orig
ln -s $(type -P true) py-compile
+
+ python_copy_sources
+}
+
+src_configure() {
+ python_execute_function -s gnome2_src_configure
+}
+
+src_compile() {
+ python_execute_function -d -s
+}
+
+src_test() {
+ python_execute_function -d -s
+}
+
+src_install() {
+ installation() {
+ gnome2_src_install
+ python_convert_shebangs $(python_get_version) "${D}"usr/bin/xml2po
+ mv "${D}"usr/bin/xml2po "${D}"usr/bin/xml2po-$(python_get_version)
+ }
+ python_execute_function -s installation
+ python_clean_installation_image
+
+ python_generate_wrapper_scripts -E -f "${D}"usr/bin/xml2po
}
pkg_postinst() {
- python_need_rebuild
python_mod_optimize xml2po
gnome2_pkg_postinst
}