diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-08-31 23:52:08 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-08-31 23:52:08 +0000 |
commit | 46d50f8226be2ae7aae7dca6e743095b1073de51 (patch) | |
tree | 2ef9eff475e868b06eac7fd56d2754dcee39414c /dev-python | |
parent | Version bump. Set SUPPORT_PYTHON_ABIS. (diff) | |
download | gentoo-2-46d50f8226be2ae7aae7dca6e743095b1073de51.tar.gz gentoo-2-46d50f8226be2ae7aae7dca6e743095b1073de51.tar.bz2 gentoo-2-46d50f8226be2ae7aae7dca6e743095b1073de51.zip |
Set SUPPORT_PYTHON_ABIS.
(Portage version: 14174-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/configobj/ChangeLog | 6 | ||||
-rw-r--r-- | dev-python/configobj/configobj-4.6.0.ebuild | 31 |
2 files changed, 28 insertions, 9 deletions
diff --git a/dev-python/configobj/ChangeLog b/dev-python/configobj/ChangeLog index a8a116ae0dce..97333b11f595 100644 --- a/dev-python/configobj/ChangeLog +++ b/dev-python/configobj/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-python/configobj # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/configobj/ChangeLog,v 1.8 2009/07/04 15:43:46 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/configobj/ChangeLog,v 1.9 2009/08/31 23:52:08 arfrever Exp $ + + 31 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + ChangeLog: + Set SUPPORT_PYTHON_ABIS. *configobj-4.6.0 (04 Jul 2009) diff --git a/dev-python/configobj/configobj-4.6.0.ebuild b/dev-python/configobj/configobj-4.6.0.ebuild index 4c4ed79662f2..0dddc02183a0 100644 --- a/dev-python/configobj/configobj-4.6.0.ebuild +++ b/dev-python/configobj/configobj-4.6.0.ebuild @@ -1,8 +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/configobj/configobj-4.6.0.ebuild,v 1.1 2009/07/04 15:43:46 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/configobj/configobj-4.6.0.ebuild,v 1.2 2009/08/31 23:52:08 arfrever Exp $ + +EAPI="2" NEED_PYTHON="2.4" +SUPPORT_PYTHON_ABIS="1" inherit distutils @@ -18,6 +21,19 @@ IUSE="doc" DEPEND="app-arch/unzip" RDEPEND="" +RESTRICT_PYTHON_ABIS="3*" + +src_test() { + sed -i \ + -e 's/ \(doctest\.testmod(.*\)/ sys.exit(\1[0] != 0)/' \ + validate.py + + testing() { + PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" validate.py -v + } + python_execute_function testing +} + src_install() { distutils_src_install if use doc; then @@ -27,11 +43,10 @@ src_install() { fi } -src_test() { - distutils_python_version - sed -i \ - -e 's/ \(doctest\.testmod(.*\)/ sys.exit(\1[0] != 0)/' \ - validate.py - PYTHONPATH=build/lib "${python}" validate.py -v \ - || die "configobj_test.py failed" +pkg_postinst() { + python_mod_optimize configobj.py validate.py +} + +pkg_postrm() { + python_mod_cleanup } |