diff -ur htp.orig/htp-1.16.ebuild htp/htp-1.16.ebuild --- htp.orig/htp-1.16.ebuild 2011-11-13 18:17:56.613915017 +0800 +++ htp/htp-1.16.ebuild 2011-11-13 18:14:47.101914959 +0800 @@ -2,9 +2,11 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-text/htp/htp-1.16.ebuild,v 1.4 2010/12/31 00:45:25 vapier Exp $ -EAPI="2" +EAPI="3" -inherit eutils toolchain-funcs +PYTHON_DEPEND="*:2.6" + +inherit eutils toolchain-funcs python DESCRIPTION="An HTML preprocessor" HOMEPAGE="http://htp.sourceforge.net/" @@ -17,6 +19,10 @@ # HTP does not use autoconf, have to set options defined in Makefile.config +pkg_setup() { + python_pkg_setup +} + src_prepare() { epatch "${FILESDIR}"/strip.patch #240110 # let src_test take care of testing @@ -43,8 +49,10 @@ src_install() { emake \ - DESTDIR="${D}" \ + DESTDIR="${ED}" \ prefix='$(DESTDIR)/usr' \ pkgdocdir='$(DESTDIR)/usr/share/doc/${PF}/html' \ install || die + + python_convert_shebangs -r 2 "${ED}" }