summaryrefslogtreecommitdiff
path: root/sci-libs/arprec
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-libs/arprec
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-libs/arprec')
-rw-r--r--sci-libs/arprec/Manifest7
-rw-r--r--sci-libs/arprec/arprec-2.2.18.ebuild80
-rw-r--r--sci-libs/arprec/files/arprec-2.2.18-fix-c++14.patch13
-rw-r--r--sci-libs/arprec/files/arprec-2.2.18-gold.patch15
-rw-r--r--sci-libs/arprec/metadata.xml18
5 files changed, 133 insertions, 0 deletions
diff --git a/sci-libs/arprec/Manifest b/sci-libs/arprec/Manifest
new file mode 100644
index 000000000000..3bc900ab3aad
--- /dev/null
+++ b/sci-libs/arprec/Manifest
@@ -0,0 +1,7 @@
+AUX arprec-2.2.18-fix-c++14.patch 368 SHA256 351181564f61c4f8ac363b753007f829918cfde4b85ec44abe5073865223015c SHA512 9763bd97dd8b678195c3967296deaf4b2d9c3853c5f35b4b9c31a02bbd1ba810809585c46a9bdf42f5b56dc6abf4e326f5d3ab0665cd3aff0f363a77598ec029 WHIRLPOOL bf58d43883c7b597aa5629ffc6111ef4d1ed09bcfe2e2fd13cfcdf225b2acb183f3d69eef9965fbb1d0e848a71070d6d90707fe3615268923514d4743c9caf1a
+AUX arprec-2.2.18-gold.patch 545 SHA256 0cfbca8d88c20821878c8ca143e8ebc3c8e1a76655668b34be8396086b56bd77 SHA512 09368abacb24ea28e7ff32f1638526e17a0928e3f37f3d216b6918666ac86df8cd447400e2aa3bae6e81c6037ac43ce4b2af9c3dae79b322fa934b36f727a032 WHIRLPOOL a572f8bf8530d8fb8b52cdf2ba4c7b253dd545fca9197adc1df9c4a9f77551433361ba185d45f78dc9539c869ae61e5e340e3a54732d2cac3da8bbd3a2419c54
+DIST arprec-2.2.18.tar.gz 1751743 SHA256 12bcbaabbbd475bdcd0f4983bc280bd3888972ed32bcc8fe5f09fb94b7a85ed5 SHA512 372eb0a0c3aceac0d222679058f47c4d1037b5a51524b752b87f1b61c1b25101c34d4e56d9da45b4075ea7040dd59a597e0add4f34be902955dcf209423a6579 WHIRLPOOL 41322123ca1e444dfea5d678fb435dede56ba9704fdec04a0ae3d98766cad431b350652babaa431d579fe7e9e611b8d2e4c60d70c82d38e8699d33c103ef2ac1
+EBUILD arprec-2.2.18.ebuild 1533 SHA256 f2cfce2aca572c7b8cfbf3c3df55c1f6d240d6c26ee45212f029a63af471e1c7 SHA512 0b4d377fda48265a8671123a752044ec70ea58f28bb471744c0e5f9138711269d1284c7feb678388e62a2e771d876a0f0e28a4307700bab9184959e60af0c118 WHIRLPOOL 90e8292e47aa7094c572ed076da271708ef6c63f2b3da25ae0590328e8b10eca5b6348b577ee181c47cc10641e98c5690c0246b10336ec17ba448536a2e364da
+MISC ChangeLog 2888 SHA256 28faee6183234ef3e1b432820a9116ce2a4f93334fef8f4d2972c8621f7efd9b SHA512 c480fe528c326c486425effb709e98e6b40b856b06844260428fd28d39ca843f032369c321ef4f449b17208abb0f075e7b7a64c4b5f56ab323d858e0ba695a1d WHIRLPOOL 1dad6904f443747f172ba0e6214c1410b51c62d6ad076b14a1851883c401c6f6883469d5a3a255ef7e965a70e65a3cbfc80d1f488057299e18a7bd65e28ff56c
+MISC ChangeLog-2015 3418 SHA256 cb228ef1a825030eff57ee656d4564ace5624d799957856b379d6bbe090c39c9 SHA512 822de0e218949f78df7254eee639842bd91ba3431f8dacc585459871e14ef8f39f79d1858f7f13ae20236b1ba23ed1900fb2010e9107beb7cc6980aa59264923 WHIRLPOOL 55d2045f2a085bdec0d8e4436f549bcc292ea457c04f781c8c2e013d0d6a30f0b818c0805599c42ed1391c5e4adf97439be5b869bc0be6382770878e2847fc39
+MISC metadata.xml 587 SHA256 c26beaee09b12e3316e4ea0b2e609437462b71ceeb360eb2e943f0dcafd039fa SHA512 710dad7df63809653fef4e68e109304fcc1e6ac97d164efdfb5e294634b996ead15fa4a02f0f7ed8031b9df2fc8b0630be591c4ec14b3845cde9cf61efa53432 WHIRLPOOL 042475284bd3b8b5149758dd4b8e8a8964dd3150b0138ea065df427b6b698a52aca014df949f325f78a48556532b01e13f266bd0224a095a12435fb9f9edb4a4
diff --git a/sci-libs/arprec/arprec-2.2.18.ebuild b/sci-libs/arprec/arprec-2.2.18.ebuild
new file mode 100644
index 000000000000..b7ba9c00b8df
--- /dev/null
+++ b/sci-libs/arprec/arprec-2.2.18.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+FORTRAN_NEEDED=fortran
+FORTRAN_STANDARD=90
+
+inherit autotools fortran-2
+
+DESCRIPTION="Arbitrary precision float arithmetics and functions"
+HOMEPAGE="http://crd-legacy.lbl.gov/~dhbailey/mpdist/"
+SRC_URI="http://crd.lbl.gov/~dhbailey/mpdist/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="cpu_flags_x86_fma3 cpu_flags_x86_fma4 doc fortran qd static-libs"
+
+DEPEND="qd? ( sci-libs/qd[fortran=] )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.2.18-fix-c++14.patch
+ "${FILESDIR}"/${P}-gold.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-shared \
+ $(use_enable static-libs static) \
+ $(use_enable cpu_flags_x86_fma$(usex cpu_flags_x86_fma3 3 4) fma) \
+ $(use_enable fortran) \
+ $(use_enable qd)
+}
+
+src_compile() {
+ default
+
+ if use fortran; then
+ emake toolkit
+ cd toolkit || die
+ ./mathinit || die "mathinit failed"
+ fi
+}
+
+src_install() {
+ default
+
+ if use fortran; then
+ cd toolkit || die
+
+ exeinto /usr/libexec/${PN}
+ doexe mathtool
+
+ insinto /usr/libexec/${PN}
+ doins *.dat
+
+ cat > mathtool.exe <<- _EOF_ || die
+ #!/usr/bin/env sh
+ cd "${EPREFIX}/usr/libexec/${PN}" && exec ./mathtool
+ _EOF_
+
+ newbin mathtool.exe mathtool
+ newdoc README README.mathtool
+ fi
+
+ if ! use doc; then
+ rm "${ED%/}"/usr/share/doc/${PF}/*.pdf || die
+ fi
+
+ if ! use static-libs; then
+ find "${D}" -name '*.la' -delete || die
+ fi
+}
diff --git a/sci-libs/arprec/files/arprec-2.2.18-fix-c++14.patch b/sci-libs/arprec/files/arprec-2.2.18-fix-c++14.patch
new file mode 100644
index 000000000000..680e921d6807
--- /dev/null
+++ b/sci-libs/arprec/files/arprec-2.2.18-fix-c++14.patch
@@ -0,0 +1,13 @@
+Fix compiling with C++14, due to changed operator T* -> operator bool semantics.
+See also: https://bugs.gentoo.org/show_bug.cgi?id=593872
+
+--- a/src/write.cpp
++++ b/src/write.cpp
+@@ -196,6 +196,6 @@
+
+ string str = to_string(precision, width, expn_width,
+ fmt, showpos, uppercase, fill);
+- return (s << str) != 0;
++ return static_cast<bool>(s << str);
+ }
+
diff --git a/sci-libs/arprec/files/arprec-2.2.18-gold.patch b/sci-libs/arprec/files/arprec-2.2.18-gold.patch
new file mode 100644
index 000000000000..293b495f10a7
--- /dev/null
+++ b/sci-libs/arprec/files/arprec-2.2.18-gold.patch
@@ -0,0 +1,15 @@
+ fortran/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/fortran/Makefile.am b/fortran/Makefile.am
+index 8eb4d19..91a125c 100644
+--- a/fortran/Makefile.am
++++ b/fortran/Makefile.am
+@@ -4,6 +4,7 @@ LDADD = libarprec_f_main.la libarprecmod.la $(top_builddir)/src/libarprec.la $(F
+
+ lib_LTLIBRARIES = libarprecmod.la libarprec_f_main.la
+ libarprecmod_la_SOURCES = f_mp.cpp mp_mod.f mp_modm.f mp_modx.f
++libarprecmod_la_LIBADD = $(top_builddir)/src/libarprec.la $(FCLIBS)
+ libarprec_f_main_la_SOURCES = main.cpp
+
+ if UPCASE_MODULE
diff --git a/sci-libs/arprec/metadata.xml b/sci-libs/arprec/metadata.xml
new file mode 100644
index 000000000000..55cd058d02de
--- /dev/null
+++ b/sci-libs/arprec/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>grozin@gentoo.org</email>
+ <name>Andrey Grozin</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription>
+ Arbitrary precision library for float arithmetics and mathematical functions.
+</longdescription>
+ <use>
+ <flag name="qd">Use <pkg>sci-libs/qd</pkg> for quad-double datatype</flag>
+ </use>
+</pkgmetadata>