# 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/observing/cpl/" SRC_URI="ftp://ftp.eso.org/pub/cpl/${PF}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" #todo: enable Gasgano support. IUSE="doc" # The qfits library is not used any more RDEPEND="=sci-libs/cfitsio-2.510-r1" DEPEND="${RDEPEND}" src_compile() { # configure will fail if you don't have libcfitsio.a file # see Bug 224225 my_args="--with-cfitsio=/usr" econf ${my_args} \ || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc README AUTHORS NEWS TODO BUGS ChangeLog if use doc; then insinto "usr/share/doc/${PF}/html" doins html/* fi }