You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/aplpy/aplpy-0.9.8.ebuild

43 lines
894 B

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/aplpy/aplpy-0.9.8.ebuild,v 1.2 2012/03/26 05:01:28 mr_bones_ Exp $
EAPI=2
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
inherit distutils
MYP=APLpy-${PV}
DESCRIPTION="Astronomical Plotting Library in Python"
HOMEPAGE="http://aplpy.github.com/ http://pypi.python.org/pypi/APLpy"
SRC_URI="https://github.com/downloads/${PN}/${PN}/${MYP}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND="dev-python/numpy
dev-python/matplotlib
dev-python/pyfits
dev-python/pywcs"
DEPEND="dev-python/numpy
test? (
dev-python/pytest
${RDEPEND}
)"
RESTRICT_PYTHON_ABIS="3.*"
S=${WORKDIR}/${MYP}
src_test() {
testing() {
PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" runtests.py
}
python_execute_function testing
}