| 1 |
bicatali |
1.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/atpy/atpy-0.9.5.3.ebuild,v 1.2 2012/04/23 20:18:15 mgorny Exp $
|
| 4 |
|
|
|
| 5 |
|
|
EAPI="2"
|
| 6 |
|
|
|
| 7 |
|
|
PYTHON_DEPEND="2:2.6"
|
| 8 |
|
|
SUPPORT_PYTHON_ABIS="1"
|
| 9 |
|
|
RESTRICT_PYTHON_ABIS="2.[45] 3.* *-jython"
|
| 10 |
|
|
|
| 11 |
|
|
inherit distutils
|
| 12 |
|
|
|
| 13 |
|
|
MYPN=ATpy
|
| 14 |
|
|
MYP="${MYPN}-${PV}"
|
| 15 |
|
|
|
| 16 |
|
|
DESCRIPTION="Astronomical tables support for Python"
|
| 17 |
|
|
HOMEPAGE="http://atpy.github.com/ http://pypi.python.org/pypi/ATpy"
|
| 18 |
|
|
SRC_URI="mirror://github/${PN}/${PN}/${MYP}.tar.gz"
|
| 19 |
|
|
|
| 20 |
|
|
RDEPEND="dev-python/numpy
|
| 21 |
|
|
dev-python/asciitable
|
| 22 |
|
|
fits? ( dev-python/pyfits )
|
| 23 |
|
|
hdf5? ( dev-python/h5py )
|
| 24 |
|
|
mysql? ( dev-python/mysql-python )
|
| 25 |
|
|
postgres? ( dev-db/pygresql )
|
| 26 |
|
|
sqlite? ( dev-python/pysqlite )
|
| 27 |
|
|
votable? ( dev-python/vo )"
|
| 28 |
|
|
|
| 29 |
|
|
DEPEND=">=dev-python/numpy-1.3"
|
| 30 |
|
|
|
| 31 |
|
|
IUSE="+fits hdf5 mysql postgres sqlite +votable"
|
| 32 |
|
|
SLOT="0"
|
| 33 |
|
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
| 34 |
|
|
LICENSE="GPL-3"
|
| 35 |
|
|
|
| 36 |
|
|
S="${WORKDIR}/${MYP}"
|
| 37 |
|
|
|
| 38 |
|
|
src_test() {
|
| 39 |
|
|
testing() {
|
| 40 |
|
|
PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" test/unittests.py
|
| 41 |
|
|
}
|
| 42 |
|
|
python_execute_function testing
|
| 43 |
|
|
}
|