summaryrefslogtreecommitdiff
blob: 8e39d27240f5fe4e121f8e981e0abb653c287ccf (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyfits/pyfits-1.1.ebuild,v 1.1 2007/07/31 22:25:24 bicatali Exp $

NEED_PYTHON=2.3
inherit distutils

DESCRIPTION="Provides an interface to FITS formatted files under python"
SRC_URI="http://www.stsci.edu/resources/software_hardware/${PN}/${P}.tar.gz"
HOMEPAGE="http://www.stsci.edu/resources/software_hardware/pyfits"

RDEPEND="|| ( >=dev-python/numpy-1.0.1 dev-python/numarray )"
DEPEND="test? ( >=dev-python/numpy-1.0.1 )"

IUSE="doc"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~x86-fbsd"
LICENSE="AURA"

S="${WORKDIR}/${PN}"

src_test() {
	cd ${S}/test
	for t in test*.py; do
		PYTHONPATH=${S}/build/lib ${python} ${t} || die "test failed"
	done
}

src_install() {
	distutils_src_install
	if use doc; then
		insinto /usr/share/doc/${PF}
		doins docs/Users_Manual.pdf
	fi
}