blob: 8ec7af07377f70f318dade40c7e7fcc658e4fbc8 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/ccfits/ccfits-2.2.ebuild,v 1.1 2010/01/20 02:32:36 bicatali Exp $
EAPI=2
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"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
RDEPEND=">=sci-libs/cfitsio-3.080"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MYPN}"
src_prepare() {
# avoid building cookbook by default and no rpath
epatch "${FILESDIR}"/${P}-makefile.patch
AT_M4DIR=config/m4 eautoreconf
}
src_test() {
emake check || die
}
src_install () {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc CHANGES
if use doc; then
insinto /usr/share/doc/${PF}
doins *.pdf || die
doins -r html || die
fi
}
|