diff options
Diffstat (limited to 'dev-python/pywcs/pywcs-1.8.1.ebuild')
-rw-r--r-- | dev-python/pywcs/pywcs-1.8.1.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-python/pywcs/pywcs-1.8.1.ebuild b/dev-python/pywcs/pywcs-1.8.1.ebuild new file mode 100644 index 000000000..0bb35ba46 --- /dev/null +++ b/dev-python/pywcs/pywcs-1.8.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3 +inherit distutils eutils + +WCS_V=4.4.4 +MYP="${P}-${WCS_V}" + +DESCRIPTION="Python routines for handling the FITS World Coordinate System" +HOMEPAGE="https://www.stsci.edu/trac/ssb/astrolib/" +SRC_URI="http://stsdas.stsci.edu/astrolib/${MYP}.tar.gz" + +DEPEND="dev-python/pyfits + >=sci-astronomy/wcslib-4.4.4" +RDEPEND="${DEPEND}" + +IUSE="" +SLOT="0" +KEYWORDS="~amd64 ~x86" +LICENSE="AURA" + +S=${WORKDIR}/${MYP} + +src_prepare(){ + epatch "${FILESDIR}"/${P}-wcslib.patch +} + +# FIX: compiles twice due to stsci hacks + +src_test() { + # FIX: does not work, needs fits files + PYTHONPATH=$(dir -d build/lib*) "${python}" test/test.py || die +} |