1 |
commit: 532a9b6c9bdc1a4011d9733c679a5b67cd0fd5c1 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 20 10:43:19 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 20 10:43:19 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=532a9b6c |
7 |
|
8 |
dev-libs/ntl: Clean old |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
dev-libs/ntl/Manifest | 1 - |
14 |
dev-libs/ntl/files/ntl-5.5.2-sage-tools.patch | 53 -------- |
15 |
dev-libs/ntl/files/ntl-5.5.2-shared.patch | 166 -------------------------- |
16 |
dev-libs/ntl/files/ntl-5.5.2-singular.patch | 12 -- |
17 |
dev-libs/ntl/metadata.xml | 6 +- |
18 |
dev-libs/ntl/ntl-5.5.2.ebuild | 75 ------------ |
19 |
dev-libs/ntl/ntl-6.1.0.ebuild | 28 +++-- |
20 |
7 files changed, 18 insertions(+), 323 deletions(-) |
21 |
|
22 |
diff --git a/dev-libs/ntl/Manifest b/dev-libs/ntl/Manifest |
23 |
index bb34f48..a8c8131 100644 |
24 |
--- a/dev-libs/ntl/Manifest |
25 |
+++ b/dev-libs/ntl/Manifest |
26 |
@@ -1,3 +1,2 @@ |
27 |
-DIST ntl-5.5.2.tar.gz 707247 SHA256 ef7fe7c8b60ec6e05b2a279caad0081263f7fb68b7360120846644cde726ff56 SHA512 44892e00051ca743b1184c9ae30e62c8e2605edaa394358979ff990a535993a6f282d882871ca9ebb3c632971f806c41d9b8024c8fb2cc6fa0d22bc26c66db06 WHIRLPOOL 4587463c4b52be721a7feb164fab73341af97c6f451c0bb2fbf675503c8a5262a5d7615d628e97f082dde23ce49db0f0b314c625dae0526bb1abdfc88732896f |
28 |
DIST ntl-6.1.0.tar.gz 715439 SHA256 e16c30ceef1d47e94b8a37a8c4a1fb58729b8f8449c648e2a96280a3eecf9b6f SHA512 8c013bd4a250c8e29d57864585492be1f392c84356959d8100d5c45b420e411e5cd677524e2d50bbe265dda4c364185395780ba5d8490f6ac46da73c6a9728de WHIRLPOOL cf2a48cfe33cb58d8bda35d4a18d57a20ae23f2ba53f0f757d1bacc58ffa0bfdfd38363db38996e2e4069f5e3f2ad6a3ae9a859437a93404308512652190c765 |
29 |
DIST ntl-9.3.0.tar.gz 888710 SHA256 8f31508a9176b3fc843f08468b1632017f2450677bfd5147ead5136e0f24b68f SHA512 dfb4ac7a66aaddcf5d0d0c9fcaff253b0196a9d9f727788127dd18e131528fe60dedf8bfb864503225fc5796987aec9c7019b74e0fc12cd12c20aa33a9cf9d7d WHIRLPOOL a1f7cf573d49a277f0b2f1d50d18e66ef83a54430c517fd5d3c75e800216b706e8b5ff10e6ed2dc02b6eb4f9290671b249c67f1937cced96ac987055aaa3ab99 |
30 |
|
31 |
diff --git a/dev-libs/ntl/files/ntl-5.5.2-sage-tools.patch b/dev-libs/ntl/files/ntl-5.5.2-sage-tools.patch |
32 |
deleted file mode 100644 |
33 |
index fafa973..0000000 |
34 |
--- a/dev-libs/ntl/files/ntl-5.5.2-sage-tools.patch |
35 |
+++ /dev/null |
36 |
@@ -1,53 +0,0 @@ |
37 |
---- include/NTL/tools.h.orig 2008-05-06 22:14:06.000000000 +1200 |
38 |
-+++ include/NTL/tools.h 2008-05-06 22:14:23.000000000 +1200 |
39 |
-@@ -249,6 +249,12 @@ |
40 |
- char IntValToChar(long a); |
41 |
- |
42 |
- |
43 |
-+/* |
44 |
-+ This function is not present in vanilla NTL |
45 |
-+ See tools.c for documentation. |
46 |
-+ */ |
47 |
-+void SetErrorCallbackFunction(void (*func)(const char *s, void *context), void *context); |
48 |
-+ |
49 |
- |
50 |
- void Error(const char *s); |
51 |
- |
52 |
---- src/tools.c.orig 2008-05-06 22:15:32.000000000 +1200 |
53 |
-+++ src/tools.c 2008-05-06 22:15:45.000000000 +1200 |
54 |
-@@ -8,8 +8,35 @@ |
55 |
- NTL_START_IMPL |
56 |
- |
57 |
- |
58 |
-+/* |
59 |
-+ The following code differs from vanilla NTL |
60 |
-+ |
61 |
-+ We add a SetErrorCallbackFunction(). This sets a global callback function _function_, |
62 |
-+ which gets called with parameter _context_ and an error message string whenever Error() |
63 |
-+ gets called. |
64 |
-+ |
65 |
-+ Note that if the custom error handler *returns*, then NTL will dump the error message |
66 |
-+ back to stderr and abort() as it habitually does. |
67 |
-+ |
68 |
-+ -- David Harvey (2008-04-12) |
69 |
-+*/ |
70 |
-+ |
71 |
-+void (*ErrorCallbackFunction)(const char*, void*) = NULL; |
72 |
-+void *ErrorCallbackContext = NULL; |
73 |
-+ |
74 |
-+ |
75 |
-+void SetErrorCallbackFunction(void (*function)(const char*, void*), void *context) |
76 |
-+{ |
77 |
-+ ErrorCallbackFunction = function; |
78 |
-+ ErrorCallbackContext = context; |
79 |
-+} |
80 |
-+ |
81 |
-+ |
82 |
- void Error(const char *s) |
83 |
- { |
84 |
-+ if (ErrorCallbackFunction != NULL) |
85 |
-+ ErrorCallbackFunction(s, ErrorCallbackContext); |
86 |
-+ |
87 |
- cerr << s << "\n"; |
88 |
- abort(); |
89 |
- } |
90 |
|
91 |
diff --git a/dev-libs/ntl/files/ntl-5.5.2-shared.patch b/dev-libs/ntl/files/ntl-5.5.2-shared.patch |
92 |
deleted file mode 100644 |
93 |
index 1ddd745..0000000 |
94 |
--- a/dev-libs/ntl/files/ntl-5.5.2-shared.patch |
95 |
+++ /dev/null |
96 |
@@ -1,166 +0,0 @@ |
97 |
---- src/DoConfig.orig 2009-05-05 07:46:39.000000000 +0100 |
98 |
-+++ src/DoConfig 2009-08-10 19:24:43.000000000 +0100 |
99 |
-@@ -25,14 +25,16 @@ |
100 |
- 'LDFLAGS_CXX' => '$(LDFLAGS)', |
101 |
- 'LDLIBS' => '-lm', |
102 |
- 'LDLIBS_CXX' => '$(LDLIBS)', |
103 |
-+'PICFLAG' => '-fPIC', |
104 |
- 'CPPFLAGS' => '', |
105 |
- |
106 |
--'DEF_PREFIX' => '/usr/local', |
107 |
-+'DEF_PREFIX' => '/usr', |
108 |
- |
109 |
- 'PREFIX' => '$(DEF_PREFIX)', |
110 |
- 'LIBDIR' => '$(PREFIX)/lib', |
111 |
- 'INCLUDEDIR' => '$(PREFIX)/include', |
112 |
- 'DOCDIR' => '$(PREFIX)/share/doc', |
113 |
-+'SHMAKE' => 'non-gld', |
114 |
- |
115 |
- 'GMP_PREFIX' => '$(DEF_PREFIX)', |
116 |
- 'GMP_INCDIR' => '$(GMP_PREFIX)/include', |
117 |
-@@ -87,11 +89,6 @@ |
118 |
- |
119 |
- foreach $arg (@ARGV) { |
120 |
- |
121 |
-- if ($arg =~ '-h|help|-help|--help') { |
122 |
-- system("more ../doc/config.txt"); |
123 |
-- exit; |
124 |
-- } |
125 |
-- |
126 |
- if (($name, $val) = ($arg =~ /(.*?)=(.*)/)) { |
127 |
- |
128 |
- if (exists($MakeFlag{$name}) && ($val =~ 'on|off')) { |
129 |
- |
130 |
- |
131 |
- |
132 |
---- src/mfile.orig 2009-05-05 07:46:39.000000000 +0100 |
133 |
-+++ src/mfile 2009-08-10 20:31:36.000000000 +0100 |
134 |
-@@ -141,6 +146,16 @@ |
135 |
- WIZARD=@{WIZARD} |
136 |
- # Set to off if you want to bypass the wizard; otherwise, set to on. |
137 |
- |
138 |
-+############################################################### |
139 |
-+# |
140 |
-+# New addition for shared library building. With gcc you need to |
141 |
-+# choose the Position Indepent Code flag. You have a choice of |
142 |
-+# -fpic better code but in rare case not available (ppc) |
143 |
-+# -fPIC slightly slower code but guaranted to work anywhere. |
144 |
-+# |
145 |
-+############################################################### |
146 |
-+ |
147 |
-+PICFLAG=@{PICFLAG} |
148 |
- |
149 |
- ################################################################# |
150 |
- # |
151 |
-@@ -173,6 +188,8 @@ |
152 |
- |
153 |
- OBJ=$(O19) |
154 |
- |
155 |
-+SHOBJ=$(subst .o,.lo,$(OBJ)) |
156 |
-+ |
157 |
- # library source files |
158 |
- |
159 |
- |
160 |
-@@ -320,7 +356,7 @@ |
161 |
- LINK = $(CC) $(NTL_INCLUDE) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) |
162 |
- LINK_CXX = $(CXX) $(NTL_INCLUDE) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS_CXX) |
163 |
- |
164 |
-- |
165 |
-+.SUFFIXES: .lo |
166 |
- |
167 |
- # 'make all' does a complete make, including all setup. |
168 |
- # It also creates the file 'all', which means you should |
169 |
-@@ -328,11 +364,11 @@ |
170 |
- # again. |
171 |
- |
172 |
- all: |
173 |
-- make setup1 |
174 |
-- make setup2 |
175 |
-- make setup3 |
176 |
-- make setup4 |
177 |
-- make ntl.a |
178 |
-+ $(MAKE) setup1 |
179 |
-+ $(MAKE) setup2 |
180 |
-+ $(MAKE) setup3 |
181 |
-+ $(MAKE) setup4 |
182 |
-+ $(MAKE) ntl.a |
183 |
- touch all |
184 |
- |
185 |
- |
186 |
-@@ -378,18 +414,31 @@ |
187 |
- lip.o: lip.c g_lip_impl.h c_lip_impl.h lip_gmp_aux_impl.h |
188 |
- $(LCOMP) $(COMPILE) $(GMP_OPT_INCDIR) lip.c |
189 |
- |
190 |
-+lip.lo: lip.c g_lip_impl.h c_lip_impl.h lip_gmp_aux_impl.h |
191 |
-+ $(LCOMP) $(COMPILE) $(PICFLAG) $(GMP_INCDIR) lip.c -o lip.lo |
192 |
-+ |
193 |
-+ |
194 |
-+ |
195 |
- ctools.o: ctools.c |
196 |
- $(LCOMP) $(COMPILE) ctools.c |
197 |
- |
198 |
-+ctools.lo: ctools.c |
199 |
-+ $(LCOMP) $(COMPILE) $(PICFLAG) ctools.c -o ctools.lo |
200 |
-+ |
201 |
- |
202 |
- GetTime.o: GetTime.c |
203 |
- $(LCOMP) $(COMPILE) GetTime.c |
204 |
- |
205 |
-- |
206 |
-+GetTime.lo: GetTime.c |
207 |
-+ $(LCOMP) $(COMPILE) $(PICFLAG) GetTime.c -o GetTime.lo |
208 |
- |
209 |
- .c.o: |
210 |
- $(LCOMP) $(COMPILE_CXX) $(GF2X_OPT_INCDIR) $< |
211 |
- |
212 |
-+.c.lo: |
213 |
-+ $(LCOMP) $(COMPILE_CXX) $(PICFLAG) $(GF2X_OPT_INCDIR) -o $@ $< |
214 |
-+ |
215 |
-+ |
216 |
- .c: |
217 |
- @{LSTAT} $(LINK_CXX) -o $@ $< ntl.a $(GMP_OPT_LIBDIR) $(GMP_OPT_LIB) $(GF2X_OPT_LIBDIR) $(GF2X_OPT_LIB) $(LDLIBS_CXX) #LSTAT |
218 |
- @{LSHAR} $(LIBTOOL) --mode=link $(LINK_CXX) -o $@ $< libntl.la #LSHAR |
219 |
-@@ -403,7 +452,7 @@ |
220 |
- |
221 |
- check: |
222 |
- sh RemoveProg $(PROGS) |
223 |
-- make QuickTest |
224 |
-+ $(MAKE) QuickTest |
225 |
- ./QuickTest |
226 |
- sh RemoveProg QuickTest |
227 |
- sh TestScript |
228 |
-@@ -460,19 +509,18 @@ |
229 |
- # |
230 |
- ################################################################# |
231 |
- |
232 |
--clobber: |
233 |
-+clobber: clean |
234 |
- rm -f ntl.a mach_desc.h ../include/NTL/mach_desc.h GetTime.c |
235 |
- rm -f lip_gmp_aux_impl.h ../include/NTL/gmp_aux.h |
236 |
-- sh RemoveProg $(PROGS) MakeDesc TestGetTime gen_lip_gmp_aux gen_gmp_aux |
237 |
-- rm -f *.o |
238 |
-- rm -rf small |
239 |
-+ sh RemoveProg $(PROGS) |
240 |
-+ rm -f libntl*.so* |
241 |
- rm -f cfileout mfileout |
242 |
- rm -rf .libs *.lo libntl.la |
243 |
- rm -f all |
244 |
- |
245 |
- clean: |
246 |
- sh RemoveProg MakeDesc TestGetTime gen_lip_gmp_aux gen_gmp_aux |
247 |
-- rm -f *.o |
248 |
-+ rm -f *.o *.lo |
249 |
- rm -rf small |
250 |
- @{LSHAR} - $(LIBTOOL) --mode=clean rm -f libntl.la *.lo #LSHAR |
251 |
- |
252 |
-@@ -549,3 +597,10 @@ |
253 |
- |
254 |
- |
255 |
- |
256 |
-+sharedso: DIRNAME $(SHOBJ) |
257 |
-+ $(LINK_CXX) $(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) |
258 |
-+ ln -s lib`cat DIRNAME`.so libntl.so |
259 |
-+ |
260 |
-+shareddylib: DIRNAME $(SHOBJ) |
261 |
-+ $(LINK_CXX) $(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) |
262 |
-+ ln -s lib`cat DIRNAME`.dylib libntl.dylib |
263 |
|
264 |
diff --git a/dev-libs/ntl/files/ntl-5.5.2-singular.patch b/dev-libs/ntl/files/ntl-5.5.2-singular.patch |
265 |
deleted file mode 100644 |
266 |
index 9f0d131..0000000 |
267 |
--- a/dev-libs/ntl/files/ntl-5.5.2-singular.patch |
268 |
+++ /dev/null |
269 |
@@ -1,12 +0,0 @@ |
270 |
---- include/NTL/new.h.orig 2008-05-06 21:56:16.000000000 +1200 |
271 |
-+++ include/NTL/new.h 2008-05-06 21:56:33.000000000 +1200 |
272 |
-@@ -12,7 +12,8 @@ |
273 |
- |
274 |
- #include <new> |
275 |
- |
276 |
--#define NTL_NEW_OP new (std::nothrow) |
277 |
-+// uncommenting std::nothrow makes this ntl work properly with Singular |
278 |
-+#define NTL_NEW_OP new //(std::nothrow) |
279 |
- |
280 |
- |
281 |
- #else |
282 |
|
283 |
diff --git a/dev-libs/ntl/metadata.xml b/dev-libs/ntl/metadata.xml |
284 |
index 480588c..b3a0b3a 100644 |
285 |
--- a/dev-libs/ntl/metadata.xml |
286 |
+++ b/dev-libs/ntl/metadata.xml |
287 |
@@ -1,9 +1,9 @@ |
288 |
<?xml version="1.0" encoding="UTF-8"?> |
289 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
290 |
<pkgmetadata> |
291 |
-<herd>sci-mathematics</herd> |
292 |
-<herd>cpp</herd> |
293 |
-<longdescription lang="en"> |
294 |
+ <herd>sci-mathematics</herd> |
295 |
+ <herd>cpp</herd> |
296 |
+ <longdescription lang="en"> |
297 |
NTL is a high-performance, portable C++ library providing data |
298 |
structures and algorithms for manipulating signed, arbitrary length |
299 |
integers, and for vectors, matrices, and polynomials over the |
300 |
|
301 |
diff --git a/dev-libs/ntl/ntl-5.5.2.ebuild b/dev-libs/ntl/ntl-5.5.2.ebuild |
302 |
deleted file mode 100644 |
303 |
index a25ddcf..0000000 |
304 |
--- a/dev-libs/ntl/ntl-5.5.2.ebuild |
305 |
+++ /dev/null |
306 |
@@ -1,75 +0,0 @@ |
307 |
-# Copyright 1999-2011 Gentoo Foundation |
308 |
-# Distributed under the terms of the GNU General Public License v2 |
309 |
-# $Id$ |
310 |
- |
311 |
-EAPI=3 |
312 |
-inherit toolchain-funcs eutils multilib flag-o-matic |
313 |
- |
314 |
-DESCRIPTION="High-performance and portable Number Theory C++ library" |
315 |
-HOMEPAGE="http://shoup.net/ntl/" |
316 |
-SRC_URI="http://www.shoup.net/ntl/${P}.tar.gz" |
317 |
- |
318 |
-LICENSE="GPL-2" |
319 |
-SLOT="0" |
320 |
-KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos" |
321 |
-IUSE="doc static-libs test" |
322 |
- |
323 |
-RDEPEND=">=dev-libs/gmp-4.3 |
324 |
- >=dev-libs/gf2x-0.9" |
325 |
-DEPEND="${RDEPEND} |
326 |
- dev-lang/perl" |
327 |
- |
328 |
-S="${WORKDIR}/${P}/src" |
329 |
- |
330 |
-src_prepare() { |
331 |
- # fix parallel make |
332 |
- sed -i -e "s/make/make ${MAKEOPTS}/g" WizardAux || die |
333 |
- cd .. |
334 |
- # enable compatibility with singular |
335 |
- epatch "$FILESDIR/${P}-singular.patch" |
336 |
- # implement a call back framework (submitted upstream) |
337 |
- epatch "$FILESDIR/${P}-sage-tools.patch" |
338 |
- # sanitize the makefile and allow the building of shared library |
339 |
- epatch "$FILESDIR/${P}-shared.patch" |
340 |
- replace-flags -O[3-9] -O2 |
341 |
-} |
342 |
- |
343 |
-src_configure() { |
344 |
- perl DoConfig \ |
345 |
- PREFIX="${EPREFIX}"/usr \ |
346 |
- CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" \ |
347 |
- CC="$(tc-getCC)" CXX="$(tc-getCXX)" \ |
348 |
- AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \ |
349 |
- NTL_STD_CXX=on NTL_GMP_LIP=on NTL_GF2X_LIB=on \ |
350 |
- || die "DoConfig failed" |
351 |
-} |
352 |
- |
353 |
-src_compile() { |
354 |
- # split the targets to allow parallel make to run properly |
355 |
- emake setup1 setup2 || die "emake setup failed" |
356 |
- emake setup3 || die "emake setup failed" |
357 |
- sh Wizard on || die "Tuning wizard failed" |
358 |
- if use static-libs || use test; then |
359 |
- emake ntl.a || die "emake static failed" |
360 |
- fi |
361 |
- local trg=so |
362 |
- [[ ${CHOST} == *-darwin* ]] && trg=dylib |
363 |
- emake shared${trg} || die "emake shared failed" |
364 |
-} |
365 |
- |
366 |
-src_install() { |
367 |
- if use static-libs; then |
368 |
- newlib.a ntl.a libntl.a || die "installation of static library failed" |
369 |
- fi |
370 |
- dolib.so lib*$(get_libname) || die "installation of shared library failed" |
371 |
- |
372 |
- cd .. |
373 |
- insinto /usr/include |
374 |
- doins -r include/NTL || die "installation of the headers failed" |
375 |
- |
376 |
- dodoc README |
377 |
- if use doc ; then |
378 |
- dodoc doc/*.txt || die |
379 |
- dohtml doc/* || die |
380 |
- fi |
381 |
-} |
382 |
|
383 |
diff --git a/dev-libs/ntl/ntl-6.1.0.ebuild b/dev-libs/ntl/ntl-6.1.0.ebuild |
384 |
index dfaa592..09dfcc9 100644 |
385 |
--- a/dev-libs/ntl/ntl-6.1.0.ebuild |
386 |
+++ b/dev-libs/ntl/ntl-6.1.0.ebuild |
387 |
@@ -1,8 +1,9 @@ |
388 |
-# Copyright 1999-2014 Gentoo Foundation |
389 |
+# Copyright 1999-2015 Gentoo Foundation |
390 |
# Distributed under the terms of the GNU General Public License v2 |
391 |
# $Id$ |
392 |
|
393 |
EAPI=5 |
394 |
+ |
395 |
inherit toolchain-funcs eutils multilib flag-o-matic |
396 |
|
397 |
DESCRIPTION="High-performance and portable Number Theory C++ library" |
398 |
@@ -14,7 +15,8 @@ SLOT="0" |
399 |
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-macos" |
400 |
IUSE="doc static-libs test" |
401 |
|
402 |
-RDEPEND=">=dev-libs/gmp-4.3 |
403 |
+RDEPEND=" |
404 |
+ >=dev-libs/gmp-4.3:0= |
405 |
>=dev-libs/gf2x-0.9" |
406 |
DEPEND="${RDEPEND} |
407 |
dev-lang/perl" |
408 |
@@ -24,7 +26,7 @@ S="${WORKDIR}/${P}/src" |
409 |
src_prepare() { |
410 |
# fix parallel make |
411 |
sed -i -e "s/make/make ${MAKEOPTS}/g" WizardAux || die |
412 |
- cd .. |
413 |
+ cd .. || die |
414 |
# enable compatibility with singular |
415 |
epatch "$FILESDIR/${PN}-6.0.0-singular.patch" |
416 |
# implement a call back framework (submitted upstream) |
417 |
@@ -46,30 +48,30 @@ src_configure() { |
418 |
|
419 |
src_compile() { |
420 |
# split the targets to allow parallel make to run properly |
421 |
- emake setup1 setup2 || die "emake setup failed" |
422 |
- emake setup3 || die "emake setup failed" |
423 |
+ emake setup1 setup2 |
424 |
+ emake setup3 |
425 |
sh Wizard on || die "Tuning wizard failed" |
426 |
if use static-libs || use test; then |
427 |
- emake ntl.a || die "emake static failed" |
428 |
+ emake ntl.a |
429 |
fi |
430 |
local trg=so |
431 |
[[ ${CHOST} == *-darwin* ]] && trg=dylib |
432 |
- emake shared${trg} || die "emake shared failed" |
433 |
+ emake shared${trg} |
434 |
} |
435 |
|
436 |
src_install() { |
437 |
if use static-libs; then |
438 |
- newlib.a ntl.a libntl.a || die "installation of static library failed" |
439 |
+ newlib.a ntl.a libntl.a |
440 |
fi |
441 |
- dolib.so lib*$(get_libname) || die "installation of shared library failed" |
442 |
+ dolib.so lib*$(get_libname) |
443 |
|
444 |
- cd .. |
445 |
+ cd .. || die |
446 |
insinto /usr/include |
447 |
- doins -r include/NTL || die "installation of the headers failed" |
448 |
+ doins -r include/NTL |
449 |
|
450 |
dodoc README |
451 |
if use doc ; then |
452 |
- dodoc doc/*.txt || die |
453 |
- dohtml doc/* || die |
454 |
+ dodoc doc/*.txt |
455 |
+ dohtml doc/* |
456 |
fi |
457 |
} |