diff -ur rootstrap.orig/rootstrap-0.3.24_p5.ebuild rootstrap/rootstrap-0.3.24_p5.ebuild --- rootstrap.orig/rootstrap-0.3.24_p5.ebuild 2011-11-26 02:28:58.471993364 +0800 +++ rootstrap/rootstrap-0.3.24_p5.ebuild 2011-11-26 02:41:55.831993010 +0800 @@ -2,7 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-util/rootstrap/rootstrap-0.3.24_p5.ebuild,v 1.1 2010/03/30 00:15:04 jer Exp $ -inherit eutils +EAPI=3 +PYTHON_DEPEND="2" +inherit eutils python DESCRIPTION="A tool for building complete Linux filesystem images" HOMEPAGE="http://packages.qa.debian.org/rootstrap" @@ -15,7 +17,6 @@ IUSE="" RDEPEND="dev-util/debootstrap - dev-lang/python app-arch/dpkg" DEPEND="${RDEPEND} app-text/docbook-sgml-utils" @@ -24,9 +25,7 @@ S="${WORKDIR}"/${PN} -src_unpack() { - unpack ${A} - cd "${S}" +src_prepare() { epatch "${WORKDIR}"/${PN}_${PV/_p/-}.diff sed -i -e 's:docbook-to-man:docbook2man:' Makefile } @@ -34,4 +33,5 @@ src_install() { emake DESTDIR="${D}" install || die "emake install failed." newdoc debian/changelog ChangeLog + python_convert_shebangs -r 2 "${D}" } Only in rootstrap.orig/: rootstrap-0.3.24_p5.ebuild.spare