summaryrefslogtreecommitdiff
path: root/sci-mathematics/arb
diff options
context:
space:
mode:
Diffstat (limited to 'sci-mathematics/arb')
-rw-r--r--sci-mathematics/arb/Manifest4
-rw-r--r--sci-mathematics/arb/arb-2.17.0.ebuild74
-rw-r--r--sci-mathematics/arb/metadata.xml11
3 files changed, 88 insertions, 1 deletions
diff --git a/sci-mathematics/arb/Manifest b/sci-mathematics/arb/Manifest
index 45f16a53e003..be7036c253bc 100644
--- a/sci-mathematics/arb/Manifest
+++ b/sci-mathematics/arb/Manifest
@@ -1,6 +1,8 @@
AUX arb-2.11.1-pie-ftbs.patch 585 BLAKE2B cf7fd0230dd00a52452b1ad80f284028eab6c35c8aeb160e3f74b924a7c6e422a0740a3954eb2937b5b13085e47a25abc6c8f9dede88bd5f90cac5570c6b2710 SHA512 f147d61a6c9dfac57ded28a7265db9e6be76ebb8c9c787960d4dafc36ef703cebc42ba4a3ca8ef03ae3b81589d6a6a555a7ff381ddc9fd391466156677e0b4ff
DIST arb-2.11.1.tar.gz 1248835 BLAKE2B 8ba11f3a92103231c4710c0158ce0811b2a01872e1ec7b7a4a4320d27ab86688aa8733df6dd2464aa55c0a506a8a595e4c370848c78b5c3a650e647f0c6d7411 SHA512 7a014da5208b55f20c7a3cd3eb51070b09ae107b04cbbd6329925780c2ab4d7c38e1fb3619f21456fa806939818370fcae921f59eb013661b6bdd3d0971e3353
DIST arb-2.16.0.tar.gz 1526059 BLAKE2B 14f4a9b23fa6fc46659b742cc95b4970cee74cf52bda8bc696831b0a5c1f946f41f1c2bba180ad1199c55d741366b3376aeed0efbf6ee087b26f6de788519739 SHA512 171c965aeb03cd2830df8a53990403c6da480a94d44385dadfbb2d02697f7c03e8b9a217094b0ad93f796d889a1564f4b9ae9db35ef9de90f61bb2e3220911be
+DIST arb-2.17.0.tar.gz 1589083 BLAKE2B 68d5b04dca24129ceaec4e05124e35b474157cf1efbb6505121a03058e014cd4eb67b99497dbbafcf62e9e31f9d11c92f749f6e047e6b1513b6c0cc5ef8f22da SHA512 201e0cebbd1c4857d194e5531c76c6e45a478cf6965b836818919adf0fc04f0fe25e16ecd49c62a438876b67f009b872c4f3c774fe35620be0b22c5e08bdb824
EBUILD arb-2.11.1-r1.ebuild 1588 BLAKE2B 67ceb6433a725ff35ae1e18888be5eedec7f688ee2f7d4c58c170dd8a0da8607aa23741b31745e2ea0305a1160aa32e737a32ef669e16bdbf292c9aa26a5fa4b SHA512 8a61ceafa57adce89ef012f87d24795528a960fbb2bb6ad8d630a2d89df95f42c3e1cc1bde094bf8e57625204c6fadebbc61f4212f7c90f3131653e13edd4306
EBUILD arb-2.16.0.ebuild 1541 BLAKE2B 304351aa3d08e117e26bdc304771495ed9fe918dd2d5a6da39f67745e73498c19490f681031abf1a62bd477c4f1e6f8abe582257c796d6801717f1c60b9e5c72 SHA512 6c8c1cf422d7916d731f189b7a826c3b79243f153b0dc01a050266e03e09f9e6707526fc03c01647951f4ce6b0ad94378592fca775d3d107b5b960ff7bd7b8c2
-MISC metadata.xml 756 BLAKE2B da8035991c582b71f7bb25866fd86ad79c40640f5685436935bfd6efb26af9e11a31fb28ea83df5ef7f0951ecb26155021d289e0b9926aba03c8c7d9e417677f SHA512 843e473b1cb261c97f817d2c003f632c973a67ba1d8cfe188a40f41cc89fe6167917e2b669768420a7c7c88b19f5b4b68ba4529ab73e373c6696786ecfad11b6
+EBUILD arb-2.17.0.ebuild 2037 BLAKE2B befcf948caa3df8f541f2800d1e28162911203e5f62e104ffae6a0109d981bab9ed7370c743fabfda7dc0ee2ecf998781dc6ac7eaf69b01c73c9049b69c9cfd6 SHA512 83f7c827d5d05a8b402ccfd0183650585428561cc61ca0858107a56e7252b3df3b031e89a049df2ea10abbbd63ee62ad0ef7d5c72bb4a57b17d3f64c21532948
+MISC metadata.xml 1077 BLAKE2B d21ef7ffc1b41b7b52d7d8caf246b0109be10d06b7bb4d660c9ae0f750d748cac37cd289df3282cbca9f2658e8fb5f6674c170ea6bfd511edb71a3f0da88bc86 SHA512 cc6a2aed7acd718af2aa1612b1b454a2e699da97a33cb9ba9ca747e3782d9439bb0ff96c25e9023776777a5ee20d2c208c7f98dc73c787a16bfca58e9a10e1ee
diff --git a/sci-mathematics/arb/arb-2.17.0.ebuild b/sci-mathematics/arb/arb-2.17.0.ebuild
new file mode 100644
index 000000000000..5b8842f7b898
--- /dev/null
+++ b/sci-mathematics/arb/arb-2.17.0.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="C library for arbitrary-precision interval arithmetic"
+HOMEPAGE="http://fredrikj.net/arb/"
+SRC_URI="https://github.com/fredrik-johansson/arb/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1+"
+SLOT="0/2"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="static-libs"
+
+RDEPEND="
+ dev-libs/gmp:0=
+ dev-libs/mpfr:0=
+ >=sci-mathematics/flint-2.5.0:="
+
+DEPEND="${RDEPEND}"
+
+src_prepare(){
+ default
+
+ # The autodetection finds "lib" first, which may e.g. contain 32-bit
+ # libs during a 64-bit build.
+ #
+ # Copied from flint which has the same issues because arb is just
+ # copying flint. Of course flint doesn't have a line for itself
+ # and, it had to be added.
+ sed -e "s:{GMP_DIR}/lib\":{GMP_DIR}/$(get_libdir)\":g" \
+ -e "s:{MPFR_DIR}/lib\":{MPFR_DIR}/$(get_libdir)\":g" \
+ -e "s:{FLINT_DIR}/lib\":{FLINT_DIR}/$(get_libdir)\":g" \
+ -i configure
+}
+
+src_configure() {
+ # Not an autoconf configure script. It appears to have been cloned
+ # from the flint configure script and that not all the options
+ # offered are valid.
+ tc-export CC AR CXX
+ ./configure \
+ --prefix="${EPREFIX}/usr" \
+ --with-flint="${EPREFIX}/usr" \
+ --with-gmp="${EPREFIX}/usr" \
+ --with-mpfr="${EPREFIX}/usr" \
+ $(use_enable static-libs static) \
+ CFLAGS="${CPPFLAGS} ${CFLAGS}" || die
+}
+
+src_compile() {
+ emake verbose
+}
+
+src_test() {
+ # We have to set the library path otherwise a previous install of
+ # libarb may be loaded. This is in part a consequence of setting
+ # the soname/installname I think.
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ DYLD_LIBRARY_PATH="${S}" emake AT= QUIET_CC= QUIET_CXX= QUIET_AR= check
+ else
+ LD_LIBRARY_PATH="${S}" emake AT= QUIET_CC= QUIET_CXX= QUIET_AR= check
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install
+ if ! use static-libs; then
+ find "${ED}" -name '*.la' -delete || die
+ fi
+ dodoc README.md
+}
diff --git a/sci-mathematics/arb/metadata.xml b/sci-mathematics/arb/metadata.xml
index 5830a1d45f91..e6424327a6bc 100644
--- a/sci-mathematics/arb/metadata.xml
+++ b/sci-mathematics/arb/metadata.xml
@@ -5,6 +5,17 @@
<email>sci-mathematics@gentoo.org</email>
<name>Gentoo Mathematics Project</name>
</maintainer>
+ <maintainer type="person">
+ <email>mjo@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person">
+ <email>frp.bissey@gmail.com</email>
+ <name>François Bissey</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
<longdescription lang="en">
Arb is a C library for arbitrary-precision interval arithmetic,
using a midpoint-radius representation (“ball arithmetic”). It