diff -ur ../subunit.orig/subunit-0.0.8.ebuild ../subunit/subunit-0.0.8.ebuild --- ../subunit.orig/subunit-0.0.8.ebuild 2012-05-19 23:22:15.144528611 +0800 +++ ../subunit/subunit-0.0.8.ebuild 2012-05-19 23:21:04.134529711 +0800 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/subunit/subunit-0.0.7.ebuild,v 1.3 2012/05/04 15:12:14 patrick Exp $ -EAPI="3" +EAPI="4" PYTHON_DEPEND="2" SUPPORT_PYTHON_ABIS="1" PYTHON_EXPORT_PHASE_FUNCTIONS="1" @@ -26,6 +26,14 @@ virtual/pkgconfig" RESTRICT_PYTHON_ABIS="3.*" +# Upstream forgot a couple of key files! Package now supports python3 but testtools doesn't +# https://bugs.launchpad.net/subunit/+bug/996275 +src_prepare() { + cp "${FILESDIR}"/test_run.py python/subunit/tests || die + cp "${FILESDIR}"/filters.py python/subunit || die + python_src_prepare +} + pkg_postinst() { python_mod_optimize subunit }