blob: 11a4346647b97e70157aa5d5ea2d254df46dc3ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
SUPPORT_PYTHON_ABIS="1"
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"
COMMON_DEPEND=">=sci-astronomy/wcslib-4.4.4"
DEPEND="${COMMON_DEPEND}
dev-util/pkgconfig"
RDEPEND="${COMMON_DEPEND}
dev-python/pyfits"
IUSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
LICENSE="AURA"
RESTRICT_PYTHON_ABIS="3.*"
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
testing() {
PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" test/test.py
}
python_execute_function testing
}
|