summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-libs/arprec/ChangeLog10
-rw-r--r--sci-libs/arprec/arprec-2.2.2.ebuild44
-rw-r--r--sci-libs/arprec/metadata.xml13
3 files changed, 67 insertions, 0 deletions
diff --git a/sci-libs/arprec/ChangeLog b/sci-libs/arprec/ChangeLog
new file mode 100644
index 000000000000..e2f61595ca4c
--- /dev/null
+++ b/sci-libs/arprec/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-libs/arprec
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/arprec/ChangeLog,v 1.1 2009/04/13 21:48:34 grozin Exp $
+
+*arprec-2.2.2 (14 Apr 2009)
+
+ 14 Apr 2009; Andrey Grozin <grozin@gentoo.org> +metadata.xml,
+ +arprec-2.2.2.ebuild:
+ Initial import
+
diff --git a/sci-libs/arprec/arprec-2.2.2.ebuild b/sci-libs/arprec/arprec-2.2.2.ebuild
new file mode 100644
index 000000000000..21a0b45cb7f2
--- /dev/null
+++ b/sci-libs/arprec/arprec-2.2.2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/arprec/arprec-2.2.2.ebuild,v 1.1 2009/04/13 21:48:34 grozin Exp $
+EAPI=2
+DESCRIPTION="Arbitrary precision float arithmetics and functions"
+IUSE="fortran qd"
+HOMEPAGE="http://crd.lbl.gov/~dhbailey/mpdist/"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86"
+
+SRC_URI="http://crd.lbl.gov/~dhbailey/mpdist/${P}.tar.gz"
+
+DEPEND="qd? ( sci-libs/qd )"
+
+src_configure() {
+ econf $(use_enable fortran enable_fortran) \
+ $(use_enable qd enable_qd)
+}
+
+src_compile() {
+ emake || die "emake failed"
+ if use fortran; then
+ emake toolkit || die "emake toolkit failed"
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc README AUTHORS NEWS TODO || die "dodoc failed"
+ if use fortran; then
+ cd toolkit
+ ./mathinit || die "mathinit failed"
+ exeinto /usr/libexec/${PN}
+ doexe mathtool || die "mathtool install failed"
+ insinto /usr/libexec/${PN}
+ doins *.dat || die "mathtool data install failed"
+ docinto toolkit
+ dodoc README || die "mathtool doc install failed"
+ fi
+ cd "${D}"/usr/share/doc || die "cd failed"
+ mv ${PN}/${PN}.pdf ${PF}/ || die "mv failed"
+ rm -rf ${PN}/ || die "rm failed"
+}
diff --git a/sci-libs/arprec/metadata.xml b/sci-libs/arprec/metadata.xml
new file mode 100644
index 000000000000..e02fac69b7d1
--- /dev/null
+++ b/sci-libs/arprec/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <maintainer>
+ <email>grozin@gentoo.org</email>
+ <name>Andrey Grozin</name>
+ </maintainer>
+ <longdescription>Arbitrary precision float arithmetics and functions</longdescription>
+ <use>
+ <flag name='qd'>Use <pkg>sci-libs/qd</pkg></flag>
+ </use>
+</pkgmetadata>