Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/arb/
Date: Thu, 27 Feb 2020 22:27:07
Message-Id: 1582842368.6158424e69552c78c374535d555e2d13fd5000ea.mjo@gentoo
1 commit: 6158424e69552c78c374535d555e2d13fd5000ea
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 27 21:54:52 2020 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 27 22:26:08 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6158424e
7
8 sci-mathematics/arb: new version 2.17.0.
9
10 Standard EAPI=7 update, and I noticed that the license has changed to
11 LGPL-2.1+ upstream (the "plus" is mentioned in the file headers).
12 The libdir fix was taken from François Bissey's sage-on-gentoo overlay.
13
14 Package-Manager: Portage-2.3.84, Repoman-2.3.20
15 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
16
17 sci-mathematics/arb/Manifest | 1 +
18 sci-mathematics/arb/arb-2.17.0.ebuild | 74 +++++++++++++++++++++++++++++++++++
19 2 files changed, 75 insertions(+)
20
21 diff --git a/sci-mathematics/arb/Manifest b/sci-mathematics/arb/Manifest
22 index a8ef8a032e9..ea9228bc4d6 100644
23 --- a/sci-mathematics/arb/Manifest
24 +++ b/sci-mathematics/arb/Manifest
25 @@ -1,2 +1,3 @@
26 DIST arb-2.11.1.tar.gz 1248835 BLAKE2B 8ba11f3a92103231c4710c0158ce0811b2a01872e1ec7b7a4a4320d27ab86688aa8733df6dd2464aa55c0a506a8a595e4c370848c78b5c3a650e647f0c6d7411 SHA512 7a014da5208b55f20c7a3cd3eb51070b09ae107b04cbbd6329925780c2ab4d7c38e1fb3619f21456fa806939818370fcae921f59eb013661b6bdd3d0971e3353
27 DIST arb-2.16.0.tar.gz 1526059 BLAKE2B 14f4a9b23fa6fc46659b742cc95b4970cee74cf52bda8bc696831b0a5c1f946f41f1c2bba180ad1199c55d741366b3376aeed0efbf6ee087b26f6de788519739 SHA512 171c965aeb03cd2830df8a53990403c6da480a94d44385dadfbb2d02697f7c03e8b9a217094b0ad93f796d889a1564f4b9ae9db35ef9de90f61bb2e3220911be
28 +DIST arb-2.17.0.tar.gz 1589083 BLAKE2B 68d5b04dca24129ceaec4e05124e35b474157cf1efbb6505121a03058e014cd4eb67b99497dbbafcf62e9e31f9d11c92f749f6e047e6b1513b6c0cc5ef8f22da SHA512 201e0cebbd1c4857d194e5531c76c6e45a478cf6965b836818919adf0fc04f0fe25e16ecd49c62a438876b67f009b872c4f3c774fe35620be0b22c5e08bdb824
29
30 diff --git a/sci-mathematics/arb/arb-2.17.0.ebuild b/sci-mathematics/arb/arb-2.17.0.ebuild
31 new file mode 100644
32 index 00000000000..5b8842f7b89
33 --- /dev/null
34 +++ b/sci-mathematics/arb/arb-2.17.0.ebuild
35 @@ -0,0 +1,74 @@
36 +# Copyright 1999-2020 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +inherit toolchain-funcs
42 +
43 +DESCRIPTION="C library for arbitrary-precision interval arithmetic"
44 +HOMEPAGE="http://fredrikj.net/arb/"
45 +SRC_URI="https://github.com/fredrik-johansson/arb/archive/${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="LGPL-2.1+"
48 +SLOT="0/2"
49 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
50 +IUSE="static-libs"
51 +
52 +RDEPEND="
53 + dev-libs/gmp:0=
54 + dev-libs/mpfr:0=
55 + >=sci-mathematics/flint-2.5.0:="
56 +
57 +DEPEND="${RDEPEND}"
58 +
59 +src_prepare(){
60 + default
61 +
62 + # The autodetection finds "lib" first, which may e.g. contain 32-bit
63 + # libs during a 64-bit build.
64 + #
65 + # Copied from flint which has the same issues because arb is just
66 + # copying flint. Of course flint doesn't have a line for itself
67 + # and, it had to be added.
68 + sed -e "s:{GMP_DIR}/lib\":{GMP_DIR}/$(get_libdir)\":g" \
69 + -e "s:{MPFR_DIR}/lib\":{MPFR_DIR}/$(get_libdir)\":g" \
70 + -e "s:{FLINT_DIR}/lib\":{FLINT_DIR}/$(get_libdir)\":g" \
71 + -i configure
72 +}
73 +
74 +src_configure() {
75 + # Not an autoconf configure script. It appears to have been cloned
76 + # from the flint configure script and that not all the options
77 + # offered are valid.
78 + tc-export CC AR CXX
79 + ./configure \
80 + --prefix="${EPREFIX}/usr" \
81 + --with-flint="${EPREFIX}/usr" \
82 + --with-gmp="${EPREFIX}/usr" \
83 + --with-mpfr="${EPREFIX}/usr" \
84 + $(use_enable static-libs static) \
85 + CFLAGS="${CPPFLAGS} ${CFLAGS}" || die
86 +}
87 +
88 +src_compile() {
89 + emake verbose
90 +}
91 +
92 +src_test() {
93 + # We have to set the library path otherwise a previous install of
94 + # libarb may be loaded. This is in part a consequence of setting
95 + # the soname/installname I think.
96 + if [[ ${CHOST} == *-darwin* ]] ; then
97 + DYLD_LIBRARY_PATH="${S}" emake AT= QUIET_CC= QUIET_CXX= QUIET_AR= check
98 + else
99 + LD_LIBRARY_PATH="${S}" emake AT= QUIET_CC= QUIET_CXX= QUIET_AR= check
100 + fi
101 +}
102 +
103 +src_install() {
104 + emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install
105 + if ! use static-libs; then
106 + find "${ED}" -name '*.la' -delete || die
107 + fi
108 + dodoc README.md
109 +}