summaryrefslogtreecommitdiff
blob: 0a5c8b097a8001812007f6e6b7af4253ef870a09 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2
inherit git flag-o-matic

DESCRIPTION="A collection of FTools orchestrated by a pipeline driver"
HOMEPAGE="http://pulsar.sternwarte.uni-erlangen.de/fpipe/"
EGIT_REPO_URI="git://git.tokkee.org/fpipe.git"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="debug"

DEPEND=">=x11-libs/gtk+-2.14
		dev-lang/perl
		dev-perl/gtk2-perl
		dev-perl/XML-Simple
		virtual/perl-Time-HiRes
		sci-astronomy/ftools"

pkg_setup() {
	ewarn "Note: this software is not yet in a too mature status so expect some minor things to break"
}

src_prepare() {
	cd software
	./bootstrap.sh
}

src_configure() {
	filter-flags -O2
	cd software
	econf $(use_enable debug debug 1) --disable-fpcmsimulator || die "econf failed"
}

src_compile() {
	cd software
	emake || die "emake failed"
}

src_install() {
	cd software
	emake DESTDIR="${D}" install || die "emake install failed"

	cd "${S}"/example_files/pipelinedef
	insinto /usr/share/"${PN}"/pipelinedef
	doins *

	cd "${S}"/documents
	dodoc *.pdf *.odf
}

pkg_postinst() {
	elog "Before using this package you need to initialise heasoft by"
	elog "sourcing the headas-init script, like so"
	elog "	. ${HEADAS}/headas-init.sh"
	elog "heasoft is sci-astronomy/ftools"
	elog "Example pipelines have been installed into"
	elog "/usr/share/${PN}/pipelinedef"
}