summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2011-11-05 19:33:08 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2011-11-05 19:33:08 +0000
commitc91c355be8fc9a0858dc6785f4b48062af5d8ba1 (patch)
tree02c36f86bc570df4c20b556da493a1cf4bc8e33d /dev-python
parentsparc stable wrt #388161 (diff)
downloadgentoo-2-c91c355be8fc9a0858dc6785f4b48062af5d8ba1.tar.gz
gentoo-2-c91c355be8fc9a0858dc6785f4b48062af5d8ba1.tar.bz2
gentoo-2-c91c355be8fc9a0858dc6785f4b48062af5d8ba1.zip
Fix support for Jython. Don't install C sources. Patch by Arfrever.
(Portage version: 2.2.0_alpha72/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/storm/ChangeLog5
-rw-r--r--dev-python/storm/storm-0.19.ebuild24
2 files changed, 25 insertions, 4 deletions
diff --git a/dev-python/storm/ChangeLog b/dev-python/storm/ChangeLog
index ec1af5f5d0d5..18f7b68d5e95 100644
--- a/dev-python/storm/ChangeLog
+++ b/dev-python/storm/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-python/storm
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/storm/ChangeLog,v 1.11 2011/11/03 17:00:09 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/storm/ChangeLog,v 1.12 2011/11/05 19:33:08 hwoarang Exp $
+
+ 05 Nov 2011; Markos Chandras <hwoarang@gentoo.org> storm-0.19.ebuild:
+ Fix support for Jython. Don't install C sources. Patch by Arfrever.
*storm-0.19 (03 Nov 2011)
diff --git a/dev-python/storm/storm-0.19.ebuild b/dev-python/storm/storm-0.19.ebuild
index 96ac63eeb4ed..a4fb05b90069 100644
--- a/dev-python/storm/storm-0.19.ebuild
+++ b/dev-python/storm/storm-0.19.ebuild
@@ -1,11 +1,12 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/storm/storm-0.19.ebuild,v 1.1 2011/11/03 17:00:08 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/storm/storm-0.19.ebuild,v 1.2 2011/11/05 19:33:08 hwoarang Exp $
EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
+PYTHON_TESTS_FAILURES_TOLERANT_ABIS="*-jython"
inherit distutils
@@ -26,8 +27,20 @@ DEPEND="dev-python/setuptools
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
+DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
DOCS="tests/tutorial.txt"
+src_prepare() {
+ distutils_src_prepare
+
+ preparation() {
+ if [[ "$(python_get_implementation)" == "Jython" ]]; then
+ sed -e "s/BUILD_CEXTENSIONS = True/BUILD_CEXTENSIONS = False/" -i setup.py
+ fi
+ }
+ python_execute_function -s preparation
+}
+
src_test() {
if use mysql; then
elog "To run the MySQL-tests, you need:"
@@ -45,7 +58,12 @@ src_test() {
fi
testing() {
- PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib*)" "$(PYTHON)" test --verbose
+ PYTHONPATH="$(ls -d build/lib*)" "$(PYTHON)" test --verbose
}
- python_execute_function testing
+ python_execute_function -s testing
+}
+
+src_install() {
+ distutils_src_install
+ python_clean_installation_image
}