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