diff options
Diffstat (limited to 'sci-libs/libnova/libnova-0.14.0.ebuild')
-rw-r--r-- | sci-libs/libnova/libnova-0.14.0.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/sci-libs/libnova/libnova-0.14.0.ebuild b/sci-libs/libnova/libnova-0.14.0.ebuild new file mode 100644 index 000000000000..fd018b1b02d2 --- /dev/null +++ b/sci-libs/libnova/libnova-0.14.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils + +DESCRIPTION="Celestial Mechanics and Astronomical Calculation Library" +HOMEPAGE="http://libnova.sourceforge.net/" +SRC_URI="http://dev.gentoo.org/~bicatali/${P}.tar.gz" +# bad tar ball on sf, rebuild it from svn +#SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86" +IUSE="doc examples static-libs" + +DEPEND="doc? ( app-doc/doxygen )" +RDEPEND="" + +src_configure() { + econf $(use_enable static-libs static) +} + +src_compile() { + emake + use doc && emake doc +} + +src_install() { + default + use doc && dohtml doc/html/* + if use examples; then + make clean + rm -f examples/Makefile* + insinto /usr/share/doc/${PF} + doins -r examples + fi +} |