aboutsummaryrefslogtreecommitdiff
blob: c571deecff7f667efd4074e7a8b71d9f3f3206ec (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-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

DESCRIPTION="Galaxy morphology fitting program"
HOMEPAGE="http://www.csua.berkeley.edu/~cyp/work/galfit/galfit.html"
SRC_URI="amd64? ( http://www.csua.berkeley.edu/~cyp/work/${PN}/${PN}3-debian64.tar.gz )
	x86? ( http://www.csua.berkeley.edu/~cyp/work/${PN}/${PN}3-debian.tar.gz )
	doc? ( http://www.csua.berkeley.edu/~cyp/work/${PN}/README.pdf -> galfit.pdf )
	examples? ( http://www.csua.berkeley.edu/~cyp/work/${PN}/galfit-ex.tar.gz )
	test? ( http://www.csua.berkeley.edu/~cyp/work/${PN}/galfit-ex.tar.gz )"

RESTRICT="mirror"

LICENSE="as-is"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="doc examples"

RDEPEND="sys-libs/ncurses"
DEPEND=""

S="${WORKDIR}"

src_test() {
	cd galfit-example/EXAMPLE
	../../galfit galfit.feedme
}

src_install () {
	dobin galfit
	use doc && newdoc "${DISTDIR}"/galfit.pdf README.pdf
	if use examples; then
		insinto /usr/share/doc/${PF}/examples
		doins galfit-example/*
	fi
}