diff -ur libbeagle.orig/libbeagle-0.3.9.ebuild libbeagle/libbeagle-0.3.9.ebuild --- libbeagle.orig/libbeagle-0.3.9.ebuild 2009-04-04 22:51:54.000000000 +0800 +++ libbeagle/libbeagle-0.3.9.ebuild 2011-11-26 03:49:08.897991164 +0800 @@ -2,9 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libbeagle/libbeagle-0.3.9.ebuild,v 1.3 2009/04/04 14:51:54 maekke Exp $ -EAPI=2 - -inherit gnome.org +EAPI=3 +PYTHON_DEPEND="python? 2" +inherit gnome.org python DESCRIPTION="C and Python bindings for Beagle" HOMEPAGE="http://beagle-project.org/" @@ -16,13 +16,19 @@ RDEPEND=">=dev-libs/glib-2.6 >=dev-libs/libxml2-2.6.19 - python? ( >=dev-lang/python-2.3 - >=dev-python/pygtk-2.6 ) - !<=app-misc/beagle-0.2.18" + python? ( >=dev-python/pygtk-2.6 ) + >=app-misc/beagle-0.2.18" DEPEND="${RDEPEND} doc? ( dev-util/gtk-doc )" -src_compile() { +pkg_setup() { + if use python; then + python_set_active_version 2 + python_pkg_setup + fi +} + +src_configure() { econf --disable-dependency-tracking \ $(use_enable python) \ $(use_enable doc gtk-doc) \