diff -ur aap.orig/aap-1.090.ebuild aap/aap-1.090.ebuild --- aap.orig/aap-1.090.ebuild 2008-03-08 23:37:57.000000000 +0900 +++ aap/aap-1.090.ebuild 2011-11-13 20:36:00.368917568 +0800 @@ -2,7 +2,11 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-util/aap/aap-1.090.ebuild,v 1.1 2008/03/08 14:37:57 nelchael Exp $ -IUSE="doc" +EAPI="3" + +PYTHON_DEPEND="*:2.6" + +inherit python DESCRIPTION="Bram Moolenaar's super-make program" HOMEPAGE="http://www.a-a-p.org/" @@ -11,11 +15,13 @@ SLOT="0" KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~sparc ~x86" DEPEND="app-arch/unzip" -RDEPEND=">=dev-lang/python-1.5" +RDEPEND="${DEPEND}" +IUSE="doc" + S=${WORKDIR}/${PN} -src_unpack() { - mkdir "${S}" && cd "${S}" && unzip -q "${DISTDIR}"/${A} || die +pkg_setup() { + python_pkg_setup } src_install() { @@ -24,7 +30,7 @@ if use doc ; then dodir /usr/share/doc/${PF}/html - cp -R doc/* "${D}"/usr/share/doc/${PF}/html + cp -R doc/* "${ED}"/usr/share/doc/${PF}/html fi rm doc/*.html rm -fr doc/images @@ -36,9 +42,9 @@ # Move the remainder directly into the dest tree dodir /usr/share cd "${WORKDIR}" - mv aap "${D}"/usr/share + mv aap "${ED}"/usr/share # Create a symbolic link for the executable dodir /usr/bin - ln -s ../share/aap/aap "${D}"/usr/bin/aap + ln -s ../share/aap/aap "${ED}"/usr/bin/aap }