--- libbeagle.orig/libbeagle-0.3.9.ebuild 2009-04-04 22:51:54.000000000 +0800 +++ libbeagle.orig/libbeagle-0.3.9.ebuild 2011-11-14 06:21:33.159927060 +0800 @@ -2,9 +2,11 @@ # 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 +EAPI="3" +PYTHON_DEPEND="2" +#PYTHON_USE_WITH="xml" -inherit gnome.org +inherit python gnome.org DESCRIPTION="C and Python bindings for Beagle" HOMEPAGE="http://beagle-project.org/" @@ -16,13 +18,19 @@ RDEPEND=">=dev-libs/glib-2.6 >=dev-libs/libxml2-2.6.19 - python? ( >=dev-lang/python-2.3 - >=dev-python/pygtk-2.6 ) + 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_pkg_setup + python_set_active_version 2 + fi + +src_configure() { econf --disable-dependency-tracking \ $(use_enable python) \ $(use_enable doc gtk-doc) \ @@ -34,5 +40,6 @@ } src_install() { - emake DESTDIR="${D}" install || die "Install failed!" + emake DESTDIR="${ED}" install || die "Install failed!" + python_convert_shebangs -r 2 "${ED}" }