Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/ntl/, dev-libs/ntl/files/
Date: Fri, 24 Apr 2020 21:43:23
Message-Id: 1587764493.16bf0e7f6968b4a6eff5a3139a79d26871a37037.mjo@gentoo
1 commit: 16bf0e7f6968b4a6eff5a3139a79d26871a37037
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 24 21:24:57 2020 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 24 21:41:33 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16bf0e7f
7
8 dev-libs/ntl: remove old "unused" versions.
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
12
13 dev-libs/ntl/Manifest | 3 -
14 .../ntl/files/ntl-9.2.0-sanitize-makefile.patch | 160 ---------------------
15 dev-libs/ntl/files/ntl-9.2.0-singular.patch | 13 --
16 .../ntl/files/ntl-9.6.4-sanitize-makefile.patch | 160 ---------------------
17 dev-libs/ntl/ntl-10.5.0.ebuild | 62 --------
18 dev-libs/ntl/ntl-9.3.0.ebuild | 82 -----------
19 dev-libs/ntl/ntl-9.6.4.ebuild | 85 -----------
20 7 files changed, 565 deletions(-)
21
22 diff --git a/dev-libs/ntl/Manifest b/dev-libs/ntl/Manifest
23 index 3ae669d70fb..c1c7dc4d859 100644
24 --- a/dev-libs/ntl/Manifest
25 +++ b/dev-libs/ntl/Manifest
26 @@ -1,4 +1 @@
27 -DIST ntl-10.5.0.tar.gz 1278729 BLAKE2B a061ac4e0989ea671c51a22904851e5b7919f3a7e55624048c576d6f48d2ba3d6f88baa6c656c9ef43ad2145a03df9d891372f8462a1c5b6b53bc1d05301d9f6 SHA512 b299dfc29005079470972c2a9ca02acd0ebdbc31ff8923df02f3627dbc66daa0f527226972cef032e1e488c4272554634a96456e94653fdf8b01356160319aa0
28 DIST ntl-11.4.3.tar.gz 2274421 BLAKE2B d2c2fe695b17f47b24ad714d51dd723cbba453cc0fd67b8f46392103ef2f40ba54246411c793f0f60d1d50aae27cb8e75f6e8526fa9592e04c2cd0bdecef760c SHA512 26515ed73c8e74d0ff8bc161101f1b815f2c23e4bd633cc426f6da2741c6d8f43ad4f8df2cb7ad915475933599e0ee01cc360e75569f6f5d49cb5e5eae37b3f5
29 -DIST ntl-9.3.0.tar.gz 888710 BLAKE2B 153a6f1bd11f27ef2944e4df5e941c4ddbb1783449e2a72aa1a272fcf169997b01646cfac63ac3af5a85a7f9a4db99a664503615d323ba54784849e764316b0c SHA512 dfb4ac7a66aaddcf5d0d0c9fcaff253b0196a9d9f727788127dd18e131528fe60dedf8bfb864503225fc5796987aec9c7019b74e0fc12cd12c20aa33a9cf9d7d
30 -DIST ntl-9.6.4.tar.gz 915256 BLAKE2B 78d8415bb1fe858881f997383ca9adcc8af2499251fc1b2e8e2211a8c7b8edc249ef28f3705e302d438c19cc07bd31d8b36681cb6b5a846d4f0b35ff09d310ff SHA512 ec8a4deb6996b31140edff978e07844ea8e30327491a6777d3982bffec01599b0cb5cc5dca297c8610ecb7ac9a4eae3407a59736fed840a2415a52a159370868
31
32 diff --git a/dev-libs/ntl/files/ntl-9.2.0-sanitize-makefile.patch b/dev-libs/ntl/files/ntl-9.2.0-sanitize-makefile.patch
33 deleted file mode 100644
34 index 2e8b77ae4b9..00000000000
35 --- a/dev-libs/ntl/files/ntl-9.2.0-sanitize-makefile.patch
36 +++ /dev/null
37 @@ -1,160 +0,0 @@
38 -diff -Naur ntl-9.2.0.orig/src/DoConfig ntl-9.2.0/src/DoConfig
39 ---- ntl-9.2.0.orig/src/DoConfig 2015-07-09 21:45:26.959930693 +1200
40 -+++ ntl-9.2.0/src/DoConfig 2015-07-09 21:46:52.250122780 +1200
41 -@@ -38,14 +38,16 @@
42 -
43 - 'LDFLAGS' => '',
44 - 'LDLIBS' => '-lm',
45 -+'PICFLAG' => '-fPIC',
46 - 'CPPFLAGS' => '',
47 -
48 --'DEF_PREFIX' => '/usr/local',
49 -+'DEF_PREFIX' => '/usr',
50 -
51 - 'PREFIX' => '$(DEF_PREFIX)',
52 - 'LIBDIR' => '$(PREFIX)/lib',
53 - 'INCLUDEDIR' => '$(PREFIX)/include',
54 - 'DOCDIR' => '$(PREFIX)/share/doc',
55 -+'SHMAKE' => 'non-gld',
56 -
57 - 'GMP_PREFIX' => '$(DEF_PREFIX)',
58 - 'GMP_INCDIR' => '$(GMP_PREFIX)/include',
59 -diff -Naur ntl-9.2.0.orig/src/mfile ntl-9.2.0/src/mfile
60 ---- ntl-9.2.0.orig/src/mfile 2015-07-09 21:45:26.959930693 +1200
61 -+++ ntl-9.2.0/src/mfile 2015-07-09 21:57:40.631583489 +1200
62 -@@ -109,6 +109,16 @@
63 - WIZARD=@{WIZARD}
64 - # Set to off if you want to bypass the wizard; otherwise, set to on.
65 -
66 -+###############################################################
67 -+#
68 -+# New addition for shared library building. With gcc you need to
69 -+# choose the Position Indepent Code flag. You have a choice of
70 -+# -fpic better code but in rare case not available (ppc)
71 -+# -fPIC slightly slower code but guaranted to work anywhere.
72 -+#
73 -+###############################################################
74 -+
75 -+PICFLAG=@{PICFLAG}
76 -
77 - #################################################################
78 - #
79 -@@ -141,6 +151,8 @@
80 -
81 - OBJ=$(O19)
82 -
83 -+SHOBJ=$(subst .o,.lo,$(OBJ))
84 -+
85 - # library source files
86 -
87 -
88 -@@ -314,6 +326,8 @@
89 -
90 - LINK = $(CXX) $(NTL_INCLUDE) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS)
91 -
92 -+.SUFFIXES: .lo
93 -+
94 -
95 -
96 - # 'make all' does a complete make, including all setup.
97 -@@ -322,11 +336,11 @@
98 - # again.
99 -
100 - all:
101 -- make setup1
102 -- make setup2
103 -- make setup3
104 -- make setup4
105 -- make ntl.a
106 -+ ${MAKE} setup1
107 -+ ${MAKE} setup2
108 -+ ${MAKE} setup3
109 -+ ${MAKE} setup4
110 -+ ${MAKE} ntl.a
111 - touch all
112 -
113 -
114 -@@ -373,22 +387,37 @@
115 - lip.o: lip.c g_lip_impl.h c_lip_impl.h
116 - $(LCOMP) $(COMPILE) $(GMP_OPT_INCDIR) lip.c
117 -
118 -+lip.lo: lip.c g_lip_impl.h c_lip_impl.h
119 -+ $(LCOMP) $(COMPILE) $(PICFLAG) $(GMP_OPT_INCDIR) lip.c -o lip.lo
120 -+
121 - ctools.o: ctools.c
122 - $(LCOMP) $(COMPILE) ctools.c
123 -
124 -+ctools.lo: ctools.c
125 -+ $(LCOMP) $(COMPILE) $(PICFLAG) ctools.c -o ctools.lo
126 -+
127 -
128 - GetTime.o: GetTime.c
129 - $(LCOMP) $(COMPILE) GetTime.c
130 -
131 -+GetTime.lo: GetTime.c
132 -+ $(LCOMP) $(COMPILE) $(PICFLAG) GetTime.c -o GetTime.lo
133 -+
134 - GetPID.o: GetPID.c
135 - $(LCOMP) $(COMPILE) GetPID.c
136 -
137 -+GetPID.lo: GetPID.c
138 -+ $(LCOMP) $(COMPILE) $(PICFLAG) GetPID.c -o GetPID.lo
139 -+
140 - CheckPCLMUL: CheckPCLMUL.c
141 - $(LINK) -o CheckPCLMUL CheckPCLMUL.c $(LDLIBS)
142 -
143 - .c.o:
144 - $(LCOMP) $(COMPILE) $(GF2X_OPT_INCDIR) $<
145 -
146 -+.c.lo:
147 -+ $(LCOMP) $(COMPILE) $(PICFLAG) $(GF2X_OPT_INCDIR) -o $@ $<
148 -+
149 - .c:
150 - @{LSTAT} $(LINK) -o $@ $< ntl.a $(GMP_OPT_LIBDIR) $(GMP_OPT_LIB) $(GF2X_OPT_LIBDIR) $(GF2X_OPT_LIB) $(LDLIBS) #LSTAT
151 - @{LSHAR} $(LIBTOOL) --tag=CXX --mode=link $(LINK) -o $@ $< libntl.la #LSHAR
152 -@@ -402,7 +431,7 @@
153 -
154 - check:
155 - sh RemoveProg $(PROGS)
156 -- make QuickTest
157 -+ ${MAKE} QuickTest
158 - ./QuickTest
159 - sh RemoveProg QuickTest
160 - sh TestScript
161 -@@ -459,21 +488,19 @@
162 - #
163 - #################################################################
164 -
165 --clobber:
166 -+clobber: clean
167 - rm -f ntl.a mach_desc.h ../include/NTL/mach_desc.h GetTime.c GetPID.c
168 - cp ../include/NTL/have_LL_no.h ../include/NTL/have_LL.h
169 - cp ../include/NTL/have_builtin_clzl_no.h ../include/NTL/have_builtin_clzl.h
170 - rm -f ../include/NTL/gmp_aux.h
171 -- sh RemoveProg $(PROGS) MakeDesc TestGetTime TestGetPID gen_gmp_aux
172 -- rm -f *.o
173 -- rm -rf small
174 -+ sh RemoveProg $(PROGS)
175 - rm -f cfileout mfileout
176 - rm -rf .libs *.lo libntl.la
177 - rm -f all
178 -
179 - clean:
180 - sh RemoveProg MakeDesc TestGetTime TestGetPID gen_gmp_aux
181 -- rm -f *.o
182 -+ rm -f *.o *.lo
183 - rm -rf small
184 - @{LSHAR} - $(LIBTOOL) --mode=clean rm -f libntl.la *.lo #LSHAR
185 -
186 -@@ -558,4 +585,11 @@
187 -
188 -
189 -
190 -+sharedso: DIRNAME $(SHOBJ)
191 -+ $(LINK) $(PICFLAG) -shared -Wl,-soname,lib`cat DIRNAME`.so -o lib`cat DIRNAME`.so $(SHOBJ) $(GMP_OPT_LIBDIR) $(GMP_OPT_LIB) $(GF2X_OPT_LIBDIR) $(GF2X_OPT_LIB)
192 -+ ln -s lib`cat DIRNAME`.so libntl.so
193 -+
194 -+shareddylib: DIRNAME $(SHOBJ)
195 -+ $(LINK) $(PICFLAG) -dynamiclib -install_name $(LIBDIR)/lib`cat DIRNAME`.dylib -o lib`cat DIRNAME`.dylib $(SHOBJ) $(GMP_OPT_LIBDIR) $(GMP_OPT_LIB) $(GF2X_OPT_LIBDIR) $(GF2X_OPT_LIB)
196 -+ ln -s lib`cat DIRNAME`.dylib libntl.dylib
197 -
198
199 diff --git a/dev-libs/ntl/files/ntl-9.2.0-singular.patch b/dev-libs/ntl/files/ntl-9.2.0-singular.patch
200 deleted file mode 100644
201 index 58f9491c12a..00000000000
202 --- a/dev-libs/ntl/files/ntl-9.2.0-singular.patch
203 +++ /dev/null
204 @@ -1,13 +0,0 @@
205 -Modfiy new.h to accomodate Singular.
206 ---- src.orig/include/NTL/new.h 2012-08-06 17:12:25.658913083 +0200
207 -+++ src/include/NTL/new.h 2012-08-06 17:11:15.002915713 +0200
208 -@@ -12,7 +12,8 @@
209 - #include <NTL/config.h>
210 - #include <new>
211 -
212 --#define NTL_NEW_OP new (std::nothrow)
213 -+// commenting std::nothrow makes this ntl work properly with Singular
214 -+#define NTL_NEW_OP new //(std::nothrow)
215 -
216 -
217 - #endif
218
219 diff --git a/dev-libs/ntl/files/ntl-9.6.4-sanitize-makefile.patch b/dev-libs/ntl/files/ntl-9.6.4-sanitize-makefile.patch
220 deleted file mode 100644
221 index ed2e533fe43..00000000000
222 --- a/dev-libs/ntl/files/ntl-9.6.4-sanitize-makefile.patch
223 +++ /dev/null
224 @@ -1,160 +0,0 @@
225 ---- ntl-9.6.4/src/DoConfig
226 -+++ ntl-9.6.4/src/DoConfig
227 -@@ -24,14 +24,16 @@
228 -
229 - 'LDFLAGS' => '',
230 - 'LDLIBS' => '-lm',
231 -+'PICFLAG' => '-fPIC',
232 - 'CPPFLAGS' => '',
233 -
234 --'DEF_PREFIX' => '/usr/local',
235 -+'DEF_PREFIX' => '/usr',
236 -
237 - 'PREFIX' => '$(DEF_PREFIX)',
238 - 'LIBDIR' => '$(PREFIX)/lib',
239 - 'INCLUDEDIR' => '$(PREFIX)/include',
240 - 'DOCDIR' => '$(PREFIX)/share/doc',
241 -+'SHMAKE' => 'non-gld',
242 -
243 - 'GMP_PREFIX' => '$(DEF_PREFIX)',
244 - 'GMP_INCDIR' => '$(GMP_PREFIX)/include',
245 ---- ntl-9.6.4/src/mfile
246 -+++ ntl-9.6.4/src/mfile
247 -@@ -113,6 +113,18 @@
248 - # Set to off if you want to bypass the wizard; otherwise, set to on.
249 -
250 -
251 -+###############################################################
252 -+#
253 -+# New addition for shared library building. With gcc you need to
254 -+# choose the Position Indepent Code flag. You have a choice of
255 -+# -fpic better code but in rare case not available (ppc)
256 -+# -fPIC slightly slower code but guaranted to work anywhere.
257 -+#
258 -+###############################################################
259 -+
260 -+PICFLAG=@{PICFLAG}
261 -+
262 -+
263 - #################################################################
264 - #
265 - # That's it! You can ignore everything else in this file!
266 -@@ -144,6 +156,8 @@
267 -
268 - OBJ=$(O19)
269 -
270 -+SHOBJ=$(subst .o,.lo,$(OBJ))
271 -+
272 - # library source files
273 -
274 -
275 -@@ -317,6 +331,7 @@
276 -
277 - LINK = $(CXX) $(NTL_INCLUDE) $(CPPFLAGS) $(CXXAUTOFLAGS) $(CXXFLAGS) $(LDFLAGS)
278 -
279 -+.SUFFIXES: .lo
280 -
281 -
282 - # 'make all' does a complete make, including all setup.
283 -@@ -325,11 +340,11 @@
284 - # again.
285 -
286 - all:
287 -- make setup1
288 -- make setup2
289 -- make setup3
290 -- make setup4
291 -- make ntl.a
292 -+ ${MAKE} setup1
293 -+ ${MAKE} setup2
294 -+ ${MAKE} setup3
295 -+ ${MAKE} setup4
296 -+ ${MAKE} ntl.a
297 - touch all
298 -
299 -
300 -@@ -378,16 +393,28 @@
301 - lip.o: lip.c g_lip_impl.h c_lip_impl.h
302 - $(LCOMP) $(COMPILE) $(GMP_OPT_INCDIR) lip.c
303 -
304 -+lip.lo: lip.c g_lip_impl.h c_lip_impl.h
305 -+ $(LCOMP) $(COMPILE) $(PICFLAG) $(GMP_OPT_INCDIR) lip.c -o lip.lo
306 -+
307 - ctools.o: ctools.c
308 - $(LCOMP) $(COMPILE) ctools.c
309 -
310 -+ctools.lo: ctools.c
311 -+ $(LCOMP) $(COMPILE) $(PICFLAG) ctools.c -o ctools.lo
312 -+
313 -
314 - GetTime.o: GetTime.c
315 - $(LCOMP) $(COMPILE) GetTime.c
316 -
317 -+GetTime.lo: GetTime.c
318 -+ $(LCOMP) $(COMPILE) $(PICFLAG) GetTime.c -o GetTime.lo
319 -+
320 - GetPID.o: GetPID.c
321 - $(LCOMP) $(COMPILE) GetPID.c
322 -
323 -+GetPID.lo: GetPID.c
324 -+ $(LCOMP) $(COMPILE) $(PICFLAG) GetPID.c -o GetPID.lo
325 -+
326 - CheckCompile: CheckCompile.c
327 - $(LINK) -o CheckCompile CheckCompile.c $(LDLIBS)
328 -
329 -@@ -395,6 +422,9 @@
330 - .c.o:
331 - $(LCOMP) $(COMPILE) $(GF2X_OPT_INCDIR) $<
332 -
333 -+.c.lo:
334 -+ $(LCOMP) $(COMPILE) $(PICFLAG) $(GF2X_OPT_INCDIR) -o $@ $<
335 -+
336 - .c:
337 - @{LSTAT} $(LINK) -o $@ $< ntl.a $(GMP_OPT_LIBDIR) $(GMP_OPT_LIB) $(GF2X_OPT_LIBDIR) $(GF2X_OPT_LIB) $(LDLIBS) #LSTAT
338 - @{LSHAR} $(LIBTOOL) --tag=CXX --mode=link $(LINK) -o $@ $< libntl.la #LSHAR
339 -@@ -408,7 +438,7 @@
340 -
341 - check:
342 - sh RemoveProg $(PROGS)
343 -- make QuickTest
344 -+ ${MAKE} QuickTest
345 - ./QuickTest
346 - sh RemoveProg QuickTest
347 - sh TestScript
348 -@@ -465,20 +495,18 @@
349 - #
350 - #################################################################
351 -
352 --clobber:
353 -+clobber: clean
354 - rm -f ntl.a mach_desc.h ../include/NTL/mach_desc.h GetTime.c GetPID.c
355 - sh ResetFeatures '..'
356 - rm -f ../include/NTL/gmp_aux.h
357 -- sh RemoveProg $(PROGS) MakeDesc $(AUXPROGS) gen_gmp_aux
358 -- rm -f *.o
359 -- rm -rf small
360 -+ sh RemoveProg $(PROGS)
361 - rm -f cfileout mfileout
362 - rm -rf .libs *.lo libntl.la
363 - rm -f all
364 -
365 - clean:
366 - sh RemoveProg $(PROGS) MakeDesc $(AUXPROGS) gen_gmp_aux
367 -- rm -f *.o
368 -+ rm -f *.o *.lo
369 - rm -rf small
370 - @{LSHAR} - $(LIBTOOL) --mode=clean rm -f libntl.la *.lo #LSHAR
371 -
372 -@@ -570,5 +598,11 @@
373 - $(LINK) -o DispSettings DispSettings.c $(LDLIBS)
374 -
375 -
376 --
377 -+sharedso: DIRNAME $(SHOBJ)
378 -+ $(LINK) $(PICFLAG) -shared -Wl,-soname,lib`cat DIRNAME`.so -o lib`cat DIRNAME`.so $(SHOBJ) $(GMP_OPT_LIBDIR) $(GMP_OPT_LIB) $(GF2X_OPT_LIBDIR) $(GF2X_OPT_LIB)
379 -+ ln -s lib`cat DIRNAME`.so libntl.so
380 -+
381 -+shareddylib: DIRNAME $(SHOBJ)
382 -+ $(LINK) $(PICFLAG) -dynamiclib -install_name $(LIBDIR)/lib`cat DIRNAME`.dylib -o lib`cat DIRNAME`.dylib $(SHOBJ) $(GMP_OPT_LIBDIR) $(GMP_OPT_LIB) $(GF2X_OPT_LIBDIR) $(GF2X_OPT_LIB)
383 -+ ln -s lib`cat DIRNAME`.dylib libntl.dylib
384 -
385
386 diff --git a/dev-libs/ntl/ntl-10.5.0.ebuild b/dev-libs/ntl/ntl-10.5.0.ebuild
387 deleted file mode 100644
388 index 4987f69dd78..00000000000
389 --- a/dev-libs/ntl/ntl-10.5.0.ebuild
390 +++ /dev/null
391 @@ -1,62 +0,0 @@
392 -# Copyright 1999-2020 Gentoo Authors
393 -# Distributed under the terms of the GNU General Public License v2
394 -
395 -EAPI=6
396 -inherit flag-o-matic ltprune toolchain-funcs
397 -
398 -DESCRIPTION="High-performance and portable Number Theory C++ library"
399 -HOMEPAGE="http://shoup.net/ntl/"
400 -SRC_URI="http://www.shoup.net/ntl/${P}.tar.gz"
401 -
402 -LICENSE="GPL-2"
403 -SLOT="0/35"
404 -KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
405 -IUSE="doc static-libs test threads bindist"
406 -RESTRICT="!test? ( test )"
407 -
408 -RDEPEND="dev-libs/gmp:0=
409 - >=dev-libs/gf2x-0.9"
410 -DEPEND="${RDEPEND}
411 - dev-lang/perl"
412 -
413 -S="${WORKDIR}/${P}/src"
414 -
415 -pkg_setup() {
416 - replace-flags -O[3-9] -O2
417 -}
418 -
419 -src_configure() {
420 - # Currently the build system can build a static library or
421 - # both static and shared libraries. But not only shared libraries.
422 - perl DoConfig \
423 - PREFIX="${EPREFIX}"/usr \
424 - LIBDIR="${EPREFIX}"/usr/$(get_libdir) \
425 - CXXFLAGS="${CXXFLAGS}" \
426 - CPPFLAGS="${CPPFLAGS}" \
427 - LDFLAGS="${LDFLAGS}" \
428 - CXX="$(tc-getCXX)" \
429 - AR="$(tc-getAR)" \
430 - RANLIB="$(tc-getRANLIB)" \
431 - SHARED=on \
432 - NTL_GMP_LIP=on NTL_GF2X_LIB=on \
433 - $(usex threads NTL_THREADS= NTL_THREADS= on off) \
434 - $(usex bindist NATIVE= NATIVE= off on) \
435 - || die "DoConfig failed"
436 -}
437 -
438 -src_install() {
439 - default
440 - if ! use static-libs; then
441 - prune_libtool_files --all
442 - rm -f "${ED}"/usr/$(get_libdir)/libntl.a
443 - fi
444 -
445 - cd ..
446 - rm -rf "${ED}"/usr/share/doc/NTL
447 - dodoc README
448 - if use doc ; then
449 - dodoc doc/*.txt
450 - docinto html
451 - dodoc doc/*.html doc/*.gif
452 - fi
453 -}
454
455 diff --git a/dev-libs/ntl/ntl-9.3.0.ebuild b/dev-libs/ntl/ntl-9.3.0.ebuild
456 deleted file mode 100644
457 index e2a691d8a31..00000000000
458 --- a/dev-libs/ntl/ntl-9.3.0.ebuild
459 +++ /dev/null
460 @@ -1,82 +0,0 @@
461 -# Copyright 1999-2020 Gentoo Authors
462 -# Distributed under the terms of the GNU General Public License v2
463 -
464 -EAPI=5
465 -inherit toolchain-funcs eutils multilib flag-o-matic
466 -
467 -DESCRIPTION="High-performance and portable Number Theory C++ library"
468 -HOMEPAGE="http://shoup.net/ntl/"
469 -SRC_URI="http://www.shoup.net/ntl/${P}.tar.gz"
470 -
471 -LICENSE="GPL-2"
472 -SLOT="0"
473 -KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
474 -IUSE="doc static-libs test"
475 -RESTRICT="!test? ( test )"
476 -
477 -RDEPEND="dev-libs/gmp:=
478 - >=dev-libs/gf2x-0.9"
479 -DEPEND="${RDEPEND}
480 - dev-lang/perl"
481 -
482 -S="${WORKDIR}/${P}/src"
483 -
484 -src_prepare() {
485 - # fix parallel make
486 - sed -i -e "s/make/make ${MAKEOPTS}/g" WizardAux || die
487 - cd ..
488 - # sanitize the makefile and allow the building of shared library
489 - epatch "${FILESDIR}"/${PN}-9.2.0-sanitize-makefile.patch
490 - # enable compatibility with singular
491 - epatch "${FILESDIR}"/${PN}-9.2.0-singular.patch
492 - replace-flags -O[3-9] -O2
493 -}
494 -
495 -src_configure() {
496 - perl DoConfig \
497 - PREFIX="${EPREFIX}"/usr \
498 - CXXFLAGS="${CXXFLAGS}" \
499 - LDFLAGS="${LDFLAGS}" \
500 - CXX="$(tc-getCXX)" \
501 - AR="$(tc-getAR)" \
502 - RANLIB="$(tc-getRANLIB)" \
503 - NTL_GMP_LIP=on NTL_GF2X_LIB=on NTL_LEGACY_SP_MULMOD=on \
504 - || die "DoConfig failed"
505 -}
506 -
507 -src_compile() {
508 - # split the targets to allow parallel make to run properly
509 - emake setup1 setup2
510 - emake setup3
511 - sh Wizard on || die "Tuning wizard failed"
512 - if use static-libs; then
513 - emake ntl.a
514 - fi
515 - local trg=so
516 - [[ ${CHOST} == *-darwin* ]] && trg=dylib
517 - emake shared${trg}
518 -}
519 -
520 -src_install() {
521 - if use static-libs; then
522 - newlib.a ntl.a libntl.a
523 - fi
524 - dolib.so lib*$(get_libname)
525 -
526 - cd ..
527 - insinto /usr/include
528 - doins -r include/NTL
529 -
530 - dodoc README
531 - if use doc ; then
532 - dodoc doc/*.txt
533 - dohtml doc/*
534 - fi
535 -}
536 -
537 -src_test() {
538 - # the current ebuild need static library to run tests
539 - emake ntl.a
540 -
541 - default
542 -}
543
544 diff --git a/dev-libs/ntl/ntl-9.6.4.ebuild b/dev-libs/ntl/ntl-9.6.4.ebuild
545 deleted file mode 100644
546 index e672e758c1b..00000000000
547 --- a/dev-libs/ntl/ntl-9.6.4.ebuild
548 +++ /dev/null
549 @@ -1,85 +0,0 @@
550 -# Copyright 1999-2020 Gentoo Authors
551 -# Distributed under the terms of the GNU General Public License v2
552 -
553 -EAPI=6
554 -inherit flag-o-matic toolchain-funcs
555 -
556 -DESCRIPTION="High-performance and portable Number Theory C++ library"
557 -HOMEPAGE="http://shoup.net/ntl/"
558 -SRC_URI="http://www.shoup.net/ntl/${P}.tar.gz"
559 -
560 -LICENSE="GPL-2"
561 -SLOT="0"
562 -KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
563 -IUSE="doc static-libs test"
564 -RESTRICT="!test? ( test )"
565 -
566 -RDEPEND="dev-libs/gmp:0=
567 - >=dev-libs/gf2x-0.9"
568 -DEPEND="${RDEPEND}
569 - dev-lang/perl"
570 -
571 -S="${WORKDIR}/${P}/src"
572 -PATCHES=(
573 - "${FILESDIR}/${P}-sanitize-makefile.patch"
574 - "${FILESDIR}/${PN}-9.2.0-singular.patch"
575 -)
576 -
577 -src_prepare() {
578 - # fix parallel make
579 - sed -i -e "s/make/make ${MAKEOPTS}/g" WizardAux || die
580 - cd .. || die
581 - default
582 -
583 - replace-flags -O[3-9] -O2
584 -}
585 -
586 -src_configure() {
587 - perl DoConfig \
588 - PREFIX="${EPREFIX}"/usr \
589 - CXXFLAGS="${CXXFLAGS}" \
590 - LDFLAGS="${LDFLAGS}" \
591 - CXX="$(tc-getCXX)" \
592 - AR="$(tc-getAR)" \
593 - RANLIB="$(tc-getRANLIB)" \
594 - NTL_GMP_LIP=on NTL_GF2X_LIB=on NTL_LEGACY_SP_MULMOD=on \
595 - || die "DoConfig failed"
596 -}
597 -
598 -src_compile() {
599 - # split the targets to allow parallel make to run properly
600 - emake setup1 setup2
601 - emake setup3
602 - sh Wizard on || die "Tuning wizard failed"
603 - if use static-libs; then
604 - emake ntl.a
605 - fi
606 - local trg=so
607 - [[ ${CHOST} == *-darwin* ]] && trg=dylib
608 - emake shared${trg}
609 -}
610 -
611 -src_install() {
612 - if use static-libs; then
613 - newlib.a ntl.a libntl.a
614 - fi
615 - dolib.so lib*$(get_libname)
616 -
617 - cd .. || die
618 - insinto /usr/include
619 - doins -r include/NTL
620 -
621 - dodoc README
622 - if use doc ; then
623 - dodoc doc/*.txt
624 - docinto html
625 - dodoc doc/*.html doc/*.gif
626 - fi
627 -}
628 -
629 -src_test() {
630 - # the current ebuild need static library to run tests
631 - emake ntl.a
632 -
633 - default
634 -}