blob: a674a74d731a1b723983d16d40ad12de6cd28516 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/libnova/libnova-0.12.1.ebuild,v 1.2 2008/11/02 07:11:28 vapier Exp $
inherit eutils autotools flag-o-matic
DESCRIPTION="Celestial Mechanics and Astronomical Calculation Library"
HOMEPAGE="http://libnova.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="doc"
DEPEND="doc? ( app-doc/doxygen )"
RDEPEND=""
src_unpack() {
unpack ${A}
cd "${S}"
# patch to use user's cflags and make doxygen working
epatch "${FILESDIR}"/${P}-configure.patch
eautoconf
}
src_compile() {
# 0.12.1 does not pass test with > -02
replace-flags -O? -O1
econf || die "econf failed"
emake || die "emake failed"
if use doc; then
cd doc
emake doc || die "emake in doc failed"
fi
}
src_test() {
emake check || die "emake check failed"
"${S}"/lntest/lntest || die "lntest failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog NEWS README || die
if use doc; then
dohtml doc/html/* || die "dohtml failed"
make clean
rm -f examples/Makefile*
insinto /usr/share/doc/${PF}
doins -r examples
fi
}
|