summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pyfits/pyfits-2.1.1.ebuild')
-rw-r--r--dev-python/pyfits/pyfits-2.1.1.ebuild29
1 files changed, 19 insertions, 10 deletions
diff --git a/dev-python/pyfits/pyfits-2.1.1.ebuild b/dev-python/pyfits/pyfits-2.1.1.ebuild
index 0e28860aa5bc..2f43c33a47a6 100644
--- a/dev-python/pyfits/pyfits-2.1.1.ebuild
+++ b/dev-python/pyfits/pyfits-2.1.1.ebuild
@@ -1,26 +1,35 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyfits/pyfits-2.1.1.ebuild,v 1.1 2009/09/07 21:11:09 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyfits/pyfits-2.1.1.ebuild,v 1.2 2009/09/08 02:48:45 arfrever Exp $
+
+EAPI="2"
+
+NEED_PYTHON="2.3"
+SUPPORT_PYTHON_ABIS="1"
-NEED_PYTHON=2.3
inherit distutils
DESCRIPTION="Provides an interface to FITS formatted files under python"
SRC_URI="http://www.stsci.edu/resources/software_hardware/${PN}/${P}.tar.gz"
HOMEPAGE="http://www.stsci.edu/resources/software_hardware/pyfits"
-RDEPEND="dev-python/numpy"
-DEPEND="${RDEPEND}"
-
IUSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86 ~x86-fbsd"
LICENSE="AURA"
+RDEPEND="dev-python/numpy"
+DEPEND="${RDEPEND}"
+RESTRICT_PYTHON_ABIS="3.*"
+
src_test() {
- cd "${S}"/test
- for t in test*.py; do
- PYTHONPATH="$(dir -d ${S}/build/lib*)" "${python}" \
- ${t} || die "test ${t} failed"
- done
+ cd "${S}/test"
+
+ testing() {
+ local test
+ for test in test*.py; do
+ PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib*)" "$(PYTHON)" "${test}" || die "test ${test} failed"
+ done
+ }
+ python_execute_function testing
}