Fix dependencies. Avoid breaking strict-aliasing rules. Simplify src_test(). Patch...
authorMarkos Chandras <hwoarang@gentoo.org>
Mon, 8 Aug 2011 18:35:34 +0000 (18:35 +0000)
committerMarkos Chandras <hwoarang@gentoo.org>
Mon, 8 Aug 2011 18:35:34 +0000 (18:35 +0000)
Package-Manager: portage-2.2.0_alpha46/cvs/Linux x86_64

dev-python/vo/ChangeLog
dev-python/vo/vo-0.7.ebuild

index b875aa7560036169a76d441e27348985daf2d6c9..25929a0ca58b59cc256a7c985602c7f89f9e71cc 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for dev-python/vo
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/vo/ChangeLog,v 1.7 2011/08/04 18:40:57 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/vo/ChangeLog,v 1.8 2011/08/08 18:35:34 hwoarang Exp $
+
+  08 Aug 2011; Markos Chandras <hwoarang@gentoo.org> vo-0.7.ebuild:
+  Fix dependencies. Avoid breaking strict-aliasing rules. Simplify src_test().
+  Patch by Arfrever.
 
   04 Aug 2011; Sébastien Fabbro <bicatali@gentoo.org> metadata.xml:
   Switched herd to sci-astronomy
index f7c5031db72af4fb02202cf965cedac2f4519f9d..8d3359575bd6f5b134c0a8e9f83cce17d188b12e 100644 (file)
@@ -1,12 +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/vo/vo-0.7.ebuild,v 1.2 2011/08/04 00:04:14 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/vo/vo-0.7.ebuild,v 1.3 2011/08/08 18:35:34 hwoarang Exp $
 
 EAPI=3
 
-PYTHON_DEPEND="*:2.5"
+PYTHON_DEPEND="*:2.6"
 SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="2.4"
+RESTRICT_PYTHON_ABIS="2.4 2.5 *-jython"
 
 inherit distutils eutils
 
@@ -22,15 +22,17 @@ LICENSE="BSD"
 RDEPEND="dev-libs/expat"
 DEPEND="${RDEPEND}"
 
+PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
+
 src_prepare() {
        epatch "${FILESDIR}"/${PN}-0.6-expat.patch
 }
 
 src_test() {
        cd test
+
        testing() {
-               PYTHONPATH="$(ls -d ${S}/build-${PYTHON_ABI}/lib*)"  \
-                       "$(PYTHON)" benchmarks.py || die "test failed with Python ${PYTHON_ABI}"
+               PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" benchmarks.py
        }
        python_execute_function testing
 }