diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-08 02:19:30 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-08 02:19:30 +0000 |
commit | 0f9c29048053c254d28df2121f791ea02b389d09 (patch) | |
tree | e48495b9c86af8880d4a8f16e7a6aa30a3abc070 /dev-python/m2crypto | |
parent | Version bump. Adds preset interface (diff) | |
download | gentoo-2-0f9c29048053c254d28df2121f791ea02b389d09.tar.gz gentoo-2-0f9c29048053c254d28df2121f791ea02b389d09.tar.bz2 gentoo-2-0f9c29048053c254d28df2121f791ea02b389d09.zip |
Set SUPPORT_PYTHON_ABIS.
(Portage version: 14215-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/m2crypto')
-rw-r--r-- | dev-python/m2crypto/ChangeLog | 6 | ||||
-rw-r--r-- | dev-python/m2crypto/m2crypto-0.20.1.ebuild | 25 |
2 files changed, 19 insertions, 12 deletions
diff --git a/dev-python/m2crypto/ChangeLog b/dev-python/m2crypto/ChangeLog index 67c8fb7e36fb..cc84ed6ec83a 100644 --- a/dev-python/m2crypto/ChangeLog +++ b/dev-python/m2crypto/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-python/m2crypto # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/m2crypto/ChangeLog,v 1.44 2009/09/07 19:55:51 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/m2crypto/ChangeLog,v 1.45 2009/09/08 02:19:30 arfrever Exp $ + + 08 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + m2crypto-0.20.1.ebuild: + Set SUPPORT_PYTHON_ABIS. *m2crypto-0.20.1 (07 Sep 2009) diff --git a/dev-python/m2crypto/m2crypto-0.20.1.ebuild b/dev-python/m2crypto/m2crypto-0.20.1.ebuild index ffa5bf415c65..a711c47a450b 100644 --- a/dev-python/m2crypto/m2crypto-0.20.1.ebuild +++ b/dev-python/m2crypto/m2crypto-0.20.1.ebuild @@ -1,8 +1,9 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/m2crypto/m2crypto-0.20.1.ebuild,v 1.1 2009/09/07 19:55:51 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/m2crypto/m2crypto-0.20.1.ebuild,v 1.2 2009/09/08 02:19:30 arfrever Exp $ EAPI="2" +SUPPORT_PYTHON_ABIS="1" inherit distutils eutils multilib portability @@ -22,29 +23,31 @@ DEPEND="${RDEPEND} >=dev-lang/swig-1.3.25 doc? ( dev-python/epydoc ) dev-python/setuptools" +RESTRICT_PYTHON_ABIS="3.*" PYTHON_MODNAME="${MY_PN}" S="${WORKDIR}/${MY_PN}-${PV}" +DOCS="CHANGES" + +src_test() { + testing() { + PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib*)" "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" test + } + python_execute_function testing +} + src_install() { - DOCS="CHANGES INSTALL" distutils_src_install if use doc; then cd "${S}/demo" treecopy . "${D}/usr/share/doc/${PF}/example" - einfo "Generating API docs as requested..." + einfo "Generating API documentation..." cd "${S}/doc" - distutils_python_version - export PYTHONPATH="${PYTHONPATH}:${D}/usr/$(get_libdir)/python${PYVER}/site-packages" - einfo "${PYTHONPATH}" - epydoc --html --output=api --name=M2Crypto M2Crypto + PYTHONPATH="${PYTHONPATH}:${D}$(python_get_sitedir)" epydoc --html --output=api --name=M2Crypto M2Crypto fi dohtml -r * } - -src_test() { - "${python}" setup.py test || die "test failed" -} |