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