summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2012-03-06 18:00:03 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2012-03-06 18:00:03 +0000
commitd03634375f26910c9c2aa6290daf92c6c12ff8cd (patch)
tree138d14d40a11870366ca49fa8f3486222e2ba39d /sci-libs/arprec/arprec-2.2.9.ebuild
parentDrop Old (diff)
downloadgentoo-2-d03634375f26910c9c2aa6290daf92c6c12ff8cd.tar.gz
gentoo-2-d03634375f26910c9c2aa6290daf92c6c12ff8cd.tar.bz2
gentoo-2-d03634375f26910c9c2aa6290daf92c6c12ff8cd.zip
Version bump
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/arprec/arprec-2.2.9.ebuild')
-rw-r--r--sci-libs/arprec/arprec-2.2.9.ebuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/sci-libs/arprec/arprec-2.2.9.ebuild b/sci-libs/arprec/arprec-2.2.9.ebuild
new file mode 100644
index 000000000000..70abd52a2f56
--- /dev/null
+++ b/sci-libs/arprec/arprec-2.2.9.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/arprec/arprec-2.2.9.ebuild,v 1.1 2012/03/06 18:00:03 bicatali Exp $
+
+EAPI=4
+
+inherit eutils fortran-2 autotools
+
+DESCRIPTION="Arbitrary precision float arithmetics and functions"
+HOMEPAGE="http://crd.lbl.gov/~dhbailey/mpdist/"
+SRC_URI="http://crd.lbl.gov/~dhbailey/mpdist/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc fortran qd static-libs"
+
+DEPEND="fortran? ( virtual/fortran )
+ qd? ( sci-libs/qd[fortran=] )"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ use fortran && fortran-2_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-autotools.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \
+ --enable-shared \
+ $(use_enable static-libs static) \
+ $(use_enable fortran enable_fortran) \
+ $(use_enable qd enable_qd)
+}
+
+src_compile() {
+ emake
+ use fortran && emake toolkit
+}
+
+src_install() {
+ default
+ if use fortran; then
+ cd toolkit
+ ./mathinit || die "mathinit failed"
+ exeinto /usr/libexec/${PN}
+ doexe mathtool
+ insinto /usr/libexec/${PN}
+ doins *.dat
+ newdoc README README.mathtool
+ fi
+ use doc || rm "${ED}"/usr/share/doc/${PF}/*.pdf
+}