summaryrefslogtreecommitdiff
blob: e0b7fe21f29dd7823dd9fe55622386069c666d1b (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/numdisplay/numdisplay-1.3.ebuild,v 1.2 2007/08/23 20:01:18 mr_bones_ Exp $

inherit distutils

DESCRIPTION="Python package for interactively displaying FITS arrays"
SRC_URI="http://stsdas.stsci.edu/${PN}/download/${P}.tar"
HOMEPAGE="http://stsdas.stsci.edu/numdisplay/"

SLOT="0"

KEYWORDS="~amd64 ~x86"
LICENSE="AURA"
IUSE="doc"

DEPEND="virtual/python"
RDEPEND="${DEPEND}
	>=dev-python/numpy-1.0.1"

src_unpack() {
	unpack ${A}
	cd "${S}"
	sed -i \
		-e '/copy_doc(data_dir, args)$/d' \
		setup.py || die "sed setup.py failed"
	sed -i \
		-e 's:/usr/local/lib:/etc:' \
		imconfig.py || die "sed imconfig.py failed"
}

src_install() {
	distutils_src_install
	insinto /etc
	doins imtoolrc || die "doins imtoolrc failed"
	if use doc; then
		einfo "Installing doc"
		insinto /usr/share/doc/${PF}
		doins doc/numdisplay.pdf || die "doins doc failed"
	fi
}