--- /home/pacho/gentoo-x86/x11-misc/alacarte/alacarte-0.13.2.ebuild 2010-09-16 22:41:29.000000000 +0200 +++ /usr/portage/x11-misc/alacarte/alacarte-0.13.2.ebuild 2010-12-08 20:06:21.000000000 +0100 @@ -2,8 +2,9 @@ # 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.1 2010/09/16 20:41:29 eva Exp $ -EAPI="2" +EAPI="3" GCONF_DEBUG="no" +PYTHON_DEPEND="2" inherit gnome2 python @@ -15,7 +16,7 @@ IUSE="" SLOT=0 -common_depends=">=dev-lang/python-2.4 +common_depends=" >=dev-python/pygobject-2.15.1 >=dev-python/pygtk-2.13 >=gnome-base/gnome-menus-2.27.92[python]" @@ -28,7 +29,11 @@ >=dev-util/intltool-0.40.0 >=dev-util/pkgconfig-0.19" -DOCS="AUTHORS ChangeLog NEWS README" +pkg_setup() { + DOCS="AUTHORS ChangeLog NEWS README" + python_set_active_version 2 + python_pkg_setup +} src_prepare() { gnome2_src_prepare @@ -38,13 +43,17 @@ ln -s $(type -P true) py-compile } +src_configure() { + PYTHON="$(PYTHON)" gnome2_src_configure +} + pkg_postinst() { gnome2_pkg_postinst python_need_rebuild - python_mod_optimize $(python_get_sitedir)/Alacarte + python_mod_optimize Alacarte } pkg_postrm() { gnome2_pkg_postrm - python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/Alacarte + python_mod_cleanup Alacarte }