aboutsummaryrefslogtreecommitdiff
blob: 3b243ea19f162e1542b0a5edfd3b03a29dfa0a59 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="ESO common pipeline library for astronomical data reduction"
HOMEPAGE="http://www.eso.org/sci/data-processing/software/cpl/"
SRC_URI="ftp://ftp.eso.org/pub/${PN}/${PF}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

#todo: enable Gasgano support.
IUSE="doc"

# The qfits library is not used any more
RDEPEND="=sci-libs/cfitsio-2.510*"
DEPEND="${RDEPEND}"

src_compile() {
	econf \
		--with-cfitsio="/usr" \
		|| die "econf failed"
	emake || die "emake failed"
}

src_install() {

	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc README AUTHORS NEWS TODO BUGS ChangeLog
	use doc && dohtml html/*
}

pkg_postinst() {
	elog "Help us to improve the ebuild"
	elog "http://bugs.gentoo.org/show_bug.cgi?id=224227"
}