From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 970DD158018 for ; Thu, 30 Sep 2021 11:57:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8C6C2E088B; Thu, 30 Sep 2021 11:57:40 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3C89CE0887 for ; Thu, 30 Sep 2021 11:57:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 04D1A342CDB for ; Thu, 30 Sep 2021 11:57:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 20CEB89 for ; Thu, 30 Sep 2021 11:57:37 +0000 (UTC) From: "Michael Orlitzky" 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" Message-ID: <1633002639.5d6befa9534be892fb80ff06818f4d867d89590c.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-mathematics/flint/Manifest sci-mathematics/flint/flint-2.8.0.ebuild X-VCS-Directories: sci-mathematics/flint/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: 5d6befa9534be892fb80ff06818f4d867d89590c X-VCS-Branch: master Date: Thu, 30 Sep 2021 11:57:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8eb74945-b61e-4ed9-bda0-d912a2bad859 X-Archives-Hash: d7b2ea6b2df7c2765cbebf67aadb5553 commit: 5d6befa9534be892fb80ff06818f4d867d89590c Author: Michael Orlitzky gentoo org> AuthorDate: Wed Sep 29 19:42:12 2021 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Thu Sep 30 11:50:39 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d6befa9 sci-mathematics/flint: new upstream version 2.8.0. Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Michael Orlitzky gentoo.org> sci-mathematics/flint/Manifest | 1 + sci-mathematics/flint/flint-2.8.0.ebuild | 68 ++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest index bf41b8b7db5..04321071c43 100644 --- a/sci-mathematics/flint/Manifest +++ b/sci-mathematics/flint/Manifest @@ -1 +1,2 @@ DIST flint-2.7.1.tar.gz 4945081 BLAKE2B 9dcc4b0062be08778cd8ada1794a73237ea091a7bff4a4673aa59eac9b414ed90e0291b9547bdf72aa30e48da11f98ff983267ea2e3dd1d75fcec00b24c86ca9 SHA512 abea97228e91089d82a9a44714e719064bef261c45f5f5b24700955bb841cc98a8182e04e6054fcbcaa3bd92f2f95a82bd5d168ec2171af6a58d4f71eb0a479a +DIST flint-2.8.0.tar.gz 5209922 BLAKE2B 801c6130b3e8119998c3288d243358f567a843597c425cf5edcd37f6dd0f71a5d796e5dc3c8f3ffb8407f8e6dc01a3f4c62daa758e62eee2bbbf6ed07f1721e0 SHA512 91125f7c3aaccb40768091c36c11b5fb5d1e5010e7cb71145d18d348606baa1e72aeae27baa826c00c4a190c39ef19af9488357d0d5634a7c5774e9aeeaef3fc diff --git a/sci-mathematics/flint/flint-2.8.0.ebuild b/sci-mathematics/flint/flint-2.8.0.ebuild new file mode 100644 index 00000000000..c0196d38a19 --- /dev/null +++ b/sci-mathematics/flint/flint-2.8.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# ninja doesn't like "-lcblas" so using make. +CMAKE_MAKEFILE_GENERATOR="emake" +PYTHON_COMPAT=( python3_{7..9} ) +inherit cmake python-any-r1 + +DESCRIPTION="Fast Library for Number Theory" +HOMEPAGE="http://www.flintlib.org/" +SRC_URI="http://www.flintlib.org/${P}.tar.gz" + +LICENSE="LGPL-2.1+" + +# Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15 +SLOT="0/16" + +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" +IUSE="doc ntl test" + +RESTRICT="!test? ( test )" + +BDEPEND="doc? ( + dev-python/sphinx + app-text/texlive-core + dev-texlive/texlive-latex + dev-texlive/texlive-latexextra + dev-tex/latexmk + ) + ${PYTHON_DEPS}" +DEPEND="dev-libs/gmp:= + dev-libs/mpfr:= + ntl? ( dev-libs/ntl:= ) + virtual/cblas" +RDEPEND="${DEPEND}" + +src_configure() { + local mycmakeargs=( + -DWITH_NTL="$(usex ntl)" + -DBUILD_TESTING="$(usex test)" + -DBUILD_DOCS="$(usex doc)" + -DCBLAS_INCLUDE_DIRS="${EPREFIX}/usr/include" + -DCBLAS_LIBRARIES="-lcblas" + ) + + cmake_src_configure + + if use doc ; then + HTML_DOCS="${BUILD_DIR}/html/*" + DOCS=( + "${S}"/README + "${S}"/AUTHORS + "${S}"/NEWS + "${BUILD_DIR}"/latex/Flint.pdf + ) + fi +} + +src_compile() { + cmake_src_compile + + if use doc ; then + cmake_build html + cmake_build pdf + fi +}