diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-10-02 01:08:28 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-10-02 01:08:28 +0000 |
commit | c2fe52d1d6403b4be7399fbd8228d84ec8f830ec (patch) | |
tree | fbffa0cdf590baecd9e04b26d90df07027245fb7 /dev-python/pycrypto | |
parent | Added liblastfm to the tree from the kde-testing overlay. Thanks to Maciej Mr... (diff) | |
download | gentoo-2-c2fe52d1d6403b4be7399fbd8228d84ec8f830ec.tar.gz gentoo-2-c2fe52d1d6403b4be7399fbd8228d84ec8f830ec.tar.bz2 gentoo-2-c2fe52d1d6403b4be7399fbd8228d84ec8f830ec.zip |
Set SUPPORT_PYTHON_ABIS.
(Portage version: 14471-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pycrypto')
-rw-r--r-- | dev-python/pycrypto/ChangeLog | 6 | ||||
-rw-r--r-- | dev-python/pycrypto/pycrypto-2.0.1-r8.ebuild | 36 |
2 files changed, 23 insertions, 19 deletions
diff --git a/dev-python/pycrypto/ChangeLog b/dev-python/pycrypto/ChangeLog index 09e6b0d8b9b5..2b3a00fc4647 100644 --- a/dev-python/pycrypto/ChangeLog +++ b/dev-python/pycrypto/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-python/pycrypto # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pycrypto/ChangeLog,v 1.73 2009/09/06 21:59:16 idl0r Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pycrypto/ChangeLog,v 1.74 2009/10/02 01:08:28 arfrever Exp $ + + 02 Oct 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + pycrypto-2.0.1-r8.ebuild: + Set SUPPORT_PYTHON_ABIS. 06 Sep 2009; Christian Ruppert <idl0r@gentoo.org> -files/pycrypto-2.0.1-ia64.patch: diff --git a/dev-python/pycrypto/pycrypto-2.0.1-r8.ebuild b/dev-python/pycrypto/pycrypto-2.0.1-r8.ebuild index a0d732676d90..ff2d60177c22 100644 --- a/dev-python/pycrypto/pycrypto-2.0.1-r8.ebuild +++ b/dev-python/pycrypto/pycrypto-2.0.1-r8.ebuild @@ -1,10 +1,12 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pycrypto/pycrypto-2.0.1-r8.ebuild,v 1.8 2009/04/08 18:42:18 zmedico Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pycrypto/pycrypto-2.0.1-r8.ebuild,v 1.9 2009/10/02 01:08:28 arfrever Exp $ -EAPI=1 -NEED_PYTHON=2.5 -inherit distutils toolchain-funcs flag-o-matic +EAPI="2" +NEED_PYTHON="2.5" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils flag-o-matic toolchain-funcs DESCRIPTION="Python Cryptography Toolkit" HOMEPAGE="http://www.amk.ca/python/code/crypto.html" @@ -15,14 +17,14 @@ SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd" IUSE="bindist gmp test" -RDEPEND="virtual/python - gmp? ( dev-libs/gmp )" +RDEPEND="gmp? ( dev-libs/gmp )" DEPEND="${RDEPEND} test? ( =dev-python/sancho-0.11-r1 )" +RESTRICT_PYTHON_ABIS="3.*" + +DOCS="ACKS ChangeLog PKG-INFO README TODO Doc/pycrypt.tex" -src_unpack() { - unpack ${A} - cd "${S}" +src_prepare() { use bindist && epatch "${FILESDIR}"/${P}-bindist.patch epatch "${FILESDIR}"/${P}-sha256.patch epatch "${FILESDIR}"/${P}-sha256-2.patch @@ -46,15 +48,13 @@ src_compile() { } src_test() { - export PYTHONPATH=$(ls -d "${S}"/build/lib.*/) - python ./test.py || die "test failed" - if use test ; then - local x + testing() { + PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" test.py || die "test failed with Python ${PYTHON_ABI}" cd test - for x in test_*.py ; do - python ${x} || die "${x} failed" + local test + for test in test_*.py; do + PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" "${test}" || die "${test} failed with Python ${PYTHON_ABI}" done - fi + } + python_execute_function testing } - -DOCS="ACKS ChangeLog PKG-INFO README TODO Doc/pycrypt.tex" |