diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-12-31 21:27:49 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-12-31 21:27:49 +0000 |
commit | c27711441e2b14a5e567081724c1d3b79139816e (patch) | |
tree | 701be28a3cfa74e90d72f73905eb30668e7c2b70 /dev-python/jinja | |
parent | Old. (diff) | |
download | gentoo-2-c27711441e2b14a5e567081724c1d3b79139816e.tar.gz gentoo-2-c27711441e2b14a5e567081724c1d3b79139816e.tar.bz2 gentoo-2-c27711441e2b14a5e567081724c1d3b79139816e.zip |
Fix building with Jython.
(Portage version: 2.2.0_alpha11_p1/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/jinja')
-rw-r--r-- | dev-python/jinja/ChangeLog | 6 | ||||
-rw-r--r-- | dev-python/jinja/jinja-2.5.5.ebuild | 23 |
2 files changed, 26 insertions, 3 deletions
diff --git a/dev-python/jinja/ChangeLog b/dev-python/jinja/ChangeLog index b7d158af623d..b9cf8918d9aa 100644 --- a/dev-python/jinja/ChangeLog +++ b/dev-python/jinja/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-python/jinja # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja/ChangeLog,v 1.42 2010/12/27 21:09:47 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja/ChangeLog,v 1.43 2010/12/31 21:27:49 arfrever Exp $ + + 31 Dec 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + jinja-2.5.5.ebuild: + Fix building with Jython. 27 Dec 2010; Brent Baude <ranger@gentoo.org> jinja-2.5.5.ebuild: Marking jinja-2.5.5 ppc64 for bug 347109 diff --git a/dev-python/jinja/jinja-2.5.5.ebuild b/dev-python/jinja/jinja-2.5.5.ebuild index 1f965ae855f9..e65399f3d665 100644 --- a/dev-python/jinja/jinja-2.5.5.ebuild +++ b/dev-python/jinja/jinja-2.5.5.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja/jinja-2.5.5.ebuild,v 1.7 2010/12/27 21:09:47 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja/jinja-2.5.5.ebuild,v 1.8 2010/12/31 21:27:49 arfrever Exp $ EAPI="3" SUPPORT_PYTHON_ABIS="1" @@ -28,10 +28,21 @@ DEPEND="${RDEPEND} S="${WORKDIR}/${MY_P}" -DISTUTILS_GLOBAL_OPTIONS=("--with-debugsupport") DOCS="CHANGES" PYTHON_MODNAME="jinja2" +set_global_options() { + if [[ "$(python_get_implementation)" != "Jython" ]]; then + DISTUTILS_GLOBAL_OPTIONS=("--with-debugsupport") + else + DISTUTILS_GLOBAL_OPTIONS=() + fi +} + +distutils_src_compile_pre_hook() { + set_global_options +} + src_compile(){ distutils_src_compile @@ -42,6 +53,14 @@ src_compile(){ fi } +distutils_src_test_pre_hook() { + set_global_options +} + +distutils_src_install_pre_hook() { + set_global_options +} + src_install(){ distutils_src_install python_clean_installation_image |