summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2012-04-18 23:25:59 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2012-04-18 23:25:59 +0000
commita62362a6b48a56d90d90efe892a87269c2f3cfb8 (patch)
tree1dccb1bbda541630c59f61590c6a6087f16fa992 /sci-libs/arprec
parentVersion bump. Big autotools patch seems to have been applied upstream (diff)
downloadgentoo-2-a62362a6b48a56d90d90efe892a87269c2f3cfb8.tar.gz
gentoo-2-a62362a6b48a56d90d90efe892a87269c2f3cfb8.tar.bz2
gentoo-2-a62362a6b48a56d90d90efe892a87269c2f3cfb8.zip
Version bump. Big autotools patch seems to have been applied upstream
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/arprec')
-rw-r--r--sci-libs/arprec/ChangeLog7
-rw-r--r--sci-libs/arprec/arprec-2.2.13.ebuild52
2 files changed, 58 insertions, 1 deletions
diff --git a/sci-libs/arprec/ChangeLog b/sci-libs/arprec/ChangeLog
index b0949900229b..c7ed47851d48 100644
--- a/sci-libs/arprec/ChangeLog
+++ b/sci-libs/arprec/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-libs/arprec
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/arprec/ChangeLog,v 1.9 2012/03/13 16:43:11 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/arprec/ChangeLog,v 1.10 2012/04/18 23:25:59 bicatali Exp $
+
+*arprec-2.2.13 (18 Apr 2012)
+
+ 18 Apr 2012; Sébastien Fabbro <bicatali@gentoo.org> +arprec-2.2.13.ebuild:
+ Version bump. Big autotools patch seems to have been applied upstream
*arprec-2.2.10 (13 Mar 2012)
diff --git a/sci-libs/arprec/arprec-2.2.13.ebuild b/sci-libs/arprec/arprec-2.2.13.ebuild
new file mode 100644
index 000000000000..74b6c4561c28
--- /dev/null
+++ b/sci-libs/arprec/arprec-2.2.13.ebuild
@@ -0,0 +1,52 @@
+# 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.13.ebuild,v 1.1 2012/04/18 23:25:59 bicatali Exp $
+
+EAPI=4
+
+inherit eutils fortran-2
+
+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_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
+}