summaryrefslogtreecommitdiff
path: root/sci-libs/arprec
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-11-18 09:38:27 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-11-18 09:38:27 +0000
commit536c3711867ec947c1738f2c4b96f22e4863322d (patch)
tree697733f5cb713908dcf378e13fd15a798a906a91 /sci-libs/arprec
parentf65628136faa35d0c4d3b5e7332275c7b35fcd96 (diff)
gentoo resync : 18.11.2018
Diffstat (limited to 'sci-libs/arprec')
-rw-r--r--sci-libs/arprec/Manifest3
-rw-r--r--sci-libs/arprec/arprec-2.2.19.ebuild84
-rw-r--r--sci-libs/arprec/files/arprec-2.2.19-gold.patch11
3 files changed, 98 insertions, 0 deletions
diff --git a/sci-libs/arprec/Manifest b/sci-libs/arprec/Manifest
index df89994618ba..42188dc66f0e 100644
--- a/sci-libs/arprec/Manifest
+++ b/sci-libs/arprec/Manifest
@@ -1,5 +1,8 @@
AUX arprec-2.2.18-fix-c++14.patch 368 BLAKE2B 021af8127ec3d139ec3e5ab00b35296a9e0321b3f6a99aff5d853ed3cf5666a47cbacd11817ff4aa0ae835b229d7cdd10d342c06edc250a75789b589b0847501 SHA512 9763bd97dd8b678195c3967296deaf4b2d9c3853c5f35b4b9c31a02bbd1ba810809585c46a9bdf42f5b56dc6abf4e326f5d3ab0665cd3aff0f363a77598ec029
AUX arprec-2.2.18-gold.patch 545 BLAKE2B 26ec85a03bb693bdc484fa14d360e90b5571d172d9d696f71363a7f7805d957c14597ddb221f827c2752b89680b6c4382935dd84874a3887f2df11ba5e31ca5c SHA512 09368abacb24ea28e7ff32f1638526e17a0928e3f37f3d216b6918666ac86df8cd447400e2aa3bae6e81c6037ac43ce4b2af9c3dae79b322fa934b36f727a032
+AUX arprec-2.2.19-gold.patch 477 BLAKE2B 128d84824143a6af222f92462efd58d22ae014e359555b59380bd0060faea249a879244baca3cf7c2d81510070647c49414c4589efce5ce40328a6f3871e387f SHA512 f8a6408916b26a395832a6bd55f43de7153ceab5a343df1f974a2dd9e6ae3eec1b2533db36a11061e74f15f471dcff52a3247681e8872b15dfb8115f9b406cf6
DIST arprec-2.2.18.tar.gz 1751743 BLAKE2B de9a9a37bbe03357ad17d9d10d8bb42f73b9c9464643a35d4d1e209d049c205f967266dcae1af8972fc8c029f03053b298a4c85fdc48fb3f66d152aca8623a25 SHA512 372eb0a0c3aceac0d222679058f47c4d1037b5a51524b752b87f1b61c1b25101c34d4e56d9da45b4075ea7040dd59a597e0add4f34be902955dcf209423a6579
+DIST arprec-2.2.19.tar.gz 1962133 BLAKE2B a2fccc1908e791fd4759e61ff52b180fcaccbfbfa831ee1beca9b22a1a745d17d21040974ffe02ea21397a2339c819a30cd93a247738564a2b433f7cef14c9e4 SHA512 97cf090398aa169e31711077efd26dc6da1f62291ab37b241b133634838bdd44743f85b86b861a3be18d2696ae9132afb6cd1871502bedb9cc17dfb63fde2632
EBUILD arprec-2.2.18.ebuild 1533 BLAKE2B 05c9d0238707535220400f7caeb9352ca45a730979121ce9d79a3deb09d8c087406d8eced7b1f8ed435ee6804227f1fca5feebd604284eca325bf0ef219c4167 SHA512 0b4d377fda48265a8671123a752044ec70ea58f28bb471744c0e5f9138711269d1284c7feb678388e62a2e771d876a0f0e28a4307700bab9184959e60af0c118
+EBUILD arprec-2.2.19.ebuild 1570 BLAKE2B e27261e2a2eb1dbe338e8f1a2ea4e6c49fcb0b1112f3272ec7298c7eb31809aeb6d499eed22b8616207585c1c71dee70cbcd6204c191edb50004ee3b0714c5e2 SHA512 9fafaaab47fc4605fc0412862570e36fe2083858d0d327b25071c79abaf54baea3a2ec7ecca6c6dbfcbb38b550a819a5f6b2007510d32893bbb885716b093e42
MISC metadata.xml 474 BLAKE2B d74aad2e60fe6ce5a44dca931506ef83275032371c05310b287973b10055f7635fe196d08656dedc369350c5c9a2bf7f8c0f0c732f47b38c462c3aa1352a6c76 SHA512 cde307a1a91601c08153dc01535f8567cb37e7c9a0c194d4379ef428f73b75438416281a5ab478c995e7fcf108df25e7d2247430eb0960cbc6630acc2e444808
diff --git a/sci-libs/arprec/arprec-2.2.19.ebuild b/sci-libs/arprec/arprec-2.2.19.ebuild
new file mode 100644
index 000000000000..4fe88b289cba
--- /dev/null
+++ b/sci-libs/arprec/arprec-2.2.19.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2018 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}"/${P}-gold.patch
+)
+
+S="${WORKDIR}/${PN}"
+
+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
+
+ exeinto /usr/libexec/${PN}/.libs
+ doexe .libs/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.19-gold.patch b/sci-libs/arprec/files/arprec-2.2.19-gold.patch
new file mode 100644
index 000000000000..809ca15588fb
--- /dev/null
+++ b/sci-libs/arprec/files/arprec-2.2.19-gold.patch
@@ -0,0 +1,11 @@
+diff -r -U3 arprec.orig/fortran/Makefile.am arprec/fortran/Makefile.am
+--- arprec.orig/fortran/Makefile.am 2015-12-12 07:20:15.000000000 +0600
++++ arprec/fortran/Makefile.am 2018-11-09 22:10:39.192991101 +0700
+@@ -4,6 +4,7 @@
+
+ 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