41 lines
959 B
Bash
41 lines
959 B
Bash
# Copyright 1999-2013 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/pywcs/pywcs-1.11-r1.ebuild,v 1.1 2013/04/24 22:42:52 bicatali Exp $
|
|
|
|
EAPI=5
|
|
|
|
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
|
|
|
|
inherit distutils-r1 eutils
|
|
|
|
WCS_V=4.8.2
|
|
MYP=${P}-${WCS_V}
|
|
|
|
DESCRIPTION="Python routines for handling the FITS World Coordinate System"
|
|
HOMEPAGE="https://trac6.assembla.com/astrolib/wiki"
|
|
SRC_URI="http://stsdas.stsci.edu/astrolib/${MYP}.tar.gz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
|
IUSE=""
|
|
|
|
DEPEND="
|
|
>=sci-astronomy/wcslib-${WCS_V}
|
|
virtual/pkgconfig"
|
|
RDEPEND="
|
|
>=sci-astronomy/wcslib-${WCS_V}
|
|
virtual/pyfits
|
|
!dev-python/astropy"
|
|
|
|
# missing data to run tests
|
|
RESTRICT=test
|
|
S="${WORKDIR}/${MYP}"
|
|
|
|
python_prepare_all(){
|
|
epatch "${FILESDIR}"/${P}-wcslib.patch
|
|
}
|
|
|
|
python_test() {
|
|
nosetests -w "${BUILD_DIR}"/lib || die "Tests fail with ${EPYTHON}"
|
|
}
|