diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-10-25 11:34:03 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-10-25 11:34:03 +0000 |
commit | 49dac14b35603f6cffa70ae5c620d6024e5b6856 (patch) | |
tree | 6675eddc5b667d812d3cbe59e9bd076e5bbde0a2 /dev-python/psyco | |
parent | Delete older ebuild. (diff) | |
download | gentoo-2-49dac14b35603f6cffa70ae5c620d6024e5b6856.tar.gz gentoo-2-49dac14b35603f6cffa70ae5c620d6024e5b6856.tar.bz2 gentoo-2-49dac14b35603f6cffa70ae5c620d6024e5b6856.zip |
Update EAPI. Support installation for multiple Python ABIs. Restrict 2.7 Python ABI (bug #327029).
(Portage version: 2.2.0_alpha1_p12/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/psyco')
-rw-r--r-- | dev-python/psyco/ChangeLog | 9 | ||||
-rw-r--r-- | dev-python/psyco/psyco-1.6.ebuild | 34 |
2 files changed, 29 insertions, 14 deletions
diff --git a/dev-python/psyco/ChangeLog b/dev-python/psyco/ChangeLog index 7ddaaeb8f815..11403640146e 100644 --- a/dev-python/psyco/ChangeLog +++ b/dev-python/psyco/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/psyco -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/psyco/ChangeLog,v 1.23 2009/10/11 08:37:06 grobian Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/psyco/ChangeLog,v 1.24 2010/10/25 11:34:03 arfrever Exp $ + + 25 Oct 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + psyco-1.6.ebuild: + Update EAPI. Support installation for multiple Python ABIs. Restrict 2.7 + Python ABI (bug #327029). 11 Oct 2009; Fabian Groffen <grobian@gentoo.org> psyco-1.6.ebuild: Merge from Prefix diff --git a/dev-python/psyco/psyco-1.6.ebuild b/dev-python/psyco/psyco-1.6.ebuild index c3c2e0e36d48..5d68e2965872 100644 --- a/dev-python/psyco/psyco-1.6.ebuild +++ b/dev-python/psyco/psyco-1.6.ebuild @@ -1,23 +1,28 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/psyco/psyco-1.6.ebuild,v 1.2 2009/10/11 08:37:06 grobian Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/psyco/psyco-1.6.ebuild,v 1.3 2010/10/25 11:34:03 arfrever Exp $ + +EAPI="3" +PYTHON_DEPEND="2::2.6" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="2.7 3.*" inherit distutils DESCRIPTION="Python extension module which can massively speed up the execution of any Python code." HOMEPAGE="http://psyco.sourceforge.net/" SRC_URI="mirror://sourceforge/psyco/${P}-src.tar.gz" + LICENSE="MIT" SLOT="0" KEYWORDS="~x86 ~x86-linux" IUSE="examples" DEPEND="" -RDEPEND="${DEPEND}" +RDEPEND="" -src_unpack() { - unpack ${A} - cd "${S}" +src_prepare() { + distutils_src_prepare # whrandom is deprecated in python-2.4 # and removed in 2.5 @@ -26,15 +31,20 @@ src_unpack() { test/life.py test/life-psyco.py || die "sed failed" } +src_test() { + cd test + + testing() { + PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" test_base.py + } + python_execute_function testing +} + src_install() { distutils_src_install + if use examples; then insinto /usr/share/doc/${PF}/examples - doins test/bpnn.py test/life.py test/life-psyco.py test/pystone.py + doins test/bpnn.py test/life.py test/life-psyco.py test/pystone.py || die "doins failed" fi } - -src_test() { - cd "${S}/test" - PYTHONPATH="$(ls -d ../build/lib.*)" "${python}" test_base.py || die "tests failed" -} |