diff -ur createrepo.orig/createrepo-0.9.7.ebuild createrepo/createrepo-0.9.7.ebuild --- createrepo.orig/createrepo-0.9.7.ebuild 2011-11-12 15:02:14.974806387 +0800 +++ createrepo/createrepo-0.9.7.ebuild 2011-11-12 15:31:10.695805514 +0800 @@ -2,7 +2,13 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-arch/createrepo/createrepo-0.9.7.ebuild,v 1.1 2009/04/12 07:31:37 vapier Exp $ -EAPI="2" +EAPI="3" + +PYTHON_DEPEND="2:2.6" +PYTHON_USE_WITH="xml" + +inherit python DESCRIPTION="Creates a common metadata repository" HOMEPAGE="http://createrepo.baseurl.org/" @@ -18,9 +23,14 @@ >=app-arch/rpm-4.0[python] dev-libs/libxml2[python]" +pkg_setup() { + python_pkg_setup + python_set_active_version 2 +} + src_compile() { :; } src_install() { - emake install DESTDIR="${D}" || die + emake install DESTDIR="${ED}" || die dodoc ChangeLog README + python_convert_shebangs -r 2 "${ED}" } diff -ur createrepo.orig/createrepo-0.9.8.ebuild createrepo/createrepo-0.9.8.ebuild --- createrepo.orig/createrepo-0.9.8.ebuild 2010-06-17 04:45:25.000000000 +0800 +++ createrepo/createrepo-0.9.8.ebuild 2011-11-12 15:25:07.022805771 +0800 @@ -2,7 +2,13 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-arch/createrepo/createrepo-0.9.8.ebuild,v 1.2 2010/06/16 20:45:25 patrick Exp $ -EAPI="2" +EAPI="3" + +PYTHON_DEPEND="2:2.6" +PYTHON_USE_WITH="xml" + +inherit python eutils DESCRIPTION="Creates a common metadata repository" HOMEPAGE="http://createrepo.baseurl.org/" @@ -19,6 +24,10 @@ dev-libs/libxml2[python] >=sys-apps/yum-3.2.23" +pkg_setup() { + python_pkg_setup + python_set_active_version 2 +} + src_prepare() { sed -i \ -e '/^sysconfdir/s:=.*/:=/:' \ @@ -28,6 +37,7 @@ src_compile() { :; } src_install() { - emake install DESTDIR="${D}" || die + emake install DESTDIR="${ED}" || die dodoc ChangeLog README + python_convert_shebangs -r 2 "${ED}" }