| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyfits/pyfits-3.1.ebuild,v 1.2 2012/10/12 09:35:57 patrick Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
PYTHON_DEPEND="*:2.6"
|
| 8 |
SUPPORT_PYTHON_ABIS="1"
|
| 9 |
RESTRICT_PYTHON_ABIS="2.5 2.7-pypy-* 3.3"
|
| 10 |
DISTUTILS_SRC_TEST=nosetests
|
| 11 |
|
| 12 |
inherit distutils eutils
|
| 13 |
|
| 14 |
DESCRIPTION="Provides an interface to FITS formatted files under python"
|
| 15 |
HOMEPAGE="http://www.stsci.edu/resources/software_hardware/pyfits http://pypi.python.org/pypi/pyfits"
|
| 16 |
SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz"
|
| 17 |
|
| 18 |
LICENSE="BSD"
|
| 19 |
SLOT="0"
|
| 20 |
KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
| 21 |
IUSE=""
|
| 22 |
|
| 23 |
RDEPEND="dev-python/numpy
|
| 24 |
dev-python/setuptools
|
| 25 |
!dev-python/astropy"
|
| 26 |
DEPEND="${RDEPEND}
|
| 27 |
dev-python/stsci-distutils
|
| 28 |
dev-python/d2to1"
|
| 29 |
|
| 30 |
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
|
| 31 |
|
| 32 |
src_prepare() {
|
| 33 |
epatch "${FILESDIR}"/${PN}-3.0.8-debundle_zlib.patch
|
| 34 |
distutils_src_prepare
|
| 35 |
}
|
| 36 |
|
| 37 |
src_test() {
|
| 38 |
testing() {
|
| 39 |
nosetests -w "$(ls -d build-${PYTHON_ABI}/lib*)"
|
| 40 |
}
|
| 41 |
python_execute_function testing
|
| 42 |
}
|