diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-03-28 17:31:31 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-03-28 17:31:31 +0000 |
commit | 102c40c0a28e17cbc49f31c2ec1629fbeea813a6 (patch) | |
tree | 4ee9548091c3c0b3fa07479dbf5b2c08e1feb2da /dev-python | |
parent | Remove the sysconfigdir patch from qemu-kvm-9999 as the fix was applied upstr... (diff) | |
download | gentoo-2-102c40c0a28e17cbc49f31c2ec1629fbeea813a6.tar.gz gentoo-2-102c40c0a28e17cbc49f31c2ec1629fbeea813a6.tar.bz2 gentoo-2-102c40c0a28e17cbc49f31c2ec1629fbeea813a6.zip |
Set SUPPORT_PYTHON_ABIS.
(Portage version: 15841-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/empy/ChangeLog | 6 | ||||
-rw-r--r-- | dev-python/empy/empy-3.3.ebuild | 48 |
2 files changed, 38 insertions, 16 deletions
diff --git a/dev-python/empy/ChangeLog b/dev-python/empy/ChangeLog index 989745fb8aa2..62dc5725b363 100644 --- a/dev-python/empy/ChangeLog +++ b/dev-python/empy/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-python/empy # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/empy/ChangeLog,v 1.14 2010/01/14 19:54:26 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/empy/ChangeLog,v 1.15 2010/03/28 17:31:31 arfrever Exp $ + + 28 Mar 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + empy-3.3.ebuild: + Set SUPPORT_PYTHON_ABIS. 14 Jan 2010; Brent Baude <ranger@gentoo.org> empy-3.3.ebuild: Marking empy-3.3 ppc for bug 299383 diff --git a/dev-python/empy/empy-3.3.ebuild b/dev-python/empy/empy-3.3.ebuild index 4206e04a7c07..a003efe795bc 100644 --- a/dev-python/empy/empy-3.3.ebuild +++ b/dev-python/empy/empy-3.3.ebuild @@ -1,33 +1,55 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/empy/empy-3.3.ebuild,v 1.12 2010/01/14 19:54:26 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/empy/empy-3.3.ebuild,v 1.13 2010/03/28 17:31:31 arfrever Exp $ + +EAPI="3" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" inherit distutils DESCRIPTION="A powerful and robust templating system for Python" HOMEPAGE="http://www.alcyone.com/software/empy/" SRC_URI="http://www.alcyone.com/software/${PN}/${P}.tar.gz" + LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="amd64 ia64 ppc x86" IUSE="doc" -DEPEND="dev-lang/python" + +DEPEND="" +RDEPEND="" +RESTRICT_PYTHON_ABIS="3.*" + PYTHON_MODNAME="em.py" -src_unpack() { - unpack ${A} - cd "${S}" - sed -i -e "s:/usr/local/bin/python:/usr/bin/python:g" em.py \ - || die "Failed to patch em.py" +src_prepare() { + distutils_src_prepare + sed -e "s:/usr/local/bin/python:/usr/bin/python:g" -i em.py || die "sed failed" +} + +src_test() { + testing() { + ./test.sh "$(PYTHON)" + } + python_execute_function testing } src_install() { distutils_src_install + dodir /usr/bin - fperms 755 "$(python_get_sitedir)/em.py" - dosym $(python_get_sitedir)/em.py /usr/bin/em.py || \ - die "dosym failed" - if use doc ; then + + create_symlink() { + python_convert_shebangs $(python_get_version) "${ED}$(python_get_sitedir)/em.py" + fperms 755 "$(python_get_sitedir)/em.py" + dosym "$(python_get_sitedir)/em.py" "/usr/bin/em.py-${PYTHON_ABI}" + } + python_execute_function -q create_symlink + + python_generate_wrapper_scripts "${ED}usr/bin/em.py" + + if use doc; then dodir /usr/share/doc/"${PF}"/examples insinto /usr/share/doc/"${PF}"/examples doins sample.em sample.bench @@ -37,7 +59,3 @@ src_install() { dohtml doc/index.html fi } - -src_test() { - ./test.sh ${python} || die "tests failed" -} |