diff options
Diffstat (limited to 'dev-python/pycairo/pycairo-1.8.6.ebuild')
-rw-r--r-- | dev-python/pycairo/pycairo-1.8.6.ebuild | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/dev-python/pycairo/pycairo-1.8.6.ebuild b/dev-python/pycairo/pycairo-1.8.6.ebuild index 257f39d68769..c188e7b35fd7 100644 --- a/dev-python/pycairo/pycairo-1.8.6.ebuild +++ b/dev-python/pycairo/pycairo-1.8.6.ebuild @@ -1,10 +1,11 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pycairo/pycairo-1.8.6.ebuild,v 1.2 2009/07/10 18:05:44 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pycairo/pycairo-1.8.6.ebuild,v 1.3 2009/08/08 20:36:20 arfrever Exp $ EAPI="2" NEED_PYTHON="2.6" +SUPPORT_PYTHON_ABIS="1" inherit distutils @@ -22,6 +23,8 @@ DEPEND="${RDEPEND} dev-util/pkgconfig doc? ( dev-python/sphinx )" +RESTRICT_PYTHON_ABIS="2.4 2.5 3*" + PYTHON_MODNAME="cairo" DOCS="AUTHORS NEWS README" @@ -47,8 +50,12 @@ src_compile() { } src_test() { - cd test - PYTHONPATH="$(ls -d ${S}/build/lib.*)" "${python}" test.py || die "tests failed" + testing() { + pushd test > /dev/null + PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" test.py || return 1 + popd > /dev/null + } + python_execute_function testing } src_install() { |