summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-12-28 21:50:55 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-12-28 21:50:55 +0000
commite4695e861a7d76071ffd97c9035d152e36f1b5b8 (patch)
treee28a310b29d635f469b2763de2689c37535af898 /dev-java/java-config
parentold (diff)
downloadgentoo-2-e4695e861a7d76071ffd97c9035d152e36f1b5b8.tar.gz
gentoo-2-e4695e861a7d76071ffd97c9035d152e36f1b5b8.tar.bz2
gentoo-2-e4695e861a7d76071ffd97c9035d152e36f1b5b8.zip
Set SUPPORT_PYTHON_ABIS. Add src_test().
(Portage version: 15153-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/java-config')
-rw-r--r--dev-java/java-config/ChangeLog6
-rw-r--r--dev-java/java-config/java-config-2.1.10.ebuild25
2 files changed, 26 insertions, 5 deletions
diff --git a/dev-java/java-config/ChangeLog b/dev-java/java-config/ChangeLog
index 04db84fb9762..0d86bd08a572 100644
--- a/dev-java/java-config/ChangeLog
+++ b/dev-java/java-config/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-java/java-config
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/java-config/ChangeLog,v 1.234 2009/12/28 20:49:25 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/java-config/ChangeLog,v 1.235 2009/12/28 21:50:55 arfrever Exp $
+
+ 28 Dec 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ java-config-2.1.10.ebuild:
+ Set SUPPORT_PYTHON_ABIS. Add src_test().
28 Dec 2009; Markus Meier <maekke@gentoo.org> java-config-2.1.9-r2.ebuild:
amd64 stable, bug #292003
diff --git a/dev-java/java-config/java-config-2.1.10.ebuild b/dev-java/java-config/java-config-2.1.10.ebuild
index c5e9fbabdfc2..59ad0ba79fd8 100644
--- a/dev-java/java-config/java-config-2.1.10.ebuild
+++ b/dev-java/java-config/java-config-2.1.10.ebuild
@@ -1,6 +1,10 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/java-config/java-config-2.1.10.ebuild,v 1.1 2009/12/06 01:50:43 ali_bush Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/java-config/java-config-2.1.10.ebuild,v 1.2 2009/12/28 21:50:55 arfrever Exp $
+
+EAPI="2"
+NEED_PYTHON="2.4"
+SUPPORT_PYTHON_ABIS="1"
inherit fdo-mime gnome2-utils distutils eutils
@@ -13,12 +17,25 @@ SLOT="2"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
IUSE=""
-DEPEND="dev-lang/python"
-RDEPEND="${DEPEND}
- >=dev-java/java-config-wrapper-0.15"
+DEPEND=""
+RDEPEND=">=dev-java/java-config-wrapper-0.15"
+# Tests fail when java-config isn't already installed.
+RESTRICT="test"
+RESTRICT_PYTHON_ABIS="3.*"
PYTHON_MODNAME="java_config_2"
+src_prepare() {
+ sed -e "s/if not self.dry_run/& and not os.path.exists(s)/" -i setup.py || die "sed failed"
+}
+
+src_test() {
+ testing() {
+ PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" src/run-test-suite.py
+ }
+ python_execute_function testing
+}
+
src_install() {
distutils_src_install