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 7F4AC13835A for ; Sat, 23 Jan 2021 15:33:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 98B32E0BDF; Sat, 23 Jan 2021 15:33:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 7F275E0BDF for ; Sat, 23 Jan 2021 15:33:30 +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 2D7BD340F06 for ; Sat, 23 Jan 2021 15:33:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9374D48B for ; Sat, 23 Jan 2021 15:33:27 +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: <1611415852.309ad0dd85afb5347a059b761a0256d638346053.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/flint/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-mathematics/flint/flint-2.7.1.ebuild X-VCS-Directories: sci-mathematics/flint/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: 309ad0dd85afb5347a059b761a0256d638346053 X-VCS-Branch: master Date: Sat, 23 Jan 2021 15:33:27 +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: 166b669b-4322-4538-ae44-84629d989475 X-Archives-Hash: a8df4123577029fea142249a5b0039af commit: 309ad0dd85afb5347a059b761a0256d638346053 Author: François Bissey gmail com> AuthorDate: Thu Jan 21 20:10:40 2021 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Sat Jan 23 15:30:52 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=309ad0dd sci-mathematics/flint: upstream bump and fix bugs Package-Manager: Portage-3.0.13, Repoman-3.0.2 Bug: https://bugs.gentoo.org/761736 Bug: https://bugs.gentoo.org/760678 Closes: https://github.com/gentoo/gentoo/pull/19152 Signed-off-by: François René Pierre Bissey gmail.com> Signed-off-by: Michael Orlitzky gentoo.org> sci-mathematics/flint/flint-2.7.1.ebuild | 69 ++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/sci-mathematics/flint/flint-2.7.1.ebuild b/sci-mathematics/flint/flint-2.7.1.ebuild new file mode 100644 index 00000000000..1afcfef9754 --- /dev/null +++ b/sci-mathematics/flint/flint-2.7.1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..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/15" + +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}" + +# ninja doesn't like "-lcblas" so using make. +CMAKE_MAKEFILE_GENERATOR="emake" + +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 +}