From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1148665-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 64158138350 for <garchives@archives.gentoo.org>; Thu, 27 Feb 2020 22:27:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 98F8CE0872; Thu, 27 Feb 2020 22:27:06 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6F3BDE0872 for <gentoo-commits@lists.gentoo.org>; Thu, 27 Feb 2020 22:27:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4674D34F39E for <gentoo-commits@lists.gentoo.org>; Thu, 27 Feb 2020 22:27:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CAC7B101 for <gentoo-commits@lists.gentoo.org>; Thu, 27 Feb 2020 22:27:02 +0000 (UTC) From: "Michael Orlitzky" <mjo@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" <mjo@gentoo.org> Message-ID: <1582842368.6158424e69552c78c374535d555e2d13fd5000ea.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/arb/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-mathematics/arb/Manifest sci-mathematics/arb/arb-2.17.0.ebuild X-VCS-Directories: sci-mathematics/arb/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: 6158424e69552c78c374535d555e2d13fd5000ea X-VCS-Branch: master Date: Thu, 27 Feb 2020 22:27:02 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 63aa6a49-d847-460f-ad0c-db4c31a8a010 X-Archives-Hash: 4e8fb8920802f33fcfb5938014c817da 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 +}