1 |
commit: 5d6befa9534be892fb80ff06818f4d867d89590c |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 29 19:42:12 2021 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 30 11:50:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d6befa9 |
7 |
|
8 |
sci-mathematics/flint: new upstream version 2.8.0. |
9 |
|
10 |
Package-Manager: Portage-3.0.20, 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.0.ebuild | 68 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 69 insertions(+) |
16 |
|
17 |
diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest |
18 |
index bf41b8b7db5..04321071c43 100644 |
19 |
--- a/sci-mathematics/flint/Manifest |
20 |
+++ b/sci-mathematics/flint/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST flint-2.7.1.tar.gz 4945081 BLAKE2B 9dcc4b0062be08778cd8ada1794a73237ea091a7bff4a4673aa59eac9b414ed90e0291b9547bdf72aa30e48da11f98ff983267ea2e3dd1d75fcec00b24c86ca9 SHA512 abea97228e91089d82a9a44714e719064bef261c45f5f5b24700955bb841cc98a8182e04e6054fcbcaa3bd92f2f95a82bd5d168ec2171af6a58d4f71eb0a479a |
23 |
+DIST flint-2.8.0.tar.gz 5209922 BLAKE2B 801c6130b3e8119998c3288d243358f567a843597c425cf5edcd37f6dd0f71a5d796e5dc3c8f3ffb8407f8e6dc01a3f4c62daa758e62eee2bbbf6ed07f1721e0 SHA512 91125f7c3aaccb40768091c36c11b5fb5d1e5010e7cb71145d18d348606baa1e72aeae27baa826c00c4a190c39ef19af9488357d0d5634a7c5774e9aeeaef3fc |
24 |
|
25 |
diff --git a/sci-mathematics/flint/flint-2.8.0.ebuild b/sci-mathematics/flint/flint-2.8.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..c0196d38a19 |
28 |
--- /dev/null |
29 |
+++ b/sci-mathematics/flint/flint-2.8.0.ebuild |
30 |
@@ -0,0 +1,68 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+# ninja doesn't like "-lcblas" so using make. |
37 |
+CMAKE_MAKEFILE_GENERATOR="emake" |
38 |
+PYTHON_COMPAT=( python3_{7..9} ) |
39 |
+inherit cmake python-any-r1 |
40 |
+ |
41 |
+DESCRIPTION="Fast Library for Number Theory" |
42 |
+HOMEPAGE="http://www.flintlib.org/" |
43 |
+SRC_URI="http://www.flintlib.org/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="LGPL-2.1+" |
46 |
+ |
47 |
+# Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15 |
48 |
+SLOT="0/16" |
49 |
+ |
50 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" |
51 |
+IUSE="doc ntl test" |
52 |
+ |
53 |
+RESTRICT="!test? ( test )" |
54 |
+ |
55 |
+BDEPEND="doc? ( |
56 |
+ dev-python/sphinx |
57 |
+ app-text/texlive-core |
58 |
+ dev-texlive/texlive-latex |
59 |
+ dev-texlive/texlive-latexextra |
60 |
+ dev-tex/latexmk |
61 |
+ ) |
62 |
+ ${PYTHON_DEPS}" |
63 |
+DEPEND="dev-libs/gmp:= |
64 |
+ dev-libs/mpfr:= |
65 |
+ ntl? ( dev-libs/ntl:= ) |
66 |
+ virtual/cblas" |
67 |
+RDEPEND="${DEPEND}" |
68 |
+ |
69 |
+src_configure() { |
70 |
+ local mycmakeargs=( |
71 |
+ -DWITH_NTL="$(usex ntl)" |
72 |
+ -DBUILD_TESTING="$(usex test)" |
73 |
+ -DBUILD_DOCS="$(usex doc)" |
74 |
+ -DCBLAS_INCLUDE_DIRS="${EPREFIX}/usr/include" |
75 |
+ -DCBLAS_LIBRARIES="-lcblas" |
76 |
+ ) |
77 |
+ |
78 |
+ cmake_src_configure |
79 |
+ |
80 |
+ if use doc ; then |
81 |
+ HTML_DOCS="${BUILD_DIR}/html/*" |
82 |
+ DOCS=( |
83 |
+ "${S}"/README |
84 |
+ "${S}"/AUTHORS |
85 |
+ "${S}"/NEWS |
86 |
+ "${BUILD_DIR}"/latex/Flint.pdf |
87 |
+ ) |
88 |
+ fi |
89 |
+} |
90 |
+ |
91 |
+src_compile() { |
92 |
+ cmake_src_compile |
93 |
+ |
94 |
+ if use doc ; then |
95 |
+ cmake_build html |
96 |
+ cmake_build pdf |
97 |
+ fi |
98 |
+} |