diff options
author | 2012-01-06 17:37:02 +0000 | |
---|---|---|
committer | 2012-01-06 17:37:02 +0000 | |
commit | 9d18b40823f4557e8bbeb1e3c69a5abd50e4e8f5 (patch) | |
tree | 30ca9c49a720b3cec8552e786c6a823a9c66d2fe /dev-python/pywcs/pywcs-1.11.ebuild | |
parent | dev-java/netbeans-mobility: version bump (diff) | |
download | gentoo-2-9d18b40823f4557e8bbeb1e3c69a5abd50e4e8f5.tar.gz gentoo-2-9d18b40823f4557e8bbeb1e3c69a5abd50e4e8f5.tar.bz2 gentoo-2-9d18b40823f4557e8bbeb1e3c69a5abd50e4e8f5.zip |
Version bump, adds Python3 support
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pywcs/pywcs-1.11.ebuild')
-rw-r--r-- | dev-python/pywcs/pywcs-1.11.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-python/pywcs/pywcs-1.11.ebuild b/dev-python/pywcs/pywcs-1.11.ebuild new file mode 100644 index 000000000000..9d354b05a1ee --- /dev/null +++ b/dev-python/pywcs/pywcs-1.11.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pywcs/pywcs-1.11.ebuild,v 1.1 2012/01/06 17:37:02 xarthisius Exp $ + +EAPI=4 + +PYTHON_DEPEND="*" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils 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 http://www.scipy.org/AstroLib" +SRC_URI="http://stsdas.stsci.edu/astrolib/${MYP}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +CDEPEND=">=sci-astronomy/wcslib-${WCS_V}" +DEPEND="${CDEPEND} + dev-util/pkgconfig" +RDEPEND="${CDEPEND} + dev-python/pyfits" + +S=${WORKDIR}/${MYP} + +src_prepare(){ + epatch "${FILESDIR}"/${P}-wcslib.patch + distutils_src_prepare +} + +src_test() { + testing() { + PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" \ + "$(PYTHON)" lib/${PN}/tests/test.py + } + python_execute_function testing +} + +#FIX: compiles twice (once during build, another time during install) +# seems to be in the defsetup.py hack script |