diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2010-12-08 22:46:20 +0000 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2010-12-08 22:46:20 +0000 |
commit | 4e18f7aa60a2df891b568cc2a554c091b465b611 (patch) | |
tree | 5ea4c03c5d29dc6f3e30ab6aa0b3e52db2b3d10c /x11-misc/alacarte/alacarte-0.13.2.ebuild | |
parent | Handle multiple ABI python, bug #324173. (diff) | |
download | gentoo-2-4e18f7aa60a2df891b568cc2a554c091b465b611.tar.gz gentoo-2-4e18f7aa60a2df891b568cc2a554c091b465b611.tar.bz2 gentoo-2-4e18f7aa60a2df891b568cc2a554c091b465b611.zip |
Handle multiple ABI python, bug #317003.
(Portage version: 2.2.0_alpha7/cvs/Linux x86_64)
Diffstat (limited to 'x11-misc/alacarte/alacarte-0.13.2.ebuild')
-rw-r--r-- | x11-misc/alacarte/alacarte-0.13.2.ebuild | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/x11-misc/alacarte/alacarte-0.13.2.ebuild b/x11-misc/alacarte/alacarte-0.13.2.ebuild index 6184f462b1f1..0f5d4469b1c4 100644 --- a/x11-misc/alacarte/alacarte-0.13.2.ebuild +++ b/x11-misc/alacarte/alacarte-0.13.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/x11-misc/alacarte/alacarte-0.13.2.ebuild,v 1.2 2010/12/08 20:52:52 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-misc/alacarte/alacarte-0.13.2.ebuild,v 1.3 2010/12/08 22:46:20 eva Exp $ EAPI="3" GCONF_DEBUG="no" -PYTHON_DEPEND="2" +PYTHON_DEPEND="2:2.4" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" inherit gnome2 python @@ -12,13 +14,13 @@ DESCRIPTION="Simple GNOME menu editor" HOMEPAGE="http://live.gnome.org/" LICENSE="GPL-2" +SLOT="0" KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" IUSE="" -SLOT=0 common_depends=" - >=dev-python/pygobject-2.15.1 - >=dev-python/pygtk-2.13 + >=dev-python/pygobject-2.15.1:2 + >=dev-python/pygtk-2.13:2 >=gnome-base/gnome-menus-2.27.92[python]" RDEPEND="${common_depends} @@ -31,7 +33,6 @@ DEPEND="${common_depends} pkg_setup() { DOCS="AUTHORS ChangeLog NEWS README" - python_set_active_version 2 python_pkg_setup } @@ -41,15 +42,34 @@ src_prepare() { # disable pyc compiling mv py-compile py-compile.orig ln -s $(type -P true) py-compile + + python_copy_sources } src_configure() { - PYTHON="$(PYTHON -a)" gnome2_src_configure + configure() { + G2CONF="${G2CONF} PYTHON=$(PYTHON -a)" + gnome2_src_configure + } + python_execute_function -s configure +} + +src_compile() { + python_execute_function -s gnome2_src_compile +} + +src_test() { + python_execute_function -s -d +} + +src_install() { + python_execute_function -s gnome2_src_install + python_clean_installation_image + python_convert_shebangs -r 2 "${ED}" } pkg_postinst() { gnome2_pkg_postinst - python_need_rebuild python_mod_optimize Alacarte } |