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 | f143727d38314fb02ecd34f32de2c943d520d2da (patch) | |
tree | 53f8302c8f7db8b58047511115ed5de630f6e37c /dev-python/empy | |
parent | Remove the sysconfigdir patch from qemu-kvm-9999 as the fix was applied upstr... (diff) | |
download | historical-f143727d38314fb02ecd34f32de2c943d520d2da.tar.gz historical-f143727d38314fb02ecd34f32de2c943d520d2da.tar.bz2 historical-f143727d38314fb02ecd34f32de2c943d520d2da.zip |
Set SUPPORT_PYTHON_ABIS.
Package-Manager: portage-15841-svn/cvs/Linux x86_64
Diffstat (limited to 'dev-python/empy')
-rw-r--r-- | dev-python/empy/ChangeLog | 6 | ||||
-rw-r--r-- | dev-python/empy/Manifest | 4 | ||||
-rw-r--r-- | dev-python/empy/empy-3.3.ebuild | 48 |
3 files changed, 40 insertions, 18 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/Manifest b/dev-python/empy/Manifest index 0cbdc7a4e603..b5df34511d06 100644 --- a/dev-python/empy/Manifest +++ b/dev-python/empy/Manifest @@ -1,4 +1,4 @@ DIST empy-3.3.tar.gz 137144 RMD160 0a9ef8d8c25a4784769a0de283108fe0ddca1289 SHA1 dfc82202231143b9aabc81bd735c6f8a559b5109 SHA256 c625436d03cff8adbbade639d14a2df9bc4c4de99ec3a821ad4d6eeb66ade805 -EBUILD empy-3.3.ebuild 1214 RMD160 5e2773711386943b2f3509e1dab0026e5d5a0122 SHA1 0cd5194298fd341bc7101f58eafa0a3c4f7545e2 SHA256 e1234687283c228a2f32099e82ccf8ee826b0c852a34566a6ede73222b26dd75 -MISC ChangeLog 1748 RMD160 6b043048a27f5e3eb29b5e5b070f88b28cb50e53 SHA1 5f03b91d20266049af6b0508a9810c9c89050b7d SHA256 60ad7b1bffc6b81aa3a23d66afa149d58d1ae4fe2380162cf6301bd59e932dcc +EBUILD empy-3.3.ebuild 1509 RMD160 ffc0fc61f773a9d768984b5b8bdc2229e42282cb SHA1 6d30da0789734d43b14363cbd734ac835612d73b SHA256 6a7fc5da39cae66161d41dce2a24c9f90075febabed0aba78a0ba4398486f91e +MISC ChangeLog 1870 RMD160 29635633e168db9050bd2904b03e72b0b5c98bfe SHA1 c946ae0d2488b57ada3fde48b7163e4f3af8a611 SHA256 87984aaf90e6a0e3b41648b90b9a096aaccb9ddccd3cbb1a7bf28ef1be0bcba6 MISC metadata.xml 159 RMD160 900a8c55d7a7d2f6312594769aaf941bf9e99c7f SHA1 c8e604d56dae898258b5254d78cfeac0b981e288 SHA256 9f01104d3484792496faff4805eed0ecea2352a897151f3397d49a13800037b4 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" -} |