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/flint/
Date: Fri, 01 Jul 2022 21:31:43
Message-Id: 1656710915.88db6359f6661e89204104cdf698cb2ff551faeb.mjo@gentoo
1 commit: 88db6359f6661e89204104cdf698cb2ff551faeb
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 1 11:39:32 2022 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 1 21:28:35 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88db6359
7
8 sci-mathematics/flint: new upstream v2.9.0.
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
12
13 sci-mathematics/flint/Manifest | 1 +
14 sci-mathematics/flint/flint-2.9.0.ebuild | 80 ++++++++++++++++++++++++++++++++
15 2 files changed, 81 insertions(+)
16
17 diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
18 index ecd1105730d7..7e848b2cdf98 100644
19 --- a/sci-mathematics/flint/Manifest
20 +++ b/sci-mathematics/flint/Manifest
21 @@ -1,3 +1,4 @@
22 DIST flint-2.7.1.tar.gz 4945081 BLAKE2B 9dcc4b0062be08778cd8ada1794a73237ea091a7bff4a4673aa59eac9b414ed90e0291b9547bdf72aa30e48da11f98ff983267ea2e3dd1d75fcec00b24c86ca9 SHA512 abea97228e91089d82a9a44714e719064bef261c45f5f5b24700955bb841cc98a8182e04e6054fcbcaa3bd92f2f95a82bd5d168ec2171af6a58d4f71eb0a479a
23 DIST flint-2.8.4.tar.gz 5212964 BLAKE2B ddd3b9dca76ddac2070d3e12dfc4c5ea1a3b505c7bf28e41489798798d65ed2a5db12e01059816d42e5d1209166d17ee6035dcf0a94d991f78df59c6ad06b271 SHA512 1f66574a5f2f27e1f3cd0a334712c0e64f4a4b8dd57179a71f9adba4c4faff23ba8da3993f51c4f44f52a588d0d1678b1e1a272e8fe3367f2abc88e9d86ad804
24 DIST flint-2.8.5.tar.gz 5212805 BLAKE2B 8922a2925b68d93fd35aa5b78eb0b8cbc6aa609498b8846ce4ff036c2fece3932a0eabb0f04a5c152147d8df3eccd6570832f55dafe4f7a35de135246454a83d SHA512 849fb61612f3becfde0d8afc019a9312a7ea07d3000a6bc558eb82babecd737e3af894d3084e4a57d52f7db0403d7298cbfa277b08e2b1f5497897637ed4825f
25 +DIST flint-2.9.0.tar.gz 5283894 BLAKE2B a790437ee142d8acb5cec1e6c7d21812f8d83f5d30d1e8c07e799713e96791d87792f25fbd4ce2d0d68f6a8ee2f0cde2b8d9f8db8ab26922a48485e0e90394aa SHA512 4494cba6a4e215e817d7c74ef6834c4e05a832488f4808bbd7bea8b02a4a35d47ef3c63a4f213230c712b32842f5588c503fc1cf23e5e2ddc4a4a5a1627a02ba
26
27 diff --git a/sci-mathematics/flint/flint-2.9.0.ebuild b/sci-mathematics/flint/flint-2.9.0.ebuild
28 new file mode 100644
29 index 000000000000..1b1aa8915415
30 --- /dev/null
31 +++ b/sci-mathematics/flint/flint-2.9.0.ebuild
32 @@ -0,0 +1,80 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +# ninja doesn't like "-lcblas" so using make.
39 +CMAKE_MAKEFILE_GENERATOR="emake"
40 +PYTHON_COMPAT=( python3_{8..11} )
41 +inherit cmake python-any-r1
42 +
43 +DESCRIPTION="Fast Library for Number Theory"
44 +HOMEPAGE="http://www.flintlib.org/"
45 +
46 +# flintlib.org tarballs have been broken in the past, Bill Hart suggests
47 +# we get them from Github (which he has control over).
48 +SRC_URI="https://github.com/wbhart/flint2/archive/refs/tags/v${PV}.tar.gz
49 + -> ${P}.tar.gz"
50 +
51 +LICENSE="LGPL-2.1+"
52 +
53 +# Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
54 +SLOT="0/17"
55 +
56 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~riscv ~x86"
57 +IUSE="doc ntl test"
58 +
59 +RESTRICT="!test? ( test )"
60 +
61 +BDEPEND="doc? (
62 + dev-python/sphinx
63 + app-text/texlive-core
64 + dev-texlive/texlive-latex
65 + dev-texlive/texlive-latexextra
66 + dev-tex/latexmk
67 + )
68 + ${PYTHON_DEPS}"
69 +DEPEND="dev-libs/gmp:=
70 + dev-libs/mpfr:=
71 + ntl? ( dev-libs/ntl:= )
72 + virtual/cblas"
73 +RDEPEND="${DEPEND}"
74 +
75 +S="${WORKDIR}/flint2-${PV}"
76 +
77 +src_prepare() {
78 + # https://github.com/wbhart/flint2/issues/1140
79 + rm test/t-sdiv_qrnnd.c || die
80 + cmake_src_prepare
81 +}
82 +
83 +src_configure() {
84 + local mycmakeargs=(
85 + -DWITH_NTL="$(usex ntl)"
86 + -DBUILD_TESTING="$(usex test)"
87 + -DBUILD_DOCS="$(usex doc)"
88 + -DCBLAS_INCLUDE_DIRS="${EPREFIX}/usr/include"
89 + -DCBLAS_LIBRARIES="-lcblas"
90 + )
91 +
92 + cmake_src_configure
93 +
94 + if use doc ; then
95 + HTML_DOCS="${BUILD_DIR}/html/*"
96 + DOCS=(
97 + "${S}"/README
98 + "${S}"/AUTHORS
99 + "${S}"/NEWS
100 + "${BUILD_DIR}"/latex/Flint.pdf
101 + )
102 + fi
103 +}
104 +
105 +src_compile() {
106 + cmake_src_compile
107 +
108 + if use doc ; then
109 + cmake_build html
110 + cmake_build pdf
111 + fi
112 +}