diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2011-04-14 23:08:35 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2011-04-14 23:08:35 +0400 |
commit | 3a5f7265e91470c5c3ce96000872732abd09cf88 (patch) | |
tree | 8ef3dcf0e00d413c6829aa27699e3fe5970dcb97 /sci-libs/cuba/cuba-2.1-r1.ebuild | |
parent | 1f19eb46e509c1a2e21cc8ac5f974b706289a131 (diff) | |
download | ebuilds-3a5f7265e91470c5c3ce96000872732abd09cf88.tar.gz |
New upstream release
Diffstat (limited to 'sci-libs/cuba/cuba-2.1-r1.ebuild')
-rw-r--r-- | sci-libs/cuba/cuba-2.1-r1.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/sci-libs/cuba/cuba-2.1-r1.ebuild b/sci-libs/cuba/cuba-2.1-r1.ebuild new file mode 100644 index 0000000..7450a29 --- /dev/null +++ b/sci-libs/cuba/cuba-2.1-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils + +EAPI="2" + +DESCRIPTION="A library for multidimensional numerical integration" +HOMEPAGE="http://www.feynarts.de/cuba/" +LICENSE="LGPL" +SRC_URI="http://www.feynarts.de/cuba/Cuba-${PV}.tar.gz" +S=${WORKDIR}/Cuba-${PV} + +KEYWORDS="~amd64 ~x86" +IUSE="+static-libs +shared-libs doc examples" +SLOT="0" + + +src_prepare() { + if use shared-libs; then + epatch "${FILESDIR}/shared.patch" + elif use !static-libs; then + eerror "Must USE shared-libs or static-libs" + die + fi +} + +src_configure() { + econf +} + +src_compile() { + if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then + emake lib || die "emake failed" + else + die "No Makefile" + fi +} + +#src_test() { +# emake check +#} + + +src_install() { + use static-libs && dolib.a libcuba.a + use shared-libs && dolib.so libcuba.so* + use doc && dodoc cuba.pdf ChangeLog + if use examples; then + insinto /usr/share/doc/${PF} + doins -r demo + fi + insinto /usr/include + doins cuba.h +} + |