2012-02-08 10:16:21 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2012-08-04 10:18:30 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/sci-libs/ccfits/ccfits-2.4.ebuild,v 1.2 2012/08/03 17:20:43 bicatali Exp $
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2012-02-08 10:16:21 +04:00
|
|
|
EAPI=4
|
2012-02-06 16:39:49 +04:00
|
|
|
inherit eutils autotools
|
|
|
|
|
|
|
|
MYPN=CCfits
|
|
|
|
MYP=${MYPN}-${PV}
|
|
|
|
|
|
|
|
DESCRIPTION="C++ interface for cfitsio"
|
|
|
|
HOMEPAGE="http://heasarc.gsfc.nasa.gov/fitsio/CCfits/"
|
|
|
|
SRC_URI="${HOMEPAGE}/${MYP}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
2012-08-04 10:18:30 +04:00
|
|
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
2012-02-08 10:16:21 +04:00
|
|
|
IUSE="doc static-libs"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
RDEPEND=">=sci-libs/cfitsio-3.080"
|
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
|
|
|
|
S="${WORKDIR}/${MYPN}"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
# avoid building cookbook by default and no rpath
|
|
|
|
epatch "${FILESDIR}"/${PN}-2.2-makefile.patch
|
|
|
|
AT_M4DIR=config/m4 eautoreconf
|
|
|
|
}
|
|
|
|
|
2012-02-08 10:16:21 +04:00
|
|
|
src_configure() {
|
|
|
|
econf $(use_enable static-libs static)
|
|
|
|
}
|
|
|
|
|
2012-02-06 16:39:49 +04:00
|
|
|
src_install () {
|
2012-02-08 10:16:21 +04:00
|
|
|
default
|
|
|
|
use doc && dodoc *.pdf && dohtml -r html/*
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|