1 |
commit: 2b4de8113370e08dd863e5fe1cc9553055f1b306 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 11 19:35:33 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 11 19:46:29 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b4de811 |
7 |
|
8 |
sci-mathematics/pari: Prune old |
9 |
|
10 |
sci-mathematics/pari/Manifest | 5 - |
11 |
sci-mathematics/pari/files/50pari-gentoo.el | 10 -- |
12 |
sci-mathematics/pari/files/pari-2.5.1-1302.patch | 33 ------ |
13 |
sci-mathematics/pari/files/pari-2.5.1-1304.patch | 39 ------ |
14 |
sci-mathematics/pari/files/pari-2.5.1-gcc47.patch | 18 --- |
15 |
sci-mathematics/pari/pari-2.5.0-r3.ebuild | 136 --------------------- |
16 |
sci-mathematics/pari/pari-2.5.1-r1.ebuild | 138 ---------------------- |
17 |
sci-mathematics/pari/pari-2.5.1.ebuild | 138 ---------------------- |
18 |
sci-mathematics/pari/pari-2.5.2.ebuild | 134 --------------------- |
19 |
sci-mathematics/pari/pari-2.5.3.ebuild | 134 --------------------- |
20 |
sci-mathematics/pari/pari-2.7.0.ebuild | 134 --------------------- |
21 |
11 files changed, 919 deletions(-) |
22 |
|
23 |
diff --git a/sci-mathematics/pari/Manifest b/sci-mathematics/pari/Manifest |
24 |
index c43b709a4c7..c2317db8fd8 100644 |
25 |
--- a/sci-mathematics/pari/Manifest |
26 |
+++ b/sci-mathematics/pari/Manifest |
27 |
@@ -2,11 +2,6 @@ DIST elldata.tgz 14185595 BLAKE2B eb90a0e392eeeaad81b6b01ba4e8258aaf2a4b4a01950b |
28 |
DIST galdata.tgz 53229 BLAKE2B 08f0a1be3c5252fbe534b2ed7e66b9bc8cddab807b7caf12b783aacc2e75de82dc000e762da2ec895d52424281234af121e1edfd84adf9f02c26c4e59d23e2f3 SHA512 bc89c8a42416e8ca25c356b7ad6d80ffcfff127e561fc338df87147a9e370ec71f7ae2eb6bef73d634cc7a8f18c794d7fd5ebfd0a042d3d356526a2eee28125a |
29 |
DIST nftables.tgz 8393731 BLAKE2B d33cbf1f52d3e8a040087da28014ab727b59c641d1a53c97d311a9d1613b59f6b317b7632e0fc89943bea0a507a737543890109b888707c4fb7879279549a2e9 SHA512 cccc62fb0f6d8c578a4e165a1f2daf3b87acbbc38377044ddd98e2901a8e0554a46c8714bad0f4f4e09107b0c0c8f43069b4ddf4fba9c7832bad65ce3c901183 |
30 |
DIST pari-2.3.5.tar.gz 2018097 BLAKE2B b5f4f8bc83cd77aceab791263e1a2f0294d0663d354fea454bad8cac3cdbac9c4c8381cc83bc947d518522701c36e94ce1d6862125a9bfd3b17b1a31c9baabc8 SHA512 0e49e6310b4c76ef3370786a13aa8cbc5bb0b7dc84ec1665866d623e6284f45db8584eea759e8b5954dc9b5c8a3e866e77a377d18073ed33f11708a7e88a4cca |
31 |
-DIST pari-2.5.0.tar.gz 2714449 BLAKE2B 2c3bdc52c9c5332670656910a425847633a39831d372f69966542564a0bc5b35d767b84df68a357285e06357ebe110fb55134d1e34675f7e9b27c78cfc0945d4 SHA512 701abdf4d65bcaeac9bdd314b1fc24a59de9ee1874b9abba5761cb88bb871c18d108a99cf1cbf9a357ac192196c043592e0e5d1645689d5a6f85afbfa7a9096f |
32 |
-DIST pari-2.5.1.tar.gz 2718726 BLAKE2B 28149a9af879fed26dd5d7effee8a821a293518743fb5c1ef2ca97e903cf1ab24afbeb4116b2bf833c05aebddacd026a584b8b2c60fef5b036af44d666f22f60 SHA512 dd304bd02402602c1f114a7f4d1e54af0fce8707b196fd9da617c028ba3426418813aeaf818fecaa9f76572b1d36847463a3aa7f60848cdec607ec70131dc263 |
33 |
-DIST pari-2.5.2.tar.gz 2719367 BLAKE2B a48109c1c5ec85306eef4b6bff8c7c05bfe0479f1f9e4e57e2b914286117c2768be869109e7701d74f29fee80fcff9e0f05d6863fde6cf881e7ecc00b7539ba0 SHA512 2d0332e5604a6bd41c8328c4cffc42302dd85db077a950e19769a0cc7b8c3e17b7c4c5c1514ecb2f75757015baa7e7df76f6174e997fbaa90874c5e6cf5e7fce |
34 |
-DIST pari-2.5.3.tar.gz 2720543 BLAKE2B a52473c817c9625f30e6c3ee08942f8e69d4cba0ef6d50972c20ac0995dc00d605d19d90793b88d59e5d47ac87d0ef68d4dbc6b77c3887677cd7b290e0b41bbb SHA512 8606f1f1b59a8e9e8b5bdbaacd03f980da99616568c180eb37f6f530efad396343e3146f6c7adfc5dac6e43a1d35c898531ecf61dd6d62c26cafcd2554f8c43b |
35 |
DIST pari-2.5.4.tar.gz 2721861 BLAKE2B 003113716c4aaea3836ee7f813ff4aacecb40e6c7d9119c0a6d6073f951e6c5fae887ee22d87d5c7d7320e0d873585f145dd14e7014075bf198143dde68325f9 SHA512 de2f0593682d638288908636d848489acf115f4858b91c574168db26c4ab7443465a21d1e6c43be19ecc57dcedcd883e5af72b65467a59a2c8811e4eec64e0b9 |
36 |
-DIST pari-2.7.0.tar.gz 3142306 BLAKE2B eb4a62af1eaa502d38e04116a34e2c9b186ef075cfa647c242ec5384de8d1c12acdb1ad55397a2c3af19b93b95115a60a8a6e8ae2b2bd6d197d68a1907df79e8 SHA512 312ed6032e5b1b431d04cccb593e5ca6ca323361736669be0ed345cbb6cf22114c670984ae74120aacb4ac1af822a1fdf76aed7ba59a1cd4f94e26150562ad84 |
37 |
DIST pari-2.7.1.tar.gz 3140893 BLAKE2B 0f5c69ac2decb0ac26f51de7843c282606f854c257b06d1596eb7f4157e8f64d65b65f887e2d9bb8b77cbdffdac0bb1902e373b1d44e457ac25993bc308d3e09 SHA512 ff32c181e6810af8a38f0dfe45b9f15d930923da5759c3e88595f56bf3c65ec0a79fdb9fb5f0e4ce0adb1ebc56a84e6b1606085057762073a85c0d1946857d5f |
38 |
DIST seadata.tgz 19214199 BLAKE2B cafb89905180ff481f578ff2cdb150b04533ecbccfa96d045bdb61e5fe2c230262f3459d31b11f049ad1e16ed9dd6fb734569ee621efa3831800cc3d99583e60 SHA512 393f2fae45964ad0921fcf417113e10b296cb4c3a0e0eec138c896827f43a5464c4b42a07313e0f3a4383e8df97912e2e359a4cd5225d014d7575e80c7dd996a |
39 |
|
40 |
diff --git a/sci-mathematics/pari/files/50pari-gentoo.el b/sci-mathematics/pari/files/50pari-gentoo.el |
41 |
deleted file mode 100644 |
42 |
index 2f5b4da9084..00000000000 |
43 |
--- a/sci-mathematics/pari/files/50pari-gentoo.el |
44 |
+++ /dev/null |
45 |
@@ -1,10 +0,0 @@ |
46 |
- |
47 |
-;; site-init for sci-mathematics/pari |
48 |
- |
49 |
-(add-to-list 'load-path "@SITELISP@") |
50 |
- |
51 |
-(autoload 'gp-mode "pari" nil t) |
52 |
-(autoload 'gp-script-mode "pari" nil t) |
53 |
-(autoload 'gp "pari" nil t) |
54 |
-(autoload 'gpman "pari" nil t) |
55 |
-(add-to-list 'auto-mode-alist '("\\.gp$" . gp-script-mode)) |
56 |
|
57 |
diff --git a/sci-mathematics/pari/files/pari-2.5.1-1302.patch b/sci-mathematics/pari/files/pari-2.5.1-1302.patch |
58 |
deleted file mode 100644 |
59 |
index 245e587d275..00000000000 |
60 |
--- a/sci-mathematics/pari/files/pari-2.5.1-1302.patch |
61 |
+++ /dev/null |
62 |
@@ -1,33 +0,0 @@ |
63 |
-commit 917b505c86a70dda2191d380861af05becc03858 |
64 |
-Author: Karim Belabas <Karim.Belabas@××××××××××××××××.fr> |
65 |
-Date: Mon Mar 12 23:54:11 2012 +0100 |
66 |
- |
67 |
- ispower(x < 0,, &n): n could have the wrong sign [#1302] |
68 |
- |
69 |
-diff --git a/src/basemath/arith1.c b/src/basemath/arith1.c |
70 |
-index ded946b..5502ba5 100644 |
71 |
---- a/src/basemath/arith1.c |
72 |
-+++ b/src/basemath/arith1.c |
73 |
-@@ -1109,6 +1109,7 @@ Z_isanypower(GEN x, GEN *pty) |
74 |
- *pty = gerepileuptoint(av, y); |
75 |
- return k; |
76 |
- } |
77 |
-+ if (pty) togglesign_safe(pty); |
78 |
- } |
79 |
- if (pty) *pty = gerepilecopy(av, *pty); else avma = av; |
80 |
- return k; |
81 |
-diff --git a/src/test/32/ispower b/src/test/32/ispower |
82 |
-index bf4b6f0..84d8de7 100644 |
83 |
---- a/src/test/32/ispower |
84 |
-+++ b/src/test/32/ispower |
85 |
-@@ -1118,7 +1118,7 @@ |
86 |
- [2, 999] |
87 |
- [6, 10] |
88 |
- [3, -4] |
89 |
--[3, 2] |
90 |
--[3, 21218] |
91 |
-+[3, -2] |
92 |
-+[3, -21218] |
93 |
- [3, -1/4] |
94 |
--Total time spent: 3236 |
95 |
-+Total time spent: 3012 |
96 |
|
97 |
diff --git a/sci-mathematics/pari/files/pari-2.5.1-1304.patch b/sci-mathematics/pari/files/pari-2.5.1-1304.patch |
98 |
deleted file mode 100644 |
99 |
index 3da2e8558da..00000000000 |
100 |
--- a/sci-mathematics/pari/files/pari-2.5.1-1304.patch |
101 |
+++ /dev/null |
102 |
@@ -1,39 +0,0 @@ |
103 |
-commit ff707a3f2ba2d5c555434ba50547453833a7570f |
104 |
-Author: Karim Belabas <Karim.Belabas@××××××××××××××××.fr> |
105 |
-Date: Sun Mar 18 23:54:02 2012 +0100 |
106 |
- |
107 |
- 71- issquarefree(0) => error [#1304] |
108 |
- |
109 |
-diff --git a/src/basemath/ifactor1.c b/src/basemath/ifactor1.c |
110 |
-index 046491f..8f9fbaa 100644 |
111 |
---- a/src/basemath/ifactor1.c |
112 |
-+++ b/src/basemath/ifactor1.c |
113 |
-@@ -3493,7 +3493,11 @@ moebius(GEN n) |
114 |
- GEN |
115 |
- gissquarefree(GEN x) { return map_proto_lG(issquarefree,x); } |
116 |
- long |
117 |
--Z_issquarefree(GEN n) { return moebius(n)? 1: 0; } |
118 |
-+Z_issquarefree(GEN n) |
119 |
-+{ |
120 |
-+ if (!signe(n)) return 0; |
121 |
-+ return moebius(n)? 1: 0; |
122 |
-+} |
123 |
- long |
124 |
- issquarefree(GEN x) |
125 |
- { |
126 |
-diff --git a/src/test/32/arith b/src/test/32/arith |
127 |
-new file mode 100644 |
128 |
-index 0000000..3c5981a |
129 |
---- /dev/null |
130 |
-+++ b/src/test/32/arith |
131 |
-@@ -0,0 +1,2 @@ |
132 |
-+0 |
133 |
-+Total time spent: 8 |
134 |
-diff --git a/src/test/in/arith b/src/test/in/arith |
135 |
-new file mode 100644 |
136 |
-index 0000000..fb92bed |
137 |
---- /dev/null |
138 |
-+++ b/src/test/in/arith |
139 |
-@@ -0,0 +1,2 @@ |
140 |
-+\\#1304 |
141 |
-+issquarefree(0) |
142 |
|
143 |
diff --git a/sci-mathematics/pari/files/pari-2.5.1-gcc47.patch b/sci-mathematics/pari/files/pari-2.5.1-gcc47.patch |
144 |
deleted file mode 100644 |
145 |
index e7b27159fa0..00000000000 |
146 |
--- a/sci-mathematics/pari/files/pari-2.5.1-gcc47.patch |
147 |
+++ /dev/null |
148 |
@@ -1,18 +0,0 @@ |
149 |
-Index: pari-2.5.1/src/basemath/bibli2.c |
150 |
-=================================================================== |
151 |
---- pari-2.5.1.orig/src/basemath/bibli2.c 2012-01-26 17:26:13.000000000 +0100 |
152 |
-+++ pari-2.5.1/src/basemath/bibli2.c 2012-06-04 10:08:41.000000000 +0200 |
153 |
-@@ -1394,12 +1394,12 @@ |
154 |
- int (*CMP)(void*,GEN,GEN); |
155 |
- int (*cmp)(GEN,GEN) = (flag & cmp_LEX)? &lexcmp: &gcmp; |
156 |
- void *E; |
157 |
-+ struct veccmp_s v; |
158 |
- |
159 |
- if (flag < 0 || flag > (cmp_REV|cmp_LEX|cmp_IND|cmp_UNIQ)) |
160 |
- pari_err(flagerr,"vecsort"); |
161 |
- if (k) { |
162 |
- long i, j, l, lk, tx, lx; |
163 |
-- struct veccmp_s v; |
164 |
- GEN y; |
165 |
- |
166 |
- /* cf init_sort */ |
167 |
|
168 |
diff --git a/sci-mathematics/pari/pari-2.5.0-r3.ebuild b/sci-mathematics/pari/pari-2.5.0-r3.ebuild |
169 |
deleted file mode 100644 |
170 |
index 57421935e63..00000000000 |
171 |
--- a/sci-mathematics/pari/pari-2.5.0-r3.ebuild |
172 |
+++ /dev/null |
173 |
@@ -1,136 +0,0 @@ |
174 |
-# Copyright 1999-2017 Gentoo Foundation |
175 |
-# Distributed under the terms of the GNU General Public License v2 |
176 |
- |
177 |
-EAPI="4" |
178 |
- |
179 |
-inherit eutils flag-o-matic toolchain-funcs |
180 |
- |
181 |
-DESCRIPTION="A software package for computer-aided number theory" |
182 |
-HOMEPAGE="http://pari.math.u-bordeaux.fr/" |
183 |
-SRC_URI="http://pari.math.u-bordeaux.fr/pub/${PN}/unix/${P}.tar.gz" |
184 |
- |
185 |
-LICENSE="GPL-2" |
186 |
-SLOT="0" |
187 |
-KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris" |
188 |
-IUSE="doc data fltk gmp X" |
189 |
- |
190 |
-RDEPEND="sys-libs/readline |
191 |
- fltk? ( x11-libs/fltk:1 ) |
192 |
- gmp? ( dev-libs/gmp ) |
193 |
- X? ( x11-libs/libX11 ) |
194 |
- doc? ( X? ( x11-misc/xdg-utils ) ) |
195 |
- data? ( sci-mathematics/pari-data )" |
196 |
-DEPEND="${RDEPEND} |
197 |
- doc? ( virtual/latex-base )" |
198 |
- |
199 |
-get_compile_dir() { |
200 |
- pushd "${S}/config" > /dev/null |
201 |
- local fastread=yes |
202 |
- source ./get_archos |
203 |
- popd > /dev/null |
204 |
- echo "O${osname}-${arch}" |
205 |
-} |
206 |
- |
207 |
-src_prepare() { |
208 |
- epatch "${FILESDIR}/${PN}"-2.3.2-strip.patch |
209 |
- epatch "${FILESDIR}/${PN}"-2.3.2-ppc-powerpc-arch-fix.patch |
210 |
- # fix parallel make |
211 |
- epatch "${FILESDIR}/${PN}"-2.5.0-doc-make.patch |
212 |
- # sage error handling patch |
213 |
- epatch "${FILESDIR}/${PN}"-2.5.0-mp.c.patch |
214 |
- # OS X: add -install_name to the linker option |
215 |
- epatch "${FILESDIR}/${PN}"-2.5.0-macos.patch |
216 |
- # Fix Perl 5.26 |
217 |
- epatch "${FILESDIR}/"${PN}-2.5.0-no-dot-inc.patch |
218 |
- |
219 |
- # disable default building of docs during install |
220 |
- sed -i \ |
221 |
- -e "s:install-doc install-examples:install-examples:" \ |
222 |
- config/Makefile.SH || die "Failed to fix makefile" |
223 |
- |
224 |
- # propagate ldflags |
225 |
- sed -i \ |
226 |
- -e 's/$shared $extra/$shared $extra \\$(LDFLAGS)/' \ |
227 |
- config/get_dlld || die "failed to fix LDFLAGS" |
228 |
- # move doc dir to a gentoo doc dir and replace acroread by xdg-open |
229 |
- sed -i \ |
230 |
- -e "s:\$d = \$0:\$d = '${EPREFIX}/usr/share/doc/${PF}':" \ |
231 |
- -e 's:"acroread":"xdg-open":' \ |
232 |
- doc/gphelp.in || die "Failed to fix doc dir" |
233 |
- |
234 |
- sed -i "s:/usr:${EPREFIX}/usr:g" config/get_X11 \ |
235 |
- || die "Failed to fix get_X11" |
236 |
- |
237 |
- # usersch3.tex is generated |
238 |
- rm -f doc/usersch3.tex || die "failed to remove generated file" |
239 |
-} |
240 |
- |
241 |
-src_configure() { |
242 |
- tc-export CC |
243 |
- |
244 |
- # need to force optimization here, as it breaks without |
245 |
- if is-flag -O0; then |
246 |
- replace-flags -O0 -O2 |
247 |
- elif ! is-flag -O?; then |
248 |
- append-flags -O2 |
249 |
- fi |
250 |
- |
251 |
- local myconfig |
252 |
- if use gmp ; then |
253 |
- myconfig="--with-gmp=${EPREFIX}/usr" |
254 |
- else |
255 |
- myconfig="--with-gmp=no" |
256 |
- fi |
257 |
- |
258 |
- # sysdatadir installs a pari.cfg stuff which is informative only |
259 |
- ./Configure \ |
260 |
- --prefix="${EPREFIX}"/usr \ |
261 |
- --datadir="${EPREFIX}"/usr/share/${PN} \ |
262 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
263 |
- --sysdatadir="${EPREFIX}"/usr/share/doc/${PF} \ |
264 |
- --mandir="${EPREFIX}"/usr/share/man/man1 \ |
265 |
- --with-readline="${EPREFIX}"/usr \ |
266 |
- --with-ncurses-lib="${EPREFIX}"/usr/$(get_libdir) \ |
267 |
- $myconfig \ |
268 |
- || die "./Configure failed" |
269 |
-} |
270 |
- |
271 |
-src_compile() { |
272 |
- local installdir=$(get_compile_dir) |
273 |
- cd "${installdir}" || die "failed to change directory" |
274 |
- |
275 |
- # upstream set -fno-strict-aliasing. |
276 |
- # aliasing is a known issue on amd64, work on x86 by sheer luck |
277 |
- emake ${mymake} \ |
278 |
- CFLAGS="${CFLAGS} -fno-strict-aliasing -DGCC_INLINE -fPIC" lib-dyn |
279 |
- emake ${mymake} \ |
280 |
- CFLAGS="${CFLAGS} -DGCC_INLINE" gp ../gp |
281 |
- |
282 |
- if use doc; then |
283 |
- cd "${S}" || die "failed to change directory" |
284 |
- # To prevent sandbox violations by metafont |
285 |
- VARTEXFONTS="${T}"/fonts emake docpdf |
286 |
- fi |
287 |
-} |
288 |
- |
289 |
-src_test() { |
290 |
- emake dobench |
291 |
-} |
292 |
- |
293 |
-src_install() { |
294 |
- default |
295 |
- dodoc MACHINES COMPAT |
296 |
- if use doc; then |
297 |
- # install gphelp and the pdf documentations manually. |
298 |
- # the install-doc target is overkill. |
299 |
- dodoc doc/*.pdf |
300 |
- dobin doc/gphelp |
301 |
- insinto /usr/share/doc/${PF} |
302 |
- # gphelp looks for some of the tex sources... |
303 |
- doins doc/*.tex doc/translations |
304 |
- # Install the examples - for real. |
305 |
- local installdir=$(get_compile_dir) |
306 |
- cd "${installdir}" || die "failed to change directory" |
307 |
- emake EXDIR="${ED}/usr/share/doc/${PF}/examples" install-examples |
308 |
- fi |
309 |
-} |
310 |
|
311 |
diff --git a/sci-mathematics/pari/pari-2.5.1-r1.ebuild b/sci-mathematics/pari/pari-2.5.1-r1.ebuild |
312 |
deleted file mode 100644 |
313 |
index 7202ed087de..00000000000 |
314 |
--- a/sci-mathematics/pari/pari-2.5.1-r1.ebuild |
315 |
+++ /dev/null |
316 |
@@ -1,138 +0,0 @@ |
317 |
-# Copyright 1999-2017 Gentoo Foundation |
318 |
-# Distributed under the terms of the GNU General Public License v2 |
319 |
- |
320 |
-EAPI="4" |
321 |
- |
322 |
-inherit eutils flag-o-matic toolchain-funcs multilib |
323 |
- |
324 |
-DESCRIPTION="A software package for computer-aided number theory" |
325 |
-HOMEPAGE="http://pari.math.u-bordeaux.fr/" |
326 |
-SRC_URI="http://pari.math.u-bordeaux.fr/pub/${PN}/unix/${P}.tar.gz" |
327 |
- |
328 |
-LICENSE="GPL-2" |
329 |
-SLOT="0" |
330 |
-KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-fbsd ~x86-linux ~x86-macos ~x86-solaris" |
331 |
-IUSE="data doc fltk gmp qt4 X" |
332 |
- |
333 |
-RDEPEND="sys-libs/readline |
334 |
- data? ( sci-mathematics/pari-data ) |
335 |
- doc? ( X? ( x11-misc/xdg-utils ) ) |
336 |
- fltk? ( x11-libs/fltk:1 ) |
337 |
- gmp? ( dev-libs/gmp ) |
338 |
- qt4? ( dev-qt/qtgui:4 ) |
339 |
- X? ( x11-libs/libX11 )" |
340 |
-DEPEND="${RDEPEND} |
341 |
- doc? ( virtual/latex-base )" |
342 |
- |
343 |
-get_compile_dir() { |
344 |
- pushd "${S}/config" > /dev/null |
345 |
- local fastread=yes |
346 |
- source ./get_archos |
347 |
- popd > /dev/null |
348 |
- echo "O${osname}-${arch}" |
349 |
-} |
350 |
- |
351 |
-src_prepare() { |
352 |
- epatch "${FILESDIR}"/${PN}-2.3.2-strip.patch |
353 |
- epatch "${FILESDIR}"/${PN}-2.3.2-ppc-powerpc-arch-fix.patch |
354 |
- # fix parallel make |
355 |
- epatch "${FILESDIR}"/${PN}-2.5.0-doc-make.patch |
356 |
- # sage error handling patch |
357 |
- epatch "${FILESDIR}"/${PN}-2.5.0-mp.c.patch |
358 |
- # OS X: add -install_name to the linker option |
359 |
- epatch "${FILESDIR}"/${PN}-2.5.0-macos.patch |
360 |
- # Fix Perl 5.26 |
361 |
- epatch "${FILESDIR}/"${PN}-2.5.0-no-dot-inc.patch |
362 |
- # from debian, fies bug #423617 |
363 |
- epatch "${FILESDIR}"/${PN}-2.5.1-gcc47.patch |
364 |
- # fix automagic |
365 |
- epatch "${FILESDIR}"/${PN}-2.5.1-no-automagic.patch |
366 |
- # upstream fixes |
367 |
- epatch "${FILESDIR}"/${PN}-2.5.1-1302.patch |
368 |
- epatch "${FILESDIR}"/${PN}-2.5.1-1304.patch |
369 |
- |
370 |
- # disable default building of docs during install |
371 |
- sed -i \ |
372 |
- -e "s:install-doc install-examples:install-examples:" \ |
373 |
- config/Makefile.SH || die "Failed to fix makefile" |
374 |
- |
375 |
- # propagate ldflags |
376 |
- sed -i \ |
377 |
- -e 's/$shared $extra/$shared $extra \\$(LDFLAGS)/' \ |
378 |
- config/get_dlld || die "failed to fix LDFLAGS" |
379 |
- # move doc dir to a gentoo doc dir and replace acroread by xdg-open |
380 |
- sed -i \ |
381 |
- -e "s:\$d = \$0:\$d = '${EPREFIX}/usr/share/doc/${PF}':" \ |
382 |
- -e 's:"acroread":"xdg-open":' \ |
383 |
- doc/gphelp.in || die "Failed to fix doc dir" |
384 |
- |
385 |
- sed -i "s:/usr:${EPREFIX}/usr:g" config/get_X11 \ |
386 |
- || die "Failed to fix get_X11" |
387 |
- |
388 |
- # usersch3.tex is generated |
389 |
- rm -f doc/usersch3.tex || die "failed to remove generated file" |
390 |
-} |
391 |
- |
392 |
-src_configure() { |
393 |
- tc-export CC |
394 |
- |
395 |
- # need to force optimization here, as it breaks without |
396 |
- if is-flag -O0; then |
397 |
- replace-flags -O0 -O2 |
398 |
- elif ! is-flag -O?; then |
399 |
- append-flags -O2 |
400 |
- fi |
401 |
- |
402 |
- # sysdatadir installs a pari.cfg stuff which is informative only |
403 |
- ./Configure \ |
404 |
- --prefix="${EPREFIX}"/usr \ |
405 |
- --datadir="${EPREFIX}"/usr/share/${PN} \ |
406 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
407 |
- --sysdatadir="${EPREFIX}"/usr/share/doc/${PF} \ |
408 |
- --mandir="${EPREFIX}"/usr/share/man/man1 \ |
409 |
- --with-readline="${EPREFIX}"/usr \ |
410 |
- --with-ncurses-lib="${EPREFIX}"/usr/$(get_libdir) \ |
411 |
- $(use_with fltk) \ |
412 |
- $(use_with gmp) \ |
413 |
- $(use_with qt4 qt) \ |
414 |
- || die "./Configure failed" |
415 |
-} |
416 |
- |
417 |
-src_compile() { |
418 |
- local installdir=$(get_compile_dir) |
419 |
- cd "${installdir}" || die "failed to change directory" |
420 |
- # upstream set -fno-strict-aliasing. |
421 |
- # aliasing is a known issue on amd64, work on x86 by sheer luck |
422 |
- emake ${mymake} \ |
423 |
- CFLAGS="${CFLAGS} -fno-strict-aliasing -DGCC_INLINE -fPIC" lib-dyn |
424 |
- emake ${mymake} \ |
425 |
- CFLAGS="${CFLAGS} -DGCC_INLINE" gp ../gp |
426 |
- |
427 |
- if use doc; then |
428 |
- cd "${S}" || die "failed to change directory" |
429 |
- # To prevent sandbox violations by metafont |
430 |
- VARTEXFONTS="${T}"/fonts emake docpdf |
431 |
- fi |
432 |
-} |
433 |
- |
434 |
-src_test() { |
435 |
- emake dobench |
436 |
-} |
437 |
- |
438 |
-src_install() { |
439 |
- default |
440 |
- dodoc MACHINES COMPAT |
441 |
- if use doc; then |
442 |
- # install gphelp and the pdf documentations manually. |
443 |
- # the install-doc target is overkill. |
444 |
- dodoc doc/*.pdf |
445 |
- dobin doc/gphelp |
446 |
- insinto /usr/share/doc/${PF} |
447 |
- # gphelp looks for some of the tex sources... |
448 |
- doins doc/*.tex doc/translations |
449 |
- # Install the examples - for real. |
450 |
- local installdir=$(get_compile_dir) |
451 |
- cd "${installdir}" || die "failed to change directory" |
452 |
- emake EXDIR="${ED}/usr/share/doc/${PF}/examples" install-examples |
453 |
- fi |
454 |
-} |
455 |
|
456 |
diff --git a/sci-mathematics/pari/pari-2.5.1.ebuild b/sci-mathematics/pari/pari-2.5.1.ebuild |
457 |
deleted file mode 100644 |
458 |
index fb1efebef0c..00000000000 |
459 |
--- a/sci-mathematics/pari/pari-2.5.1.ebuild |
460 |
+++ /dev/null |
461 |
@@ -1,138 +0,0 @@ |
462 |
-# Copyright 1999-2017 Gentoo Foundation |
463 |
-# Distributed under the terms of the GNU General Public License v2 |
464 |
- |
465 |
-EAPI="4" |
466 |
- |
467 |
-inherit eutils flag-o-matic toolchain-funcs |
468 |
- |
469 |
-DESCRIPTION="A software package for computer-aided number theory" |
470 |
-HOMEPAGE="http://pari.math.u-bordeaux.fr/" |
471 |
-SRC_URI="http://pari.math.u-bordeaux.fr/pub/${PN}/unix/${P}.tar.gz" |
472 |
- |
473 |
-LICENSE="GPL-2" |
474 |
-SLOT="0" |
475 |
-KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris" |
476 |
-IUSE="doc data fltk gmp X" |
477 |
- |
478 |
-RDEPEND="sys-libs/readline |
479 |
- fltk? ( x11-libs/fltk:1 ) |
480 |
- gmp? ( dev-libs/gmp ) |
481 |
- X? ( x11-libs/libX11 ) |
482 |
- doc? ( X? ( x11-misc/xdg-utils ) ) |
483 |
- data? ( sci-mathematics/pari-data )" |
484 |
-DEPEND="${RDEPEND} |
485 |
- doc? ( virtual/latex-base )" |
486 |
- |
487 |
-get_compile_dir() { |
488 |
- pushd "${S}/config" > /dev/null |
489 |
- local fastread=yes |
490 |
- source ./get_archos |
491 |
- popd > /dev/null |
492 |
- echo "O${osname}-${arch}" |
493 |
-} |
494 |
- |
495 |
-src_prepare() { |
496 |
- epatch "${FILESDIR}/${PN}"-2.3.2-strip.patch |
497 |
- epatch "${FILESDIR}/${PN}"-2.3.2-ppc-powerpc-arch-fix.patch |
498 |
- # fix parallel make |
499 |
- epatch "${FILESDIR}/${PN}"-2.5.0-doc-make.patch |
500 |
- # sage error handling patch |
501 |
- epatch "${FILESDIR}/${PN}"-2.5.0-mp.c.patch |
502 |
- # OS X: add -install_name to the linker option |
503 |
- epatch "${FILESDIR}/${PN}"-2.5.0-macos.patch |
504 |
- # Fix Perl 5.26 |
505 |
- epatch "${FILESDIR}/"${PN}-2.5.0-no-dot-inc.patch |
506 |
- # from debian, fies bug #423617 |
507 |
- epatch "${FILESDIR}/${PN}"-2.5.1-gcc47.patch |
508 |
- |
509 |
- # disable default building of docs during install |
510 |
- sed -i \ |
511 |
- -e "s:install-doc install-examples:install-examples:" \ |
512 |
- config/Makefile.SH || die "Failed to fix makefile" |
513 |
- |
514 |
- # propagate ldflags |
515 |
- sed -i \ |
516 |
- -e 's/$shared $extra/$shared $extra \\$(LDFLAGS)/' \ |
517 |
- config/get_dlld || die "failed to fix LDFLAGS" |
518 |
- # move doc dir to a gentoo doc dir and replace acroread by xdg-open |
519 |
- sed -i \ |
520 |
- -e "s:\$d = \$0:\$d = '${EPREFIX}/usr/share/doc/${PF}':" \ |
521 |
- -e 's:"acroread":"xdg-open":' \ |
522 |
- doc/gphelp.in || die "Failed to fix doc dir" |
523 |
- |
524 |
- sed -i "s:/usr:${EPREFIX}/usr:g" config/get_X11 \ |
525 |
- || die "Failed to fix get_X11" |
526 |
- |
527 |
- # usersch3.tex is generated |
528 |
- rm -f doc/usersch3.tex || die "failed to remove generated file" |
529 |
-} |
530 |
- |
531 |
-src_configure() { |
532 |
- tc-export CC |
533 |
- |
534 |
- # need to force optimization here, as it breaks without |
535 |
- if is-flag -O0; then |
536 |
- replace-flags -O0 -O2 |
537 |
- elif ! is-flag -O?; then |
538 |
- append-flags -O2 |
539 |
- fi |
540 |
- |
541 |
- local myconfig |
542 |
- if use gmp ; then |
543 |
- myconfig="--with-gmp=${EPREFIX}/usr" |
544 |
- else |
545 |
- myconfig="--with-gmp=no" |
546 |
- fi |
547 |
- |
548 |
- # sysdatadir installs a pari.cfg stuff which is informative only |
549 |
- ./Configure \ |
550 |
- --prefix="${EPREFIX}"/usr \ |
551 |
- --datadir="${EPREFIX}"/usr/share/${PN} \ |
552 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
553 |
- --sysdatadir="${EPREFIX}"/usr/share/doc/${PF} \ |
554 |
- --mandir="${EPREFIX}"/usr/share/man/man1 \ |
555 |
- --with-readline="${EPREFIX}"/usr \ |
556 |
- --with-ncurses-lib="${EPREFIX}"/usr/$(get_libdir) \ |
557 |
- $myconfig \ |
558 |
- || die "./Configure failed" |
559 |
-} |
560 |
- |
561 |
-src_compile() { |
562 |
- local installdir=$(get_compile_dir) |
563 |
- cd "${installdir}" || die "failed to change directory" |
564 |
- |
565 |
- # upstream set -fno-strict-aliasing. |
566 |
- # aliasing is a known issue on amd64, work on x86 by sheer luck |
567 |
- emake ${mymake} \ |
568 |
- CFLAGS="${CFLAGS} -fno-strict-aliasing -DGCC_INLINE -fPIC" lib-dyn |
569 |
- emake ${mymake} \ |
570 |
- CFLAGS="${CFLAGS} -DGCC_INLINE" gp ../gp |
571 |
- |
572 |
- if use doc; then |
573 |
- cd "${S}" || die "failed to change directory" |
574 |
- # To prevent sandbox violations by metafont |
575 |
- VARTEXFONTS="${T}"/fonts emake docpdf |
576 |
- fi |
577 |
-} |
578 |
- |
579 |
-src_test() { |
580 |
- emake dobench |
581 |
-} |
582 |
- |
583 |
-src_install() { |
584 |
- default |
585 |
- dodoc MACHINES COMPAT |
586 |
- if use doc; then |
587 |
- # install gphelp and the pdf documentations manually. |
588 |
- # the install-doc target is overkill. |
589 |
- dodoc doc/*.pdf |
590 |
- dobin doc/gphelp |
591 |
- insinto /usr/share/doc/${PF} |
592 |
- # gphelp looks for some of the tex sources... |
593 |
- doins doc/*.tex doc/translations |
594 |
- # Install the examples - for real. |
595 |
- local installdir=$(get_compile_dir) |
596 |
- cd "${installdir}" || die "failed to change directory" |
597 |
- emake EXDIR="${ED}/usr/share/doc/${PF}/examples" install-examples |
598 |
- fi |
599 |
-} |
600 |
|
601 |
diff --git a/sci-mathematics/pari/pari-2.5.2.ebuild b/sci-mathematics/pari/pari-2.5.2.ebuild |
602 |
deleted file mode 100644 |
603 |
index 3bc68a6ccdc..00000000000 |
604 |
--- a/sci-mathematics/pari/pari-2.5.2.ebuild |
605 |
+++ /dev/null |
606 |
@@ -1,134 +0,0 @@ |
607 |
-# Copyright 1999-2017 Gentoo Foundation |
608 |
-# Distributed under the terms of the GNU General Public License v2 |
609 |
- |
610 |
-EAPI=4 |
611 |
- |
612 |
-inherit eutils flag-o-matic toolchain-funcs multilib |
613 |
- |
614 |
-DESCRIPTION="A software package for computer-aided number theory" |
615 |
-HOMEPAGE="http://pari.math.u-bordeaux.fr/" |
616 |
-SRC_URI="http://pari.math.u-bordeaux.fr/pub/${PN}/unix/${P}.tar.gz" |
617 |
- |
618 |
-LICENSE="GPL-2" |
619 |
-SLOT="0" |
620 |
-KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-fbsd ~x86-linux ~x86-macos ~x86-solaris" |
621 |
-IUSE="data doc fltk gmp qt4 X" |
622 |
- |
623 |
-RDEPEND="sys-libs/readline |
624 |
- data? ( sci-mathematics/pari-data ) |
625 |
- doc? ( X? ( x11-misc/xdg-utils ) ) |
626 |
- fltk? ( x11-libs/fltk:1 ) |
627 |
- gmp? ( dev-libs/gmp ) |
628 |
- qt4? ( dev-qt/qtgui:4 ) |
629 |
- X? ( x11-libs/libX11 )" |
630 |
-DEPEND="${RDEPEND} |
631 |
- doc? ( virtual/latex-base )" |
632 |
- |
633 |
-get_compile_dir() { |
634 |
- pushd "${S}/config" > /dev/null |
635 |
- local fastread=yes |
636 |
- source ./get_archos |
637 |
- popd > /dev/null |
638 |
- echo "O${osname}-${arch}" |
639 |
-} |
640 |
- |
641 |
-src_prepare() { |
642 |
- epatch "${FILESDIR}"/${PN}-2.3.2-strip.patch |
643 |
- epatch "${FILESDIR}"/${PN}-2.3.2-ppc-powerpc-arch-fix.patch |
644 |
- # fix parallel make |
645 |
- epatch "${FILESDIR}"/${PN}-2.5.0-doc-make.patch |
646 |
- # sage error handling patch |
647 |
- epatch "${FILESDIR}"/${PN}-2.5.0-mp.c.patch |
648 |
- # OS X: add -install_name to the linker option |
649 |
- epatch "${FILESDIR}"/${PN}-2.5.0-macos.patch |
650 |
- # Fix Perl 5.26 |
651 |
- epatch "${FILESDIR}/"${PN}-2.5.0-no-dot-inc.patch |
652 |
- # fix automagic |
653 |
- epatch "${FILESDIR}"/${PN}-2.5.1-no-automagic.patch |
654 |
- |
655 |
- # disable default building of docs during install |
656 |
- sed -i \ |
657 |
- -e "s:install-doc install-examples:install-examples:" \ |
658 |
- config/Makefile.SH || die "Failed to fix makefile" |
659 |
- |
660 |
- # propagate ldflags |
661 |
- sed -i \ |
662 |
- -e 's/$shared $extra/$shared $extra \\$(LDFLAGS)/' \ |
663 |
- config/get_dlld || die "failed to fix LDFLAGS" |
664 |
- # move doc dir to a gentoo doc dir and replace acroread by xdg-open |
665 |
- sed -i \ |
666 |
- -e "s:\$d = \$0:\$d = '${EPREFIX}/usr/share/doc/${PF}':" \ |
667 |
- -e 's:"acroread":"xdg-open":' \ |
668 |
- doc/gphelp.in || die "Failed to fix doc dir" |
669 |
- |
670 |
- sed -i "s:/\(usr\|lib64\):${EPREFIX}/\1:g" \ |
671 |
- config/get_{Qt,X11,include_path,libpth} \ |
672 |
- || die "Failed to fix get_X11" |
673 |
- |
674 |
- # usersch3.tex is generated |
675 |
- rm doc/usersch3.tex || die "failed to remove generated file" |
676 |
-} |
677 |
- |
678 |
-src_configure() { |
679 |
- tc-export CC |
680 |
- |
681 |
- # need to force optimization here, as it breaks without |
682 |
- if is-flag -O0; then |
683 |
- replace-flags -O0 -O2 |
684 |
- elif ! is-flag -O?; then |
685 |
- append-flags -O2 |
686 |
- fi |
687 |
- |
688 |
- # sysdatadir installs a pari.cfg stuff which is informative only |
689 |
- ./Configure \ |
690 |
- --prefix="${EPREFIX}"/usr \ |
691 |
- --datadir="${EPREFIX}"/usr/share/${PN} \ |
692 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
693 |
- --sysdatadir="${EPREFIX}"/usr/share/doc/${PF} \ |
694 |
- --mandir="${EPREFIX}"/usr/share/man/man1 \ |
695 |
- --with-readline="${EPREFIX}"/usr \ |
696 |
- --with-ncurses-lib="${EPREFIX}"/usr/$(get_libdir) \ |
697 |
- $(use_with fltk) \ |
698 |
- $(use_with gmp) \ |
699 |
- $(use_with qt4 qt) \ |
700 |
- || die "./Configure failed" |
701 |
-} |
702 |
- |
703 |
-src_compile() { |
704 |
- local installdir=$(get_compile_dir) |
705 |
- cd "${installdir}" || die "failed to change directory" |
706 |
- # upstream set -fno-strict-aliasing. |
707 |
- # aliasing is a known issue on amd64, work on x86 by sheer luck |
708 |
- emake ${mymake} \ |
709 |
- CFLAGS="${CFLAGS} -fno-strict-aliasing -DGCC_INLINE -fPIC" lib-dyn |
710 |
- emake ${mymake} \ |
711 |
- CFLAGS="${CFLAGS} -DGCC_INLINE" gp ../gp |
712 |
- |
713 |
- if use doc; then |
714 |
- cd "${S}" || die "failed to change directory" |
715 |
- # To prevent sandbox violations by metafont |
716 |
- VARTEXFONTS="${T}"/fonts emake docpdf |
717 |
- fi |
718 |
-} |
719 |
- |
720 |
-src_test() { |
721 |
- emake dobench |
722 |
-} |
723 |
- |
724 |
-src_install() { |
725 |
- default |
726 |
- dodoc MACHINES COMPAT |
727 |
- if use doc; then |
728 |
- # install gphelp and the pdf documentations manually. |
729 |
- # the install-doc target is overkill. |
730 |
- dodoc doc/*.pdf |
731 |
- dobin doc/gphelp |
732 |
- insinto /usr/share/doc/${PF} |
733 |
- # gphelp looks for some of the tex sources... |
734 |
- doins doc/*.tex doc/translations |
735 |
- # Install the examples - for real. |
736 |
- local installdir=$(get_compile_dir) |
737 |
- cd "${installdir}" || die "failed to change directory" |
738 |
- emake EXDIR="${ED}/usr/share/doc/${PF}/examples" install-examples |
739 |
- fi |
740 |
-} |
741 |
|
742 |
diff --git a/sci-mathematics/pari/pari-2.5.3.ebuild b/sci-mathematics/pari/pari-2.5.3.ebuild |
743 |
deleted file mode 100644 |
744 |
index 8f42ea7f9a8..00000000000 |
745 |
--- a/sci-mathematics/pari/pari-2.5.3.ebuild |
746 |
+++ /dev/null |
747 |
@@ -1,134 +0,0 @@ |
748 |
-# Copyright 1999-2017 Gentoo Foundation |
749 |
-# Distributed under the terms of the GNU General Public License v2 |
750 |
- |
751 |
-EAPI=4 |
752 |
- |
753 |
-inherit eutils flag-o-matic toolchain-funcs multilib |
754 |
- |
755 |
-DESCRIPTION="A software package for computer-aided number theory" |
756 |
-HOMEPAGE="http://pari.math.u-bordeaux.fr/" |
757 |
-SRC_URI="http://pari.math.u-bordeaux.fr/pub/${PN}/unix/${P}.tar.gz" |
758 |
- |
759 |
-LICENSE="GPL-2" |
760 |
-SLOT="0" |
761 |
-KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris" |
762 |
-IUSE="data doc fltk gmp qt4 X" |
763 |
- |
764 |
-RDEPEND="sys-libs/readline |
765 |
- data? ( sci-mathematics/pari-data ) |
766 |
- doc? ( X? ( x11-misc/xdg-utils ) ) |
767 |
- fltk? ( x11-libs/fltk:1 ) |
768 |
- gmp? ( dev-libs/gmp ) |
769 |
- qt4? ( dev-qt/qtgui:4 ) |
770 |
- X? ( x11-libs/libX11 )" |
771 |
-DEPEND="${RDEPEND} |
772 |
- doc? ( virtual/latex-base )" |
773 |
- |
774 |
-get_compile_dir() { |
775 |
- pushd "${S}/config" > /dev/null |
776 |
- local fastread=yes |
777 |
- source ./get_archos |
778 |
- popd > /dev/null |
779 |
- echo "O${osname}-${arch}" |
780 |
-} |
781 |
- |
782 |
-src_prepare() { |
783 |
- epatch "${FILESDIR}"/${PN}-2.3.2-strip.patch |
784 |
- epatch "${FILESDIR}"/${PN}-2.3.2-ppc-powerpc-arch-fix.patch |
785 |
- # fix parallel make |
786 |
- epatch "${FILESDIR}"/${PN}-2.5.0-doc-make.patch |
787 |
- # sage error handling patch |
788 |
- epatch "${FILESDIR}"/${PN}-2.5.0-mp.c.patch |
789 |
- # OS X: add -install_name to the linker option |
790 |
- epatch "${FILESDIR}"/${PN}-2.5.0-macos.patch |
791 |
- # Fix Perl 5.26 |
792 |
- epatch "${FILESDIR}/"${PN}-2.5.0-no-dot-inc.patch |
793 |
- # fix automagic |
794 |
- epatch "${FILESDIR}"/${PN}-2.5.1-no-automagic.patch |
795 |
- |
796 |
- # disable default building of docs during install |
797 |
- sed -i \ |
798 |
- -e "s:install-doc install-examples:install-examples:" \ |
799 |
- config/Makefile.SH || die "Failed to fix makefile" |
800 |
- |
801 |
- # propagate ldflags |
802 |
- sed -i \ |
803 |
- -e 's/$shared $extra/$shared $extra \\$(LDFLAGS)/' \ |
804 |
- config/get_dlld || die "failed to fix LDFLAGS" |
805 |
- # move doc dir to a gentoo doc dir and replace acroread by xdg-open |
806 |
- sed -i \ |
807 |
- -e "s:\$d = \$0:\$d = '${EPREFIX}/usr/share/doc/${PF}':" \ |
808 |
- -e 's:"acroread":"xdg-open":' \ |
809 |
- doc/gphelp.in || die "Failed to fix doc dir" |
810 |
- |
811 |
- sed -i "s:/\(usr\|lib64\):${EPREFIX}/\1:g" \ |
812 |
- config/get_{Qt,X11,include_path,libpth} \ |
813 |
- || die "Failed to fix get_X11" |
814 |
- |
815 |
- # usersch3.tex is generated |
816 |
- rm doc/usersch3.tex || die "failed to remove generated file" |
817 |
-} |
818 |
- |
819 |
-src_configure() { |
820 |
- tc-export CC |
821 |
- |
822 |
- # need to force optimization here, as it breaks without |
823 |
- if is-flag -O0; then |
824 |
- replace-flags -O0 -O2 |
825 |
- elif ! is-flag -O?; then |
826 |
- append-flags -O2 |
827 |
- fi |
828 |
- |
829 |
- # sysdatadir installs a pari.cfg stuff which is informative only |
830 |
- ./Configure \ |
831 |
- --prefix="${EPREFIX}"/usr \ |
832 |
- --datadir="${EPREFIX}"/usr/share/${PN} \ |
833 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
834 |
- --sysdatadir="${EPREFIX}"/usr/share/doc/${PF} \ |
835 |
- --mandir="${EPREFIX}"/usr/share/man/man1 \ |
836 |
- --with-readline="${EPREFIX}"/usr \ |
837 |
- --with-ncurses-lib="${EPREFIX}"/usr/$(get_libdir) \ |
838 |
- $(use_with fltk) \ |
839 |
- $(use_with gmp) \ |
840 |
- $(use_with qt4 qt) \ |
841 |
- || die "./Configure failed" |
842 |
-} |
843 |
- |
844 |
-src_compile() { |
845 |
- local installdir=$(get_compile_dir) |
846 |
- cd "${installdir}" || die "failed to change directory" |
847 |
- # upstream set -fno-strict-aliasing. |
848 |
- # aliasing is a known issue on amd64, work on x86 by sheer luck |
849 |
- emake ${mymake} \ |
850 |
- CFLAGS="${CFLAGS} -fno-strict-aliasing -DGCC_INLINE -fPIC" lib-dyn |
851 |
- emake ${mymake} \ |
852 |
- CFLAGS="${CFLAGS} -DGCC_INLINE" gp ../gp |
853 |
- |
854 |
- if use doc; then |
855 |
- cd "${S}" || die "failed to change directory" |
856 |
- # To prevent sandbox violations by metafont |
857 |
- VARTEXFONTS="${T}"/fonts emake docpdf |
858 |
- fi |
859 |
-} |
860 |
- |
861 |
-src_test() { |
862 |
- emake dobench |
863 |
-} |
864 |
- |
865 |
-src_install() { |
866 |
- default |
867 |
- dodoc MACHINES COMPAT |
868 |
- if use doc; then |
869 |
- # install gphelp and the pdf documentations manually. |
870 |
- # the install-doc target is overkill. |
871 |
- dodoc doc/*.pdf |
872 |
- dobin doc/gphelp |
873 |
- insinto /usr/share/doc/${PF} |
874 |
- # gphelp looks for some of the tex sources... |
875 |
- doins doc/*.tex doc/translations |
876 |
- # Install the examples - for real. |
877 |
- local installdir=$(get_compile_dir) |
878 |
- cd "${installdir}" || die "failed to change directory" |
879 |
- emake EXDIR="${ED}/usr/share/doc/${PF}/examples" install-examples |
880 |
- fi |
881 |
-} |
882 |
|
883 |
diff --git a/sci-mathematics/pari/pari-2.7.0.ebuild b/sci-mathematics/pari/pari-2.7.0.ebuild |
884 |
deleted file mode 100644 |
885 |
index 5553fa2865b..00000000000 |
886 |
--- a/sci-mathematics/pari/pari-2.7.0.ebuild |
887 |
+++ /dev/null |
888 |
@@ -1,134 +0,0 @@ |
889 |
-# Copyright 1999-2017 Gentoo Foundation |
890 |
-# Distributed under the terms of the GNU General Public License v2 |
891 |
- |
892 |
-EAPI=5 |
893 |
- |
894 |
-inherit eutils flag-o-matic toolchain-funcs multilib |
895 |
- |
896 |
-DESCRIPTION="Computer-aided number theory C library and tools" |
897 |
-HOMEPAGE="http://pari.math.u-bordeaux.fr/" |
898 |
-SRC_URI="http://pari.math.u-bordeaux.fr/pub/${PN}/unix/${P}.tar.gz" |
899 |
- |
900 |
-LICENSE="GPL-2" |
901 |
-SLOT="0/4" |
902 |
-KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-fbsd ~x86-linux ~x86-macos ~x86-solaris" |
903 |
-IUSE="data doc fltk gmp qt4 X" |
904 |
- |
905 |
-RDEPEND=" |
906 |
- sys-libs/readline:0= |
907 |
- data? ( sci-mathematics/pari-data ) |
908 |
- doc? ( X? ( x11-misc/xdg-utils ) ) |
909 |
- fltk? ( x11-libs/fltk:1= ) |
910 |
- gmp? ( dev-libs/gmp:0= ) |
911 |
- qt4? ( dev-qt/qtgui:4= ) |
912 |
- X? ( x11-libs/libX11:0= )" |
913 |
-DEPEND="${RDEPEND} |
914 |
- doc? ( virtual/latex-base )" |
915 |
- |
916 |
-get_compile_dir() { |
917 |
- pushd "${S}/config" > /dev/null |
918 |
- local fastread=yes |
919 |
- source ./get_archos |
920 |
- popd > /dev/null |
921 |
- echo "O${osname}-${arch}" |
922 |
-} |
923 |
- |
924 |
-src_prepare() { |
925 |
- epatch "${FILESDIR}"/${PN}-2.3.2-strip.patch |
926 |
- epatch "${FILESDIR}"/${PN}-2.3.2-ppc-powerpc-arch-fix.patch |
927 |
- # fix parallel make |
928 |
- epatch "${FILESDIR}"/${PN}-2.7.0-doc-make.patch |
929 |
- # fix automagic |
930 |
- epatch "${FILESDIR}"/${PN}-2.7.0-no-automagic.patch |
931 |
- # sage-on-gentoo trac 15654: PARI discriminant speed depends on stack size |
932 |
- epatch "${FILESDIR}"/${PN}-2.7.0-slow-discriminant.patch |
933 |
- # Fix Perl 5.26 |
934 |
- epatch "${FILESDIR}/"${PN}-2.7.0-no-dot-inc.patch |
935 |
- |
936 |
- # disable default building of docs during install |
937 |
- sed -i \ |
938 |
- -e "s:install-doc install-examples:install-examples:" \ |
939 |
- config/Makefile.SH || die "Failed to fix makefile" |
940 |
- |
941 |
- # propagate ldflags |
942 |
- sed -i \ |
943 |
- -e 's/$shared $extra/$shared $extra \\$(LDFLAGS)/' \ |
944 |
- config/get_dlld || die "failed to fix LDFLAGS" |
945 |
- # move doc dir to a gentoo doc dir and replace acroread by xdg-open |
946 |
- sed -i \ |
947 |
- -e "s:\$d = \$0:\$d = '${EPREFIX}/usr/share/doc/${PF}':" \ |
948 |
- -e 's:"acroread":"xdg-open":' \ |
949 |
- doc/gphelp.in || die "Failed to fix doc dir" |
950 |
- |
951 |
- # usersch3.tex is generated |
952 |
- rm doc/usersch3.tex || die "failed to remove generated file" |
953 |
-} |
954 |
- |
955 |
-src_configure() { |
956 |
- tc-export CC |
957 |
- export CPLUSPLUS=$(tc-getCXX) |
958 |
- |
959 |
- # need to force optimization here, as it breaks without |
960 |
- if is-flag -O0; then |
961 |
- replace-flags -O0 -O2 |
962 |
- elif ! is-flag -O?; then |
963 |
- append-flags -O2 |
964 |
- fi |
965 |
- |
966 |
- # sysdatadir installs a pari.cfg stuff which is informative only |
967 |
- ./Configure \ |
968 |
- --prefix="${EPREFIX}"/usr \ |
969 |
- --datadir="${EPREFIX}"/usr/share/${PN} \ |
970 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
971 |
- --sysdatadir="${EPREFIX}"/usr/share/doc/${PF} \ |
972 |
- --mandir="${EPREFIX}"/usr/share/man/man1 \ |
973 |
- --with-readline="${EPREFIX}"/usr \ |
974 |
- --with-ncurses-lib="${EPREFIX}"/usr/$(get_libdir) \ |
975 |
- $(use_with fltk) \ |
976 |
- $(use_with gmp) \ |
977 |
- $(use_with qt4 qt) \ |
978 |
- || die "./Configure failed" |
979 |
-} |
980 |
- |
981 |
-src_compile() { |
982 |
- use hppa && \ |
983 |
- mymake=DLLD\="${EPREFIX}"/usr/bin/gcc\ DLLDFLAGS\=-shared\ -Wl,-soname=\$\(LIBPARI_SONAME\)\ -lm |
984 |
- |
985 |
- mycxxmake=LD\=$(tc-getCXX) |
986 |
- |
987 |
- local installdir=$(get_compile_dir) |
988 |
- cd "${installdir}" || die "failed to change directory" |
989 |
- # upstream set -fno-strict-aliasing. |
990 |
- # aliasing is a known issue on amd64, work on x86 by sheer luck |
991 |
- emake ${mymake} \ |
992 |
- CFLAGS="${CFLAGS} -fno-strict-aliasing -DGCC_INLINE -fPIC" lib-dyn |
993 |
- emake ${mymake} ${mycxxmake} \ |
994 |
- CFLAGS="${CFLAGS} -DGCC_INLINE" gp ../gp |
995 |
- |
996 |
- if use doc; then |
997 |
- cd "${S}" || die "failed to change directory" |
998 |
- # To prevent sandbox violations by metafont |
999 |
- VARTEXFONTS="${T}"/fonts emake docpdf |
1000 |
- fi |
1001 |
-} |
1002 |
- |
1003 |
-src_test() { |
1004 |
- emake dobench |
1005 |
-} |
1006 |
- |
1007 |
-src_install() { |
1008 |
- emake ${mymake} ${mycxxmake} DESTDIR="${D}" install |
1009 |
- dodoc MACHINES COMPAT |
1010 |
- if use doc; then |
1011 |
- # install gphelp and the pdf documentations manually. |
1012 |
- # the install-doc target is overkill. |
1013 |
- dodoc doc/*.pdf |
1014 |
- dobin doc/gphelp |
1015 |
- insinto /usr/share/doc/${PF} |
1016 |
- # gphelp looks for some of the tex sources... |
1017 |
- doins doc/*.tex doc/translations |
1018 |
- # Install the examples - for real. |
1019 |
- emake EXDIR="${ED}/usr/share/doc/${PF}/examples" \ |
1020 |
- -C $(get_compile_dir) install-examples |
1021 |
- fi |
1022 |
-} |