summaryrefslogtreecommitdiff
blob: 4680012c223072eab1ba23222b15a025a0b3ad38 (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-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/libnova/libnova-0.7.0.ebuild,v 1.1 2004/12/28 18:57:57 ribosome Exp $

DESCRIPTION="Celestial Mechanics and Astronomical Calculation Library"
HOMEPAGE="http://libnova.sourceforge.net/"
SRC_URI="mirror://sourceforge/libnova/${P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""

DEPEND="app-doc/doxygen"
RDEPEND=""

src_compile() {
	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man || die "./configure failed"
	make || die
	cd doc && make doc || die
}

src_install() {
	dodir /usr/share/aclocal
	make \
		prefix=${D}/usr \
		mandir=${D}/usr/share/man \
		infodir=${D}/usr/share/info \
		LIBNOVA_MACRO_DIR=${D}/usr/share/aclocal \
		install || die
	dohtml doc/html/*
	doman doc/man/*/*
	dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README
}