| 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/vo/vo-0.8.ebuild,v 1.2 2012/08/02 17:53:52 bicatali Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
|
| 7 |
SUPPORT_PYTHON_ABIS="1" |
| 8 |
RESTRICT_PYTHON_ABIS="2.4 2.5 *-jython" |
| 9 |
|
| 10 |
inherit distutils eutils |
| 11 |
|
| 12 |
DESCRIPTION="Python module to read VOTABLE into a Numpy recarray" |
| 13 |
HOMEPAGE="https://trac6.assembla.com/astrolib/wiki http://www.scipy.org/AstroLib" |
| 14 |
SRC_URI="http://stsdas.stsci.edu/astrolib/${P}.tar.gz" |
| 15 |
|
| 16 |
IUSE="examples" |
| 17 |
SLOT="0" |
| 18 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
| 19 |
LICENSE="BSD" |
| 20 |
|
| 21 |
RDEPEND="dev-libs/expat |
| 22 |
!dev-python/astropy" |
| 23 |
DEPEND="${RDEPEND}" |
| 24 |
|
| 25 |
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing") |
| 26 |
|
| 27 |
# missing data to perform tests |
| 28 |
RESTRICT="test" |
| 29 |
|
| 30 |
src_prepare() { |
| 31 |
epatch "${FILESDIR}"/${PN}-0.6-expat.patch |
| 32 |
} |
| 33 |
|
| 34 |
src_test() { |
| 35 |
cd test |
| 36 |
testing() { |
| 37 |
PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" \ |
| 38 |
"$(PYTHON)" benchmarks.py |
| 39 |
} |
| 40 |
python_execute_function testing |
| 41 |
} |
| 42 |
|
| 43 |
src_install() { |
| 44 |
distutils_src_install |
| 45 |
if use examples; then |
| 46 |
insinto /usr/share/doc/${PF}/ |
| 47 |
doins -r examples |
| 48 |
fi |
| 49 |
} |