blob: 3087107cbb9bc8e9d014822aa2399f8ec979f7f4 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
PYTHON_DEPEND="2:2.6"
inherit distutils eutils
DESCRIPTION="Python module to read VOTABLE into a Numpy recarray"
HOMEPAGE="https://www.stsci.edu/trac/ssb/astrolib/"
SRC_URI="http://stsdas.stsci.edu/astrolib/${P}.tar.gz"
IUSE="test"
SLOT="0"
KEYWORDS="~amd64 ~x86"
LICENSE="AURA"
DEPEND="${RDEPEND}
test? ( dev-python/nose )"
RDEPEND="dev-libs/expat"
pkg_setup() {
python_set_active_version 2
}
src_prepare() {
epatch "${FILESDIR}"/${P}-docs.patch
epatch "${FILESDIR}"/${P}-assertion_fix.patch
epatch "${FILESDIR}"/${P}-expat.patch
use test && epatch "${FILESDIR}"/${P}-skiptests.patch
}
#FIX ME: docs are no longer built (missing stsci_sphinxext )
src_test() {
cd test
PYTHONPATH=$(dir -d ../build/lib.*) nosetests -v || die
}
|