1 |
commit: 444b2094dad9c3f4b5eb82592997534eb2e472ed |
2 |
Author: Alex Fan <alexfanqi <AT> yahoo <DOT> com> |
3 |
AuthorDate: Tue Nov 9 01:07:47 2021 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 9 03:37:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=444b2094 |
7 |
|
8 |
dev-libs/ntl: add 11.4.4-r1 |
9 |
|
10 |
bump to EAPI 8 |
11 |
update bundled config.guess and config.sub automatically. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/821061 |
14 |
Closes: https://github.com/gentoo/gentoo/pull/22822 |
15 |
Signed-off-by: Alex Fan <alexfanqi <AT> yahoo.com> |
16 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
17 |
|
18 |
dev-libs/ntl/ntl-11.4.4-r1.ebuild | 71 +++++++++++++++++++++++++++++++++++++++ |
19 |
1 file changed, 71 insertions(+) |
20 |
|
21 |
diff --git a/dev-libs/ntl/ntl-11.4.4-r1.ebuild b/dev-libs/ntl/ntl-11.4.4-r1.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..1b184a8a48c |
24 |
--- /dev/null |
25 |
+++ b/dev-libs/ntl/ntl-11.4.4-r1.ebuild |
26 |
@@ -0,0 +1,71 @@ |
27 |
+# Copyright 1999-2021 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=8 |
31 |
+ |
32 |
+inherit toolchain-funcs gnuconfig |
33 |
+ |
34 |
+DESCRIPTION="High-performance and portable C++ number theory library" |
35 |
+HOMEPAGE="https://www.shoup.net/ntl/ https://github.com/libntl/ntl" |
36 |
+SRC_URI="https://www.shoup.net/ntl/${P}.tar.gz" |
37 |
+ |
38 |
+LICENSE="LGPL-2.1+" |
39 |
+SLOT="0/43" |
40 |
+KEYWORDS="~amd64 ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
41 |
+IUSE="bindist doc static-libs threads cpu_flags_x86_avx2" |
42 |
+ |
43 |
+BDEPEND="dev-lang/perl" |
44 |
+DEPEND="dev-libs/gmp:0= |
45 |
+ dev-libs/gf2x |
46 |
+ threads? ( >=dev-libs/gf2x-1.2 )" |
47 |
+RDEPEND="${DEPEND}" |
48 |
+ |
49 |
+S="${WORKDIR}/${P}/src" |
50 |
+ |
51 |
+REQUIRED_USE="bindist? ( !cpu_flags_x86_avx2 )" |
52 |
+ |
53 |
+DOCS=( "${WORKDIR}/${P}"/README ) |
54 |
+ |
55 |
+src_unpack() { |
56 |
+ default |
57 |
+ gnuconfig_update "${S}/libtool-origin/" |
58 |
+} |
59 |
+ |
60 |
+src_configure() { |
61 |
+ # Currently the build system can build a static library or both |
62 |
+ # static and shared libraries, but not only shared libraries. The |
63 |
+ # name NTL_GMP_LIP is *not* a typo. |
64 |
+ perl DoConfig \ |
65 |
+ PREFIX="${EPREFIX}"/usr \ |
66 |
+ LIBDIR="${EPREFIX}"/usr/$(get_libdir) \ |
67 |
+ CXXFLAGS="${CXXFLAGS}" \ |
68 |
+ CPPFLAGS="${CPPFLAGS}" \ |
69 |
+ LDFLAGS="${LDFLAGS}" \ |
70 |
+ CXX="$(tc-getCXX)" \ |
71 |
+ AR="$(tc-getAR)" \ |
72 |
+ RANLIB="$(tc-getRANLIB)" \ |
73 |
+ SHARED=on \ |
74 |
+ NTL_GMP_LIP=on \ |
75 |
+ NTL_GF2X_LIB=on \ |
76 |
+ NTL_THREADS=$(usex threads on off) \ |
77 |
+ NTL_ENABLE_AVX_FFT=$(usex cpu_flags_x86_avx2 on off) \ |
78 |
+ NATIVE=$(usex bindist off on) \ |
79 |
+ || die "DoConfig failed" |
80 |
+ |
81 |
+ if use doc; then |
82 |
+ DOCS+=( "${WORKDIR}/${P}"/doc/*.txt ) |
83 |
+ HTML_DOCS=( "${WORKDIR}/${P}"/doc/*.html "${WORKDIR}/${P}"/doc/*.gif ) |
84 |
+ fi |
85 |
+} |
86 |
+ |
87 |
+src_install() { |
88 |
+ default |
89 |
+ |
90 |
+ if ! use static-libs; then |
91 |
+ # bug #775884 |
92 |
+ find "${ED}" -name '*.la' -delete || die |
93 |
+ rm "${ED}/usr/$(get_libdir)"/libntl.a || die |
94 |
+ fi |
95 |
+ |
96 |
+ rm -r "${ED}"/usr/share/doc/NTL || die |
97 |
+} |