--- xmldiff-0.6.9.ebuild 2010-04-16 14:35:32.000000000 -0400 +++ xmldiff-0.6.9-r1.ebuild 2010-04-30 20:29:08.000000000 -0400 @@ -2,7 +2,12 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-text/xmldiff/xmldiff-0.6.9.ebuild,v 1.4 2010/04/16 18:21:05 armin76 Exp $ -inherit eutils distutils +EAPI=2 + +RESTRICT_PYTHON_ABIS="3.*" +PYTHON_DEPEND="2:2.4" + +inherit eutils distutils python DESCRIPTION="a tool that figures out the differences between two similar XML files" @@ -19,8 +24,10 @@ DOCS="ChangeLog README README.xmlrev TODO" -src_unpack() { - unpack ${A} - cd "${S}" +pkg_setup() { + python_set_active_version 2 +} + +src_prepare() { sed -i -e "/^__revision__/d" setup.py test/regrtest.py || die "sed failed" }