From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/arb/
Date: Thu, 27 Feb 2020 22:27:02 +0000 (UTC) [thread overview]
Message-ID: <1582842368.6158424e69552c78c374535d555e2d13fd5000ea.mjo@gentoo> (raw)
commit: 6158424e69552c78c374535d555e2d13fd5000ea
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 27 21:54:52 2020 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Thu Feb 27 22:26:08 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6158424e
sci-mathematics/arb: new version 2.17.0.
Standard EAPI=7 update, and I noticed that the license has changed to
LGPL-2.1+ upstream (the "plus" is mentioned in the file headers).
The libdir fix was taken from François Bissey's sage-on-gentoo overlay.
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
sci-mathematics/arb/Manifest | 1 +
sci-mathematics/arb/arb-2.17.0.ebuild | 74 +++++++++++++++++++++++++++++++++++
2 files changed, 75 insertions(+)
diff --git a/sci-mathematics/arb/Manifest b/sci-mathematics/arb/Manifest
index a8ef8a032e9..ea9228bc4d6 100644
--- a/sci-mathematics/arb/Manifest
+++ b/sci-mathematics/arb/Manifest
@@ -1,2 +1,3 @@
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
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 00000000000..5b8842f7b89
--- /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
+}
next reply other threads:[~2020-02-27 22:27 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-27 22:27 Michael Orlitzky [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-11-25 5:28 [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/arb/ Sam James
2023-04-16 12:11 WANG Xuerui
2022-11-18 17:29 Arthur Zamarin
2022-07-01 21:31 Michael Orlitzky
2022-02-02 11:30 Andrey Grozin
2022-01-18 21:50 Jakov Smolić
2022-01-18 21:50 Jakov Smolić
2021-12-06 21:49 Michael Orlitzky
2021-12-06 11:31 Agostino Sarubbo
2021-12-06 7:08 Agostino Sarubbo
2021-11-22 3:07 Yixun Lan
2021-05-04 19:10 Sam James
2021-04-09 1:05 Michael Orlitzky
2021-04-05 14:07 Andreas Sturmlechner
2021-01-27 3:06 Sam James
2021-01-06 15:19 Fabian Groffen
2020-10-27 19:58 Sam James
2020-10-27 5:11 Sam James
2020-08-12 17:33 Michael Orlitzky
2020-03-09 12:48 Agostino Sarubbo
2020-03-09 12:39 Agostino Sarubbo
2020-02-27 22:27 Michael Orlitzky
2019-06-02 5:25 Andrey Grozin
2017-07-25 19:45 Sebastien Fabbro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1582842368.6158424e69552c78c374535d555e2d13fd5000ea.mjo@gentoo \
--to=mjo@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox