1 |
commit: e954c188b17b8fb279bfadf1051de87bad4cbae3 |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 31 05:13:52 2017 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 31 05:13:52 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e954c188 |
7 |
|
8 |
sci-mathematics/maxima: clean 5.37.3-r4, 5.39.0, 5.40.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
sci-mathematics/maxima/Manifest | 3 - |
13 |
sci-mathematics/maxima/files/db-0.patch | 20 --- |
14 |
sci-mathematics/maxima/files/sbcl-1.patch | 18 --- |
15 |
sci-mathematics/maxima/maxima-5.37.3-r4.ebuild | 208 ------------------------- |
16 |
sci-mathematics/maxima/maxima-5.39.0.ebuild | 208 ------------------------- |
17 |
sci-mathematics/maxima/maxima-5.40.0.ebuild | 208 ------------------------- |
18 |
6 files changed, 665 deletions(-) |
19 |
|
20 |
diff --git a/sci-mathematics/maxima/Manifest b/sci-mathematics/maxima/Manifest |
21 |
index fbdaef9a84b..47cab5b50ef 100644 |
22 |
--- a/sci-mathematics/maxima/Manifest |
23 |
+++ b/sci-mathematics/maxima/Manifest |
24 |
@@ -1,5 +1,2 @@ |
25 |
-DIST maxima-5.37.3.tar.gz 29964644 BLAKE2B 8f98de6cd331fe6306298f962da953c3dd90a4d44f2ab062117eff42f1d63a82db92232d14fe48997241acc34cb9d7af2e997e8df215a49ba1df75702f650f92 SHA512 a337afdc779abc88297e7dadf8af949da881c91a237e85ed654046c98692f2446c0b2ddb8c81b637cb7a35dd3b712832aadc5dedcaa8b681496dae4835c9d0f1 |
26 |
DIST maxima-5.38.1.tar.gz 38641257 BLAKE2B 0244b5dbdd337e64d4f7c3e7f6b946463b0246a9fd0660588798f7891fd1599cf400369fe0d1ce3433d01ce2e4b8bc86ad405d3f8368b429cd028362ec66a1b4 SHA512 abca10984dbb22a48bae481b2e803cb5bee6776e974b4bb9271773aa035fb5e49f34b2458aabca01f0a681a07179e57c012273be6f8d53c615b3309b1034abf9 |
27 |
-DIST maxima-5.39.0.tar.gz 38652090 BLAKE2B 13642beb12e5ca5d3284abc0f7a7a0f00913e22b224f5f6fbca24a75445371fb46131ad32c48e539143524b79a32cda307be94642daf6287a050b99559b18246 SHA512 393ade47fc3832ee44df7bf0c3bd2e501755167ec0f02d50d5876e7cf54fe682f2ebf2511290fa498d174e55961451e61ea5c1c5f6e5f9e6d04ad73d45a5d2a9 |
28 |
-DIST maxima-5.40.0.tar.gz 41668208 BLAKE2B da33cbfb655419cee697dd74861256f4b77b2d52b0a19869010781008d50c6841259db74d95b283e25a9827fc47e340f24c5b0d781f548eae039fdea3d98d310 SHA512 7aa36ae56c289e1cc6bb1722a6ee93fed5bf893747a26bb52a48f93cd02d65b63c453f37dc2c86ab4596ad192150aed9ad6b361ab295eda5207d9633c07cdee6 |
29 |
DIST maxima-5.41.0.tar.gz 41540226 BLAKE2B ff726044c9026bc58d04832fa6382146ed7e7d61d801fa7131b1e7e2ed386b99e238e039481697f9aa24cea59ffd0f6811675cd28818c9fe53f023f965f9d149 SHA512 1b93ae2db055ba7fb4a95924a896667f0cfa1c675c603c104181662aeb32b10b006158526b2f3ad93a59688a23eacdc82e870bb8ffb182a89e1e51de013ec209 |
30 |
|
31 |
diff --git a/sci-mathematics/maxima/files/db-0.patch b/sci-mathematics/maxima/files/db-0.patch |
32 |
deleted file mode 100644 |
33 |
index d6cc18617cc..00000000000 |
34 |
--- a/sci-mathematics/maxima/files/db-0.patch |
35 |
+++ /dev/null |
36 |
@@ -1,20 +0,0 @@ |
37 |
-diff -r -U2 maxima-5.37.1.orig/src/db.lisp maxima-5.37.1/src/db.lisp |
38 |
---- maxima-5.37.1.orig/src/db.lisp 2015-08-11 01:01:13.000000000 +0600 |
39 |
-+++ maxima-5.37.1/src/db.lisp 2015-09-04 00:21:43.596685564 +0600 |
40 |
-@@ -389,10 +389,14 @@ |
41 |
- |
42 |
- (defmfun isp (pat) |
43 |
-- (let ((isp 'unknown)) |
44 |
-+ (let ((isp 'unknown) #+ccl (err t)) |
45 |
- (ignore-errors |
46 |
- (setq isp |
47 |
- (cond ((truep pat)) |
48 |
- ((falsep pat) nil) |
49 |
-- (t 'unknown)))) |
50 |
-+ (t 'unknown))) |
51 |
-+ (setq err nil)) |
52 |
-+ #+ccl |
53 |
-+ (when err |
54 |
-+ (setq +labs nil)) |
55 |
- isp)) |
56 |
- |
57 |
|
58 |
diff --git a/sci-mathematics/maxima/files/sbcl-1.patch b/sci-mathematics/maxima/files/sbcl-1.patch |
59 |
deleted file mode 100644 |
60 |
index 8899f097370..00000000000 |
61 |
--- a/sci-mathematics/maxima/files/sbcl-1.patch |
62 |
+++ /dev/null |
63 |
@@ -1,18 +0,0 @@ |
64 |
-diff -r -U1 maxima-5.37.1.orig/src/maxima.in maxima-5.37.1/src/maxima.in |
65 |
---- maxima-5.37.1.orig/src/maxima.in 2015-05-22 04:40:03.000000000 +0600 |
66 |
-+++ maxima-5.37.1/src/maxima.in 2015-09-03 16:22:57.340893630 +0600 |
67 |
-@@ -193,5 +193,5 @@ |
68 |
- if [ -x "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" ]; then |
69 |
-- exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" --noinform $MAXIMA_LISP_OPTIONS --end-runtime-options --eval '(cl-user::run)' --end-toplevel-options "$@" |
70 |
-+ exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" --noinform $MAXIMA_LISP_OPTIONS --end-runtime-options --no-sysinit --no-userinit --eval '(cl-user::run)' --end-toplevel-options "$@" |
71 |
- else |
72 |
-- exec "@SBCL_NAME@" --core "$maxima_image_base.core" --noinform $MAXIMA_LISP_OPTIONS --end-runtime-options --eval '(cl-user::run)' --end-toplevel-options "$@" |
73 |
-+ exec "@SBCL_NAME@" --core "$maxima_image_base.core" --noinform $MAXIMA_LISP_OPTIONS --end-runtime-options --no-sysinit --no-userinit --eval '(cl-user::run)' --end-toplevel-options "$@" |
74 |
- fi |
75 |
-diff -r -U1 maxima-5.37.1.orig/src/server.lisp maxima-5.37.1/src/server.lisp |
76 |
---- maxima-5.37.1.orig/src/server.lisp 2015-04-10 01:41:59.000000000 +0600 |
77 |
-+++ maxima-5.37.1/src/server.lisp 2015-09-03 16:23:47.100891537 +0600 |
78 |
-@@ -10,3 +10,2 @@ |
79 |
- (eval-when (:compile-toplevel :load-toplevel :execute) |
80 |
-- #+sbcl (require 'asdf) ;not needed here for a recent SBCL |
81 |
- #+sbcl (require 'sb-posix) |
82 |
|
83 |
diff --git a/sci-mathematics/maxima/maxima-5.37.3-r4.ebuild b/sci-mathematics/maxima/maxima-5.37.3-r4.ebuild |
84 |
deleted file mode 100644 |
85 |
index 93b6c5ed938..00000000000 |
86 |
--- a/sci-mathematics/maxima/maxima-5.37.3-r4.ebuild |
87 |
+++ /dev/null |
88 |
@@ -1,208 +0,0 @@ |
89 |
-# Copyright 1999-2015 Gentoo Foundation |
90 |
-# Distributed under the terms of the GNU General Public License v2 |
91 |
- |
92 |
-EAPI=5 |
93 |
- |
94 |
-inherit autotools elisp-common eutils |
95 |
- |
96 |
-DESCRIPTION="Free computer algebra environment based on Macsyma" |
97 |
-HOMEPAGE="http://maxima.sourceforge.net/" |
98 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
99 |
- |
100 |
-LICENSE="GPL-2 GPL-2+" |
101 |
-SLOT="0" |
102 |
-KEYWORDS="amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
103 |
- |
104 |
-# Supported lisps |
105 |
-LISPS=( sbcl cmucl gcl ecls clozurecl clisp ) |
106 |
-# <lisp> supports readline: . - no, y - yes |
107 |
-SUPP_RL=( . . y . . y ) |
108 |
-# . - just --enable-<lisp>, <flag> - --enable-<flag> |
109 |
-CONF_FLAG=( . . . ecl ccl . ) |
110 |
-# patch file version; . - no patch |
111 |
-PATCH_V=( 1 1 . 2 2 1 ) |
112 |
- |
113 |
-IUSE="emacs tk nls unicode X ${LISPS[*]}" |
114 |
- |
115 |
-# Languages |
116 |
-LANGS="de es pt pt_BR" |
117 |
-for lang in ${LANGS}; do |
118 |
- IUSE="${IUSE} linguas_${lang}" |
119 |
-done |
120 |
- |
121 |
-# texlive-latexrecommended needed by imaxima for breqn.sty |
122 |
-RDEPEND="!app-emacs/imaxima |
123 |
- X? ( x11-misc/xdg-utils |
124 |
- sci-visualization/gnuplot[gd] |
125 |
- tk? ( dev-lang/tk:0 ) ) |
126 |
- emacs? ( virtual/emacs |
127 |
- virtual/latex-base |
128 |
- app-emacs/auctex |
129 |
- app-text/ghostscript-gpl |
130 |
- dev-texlive/texlive-latexrecommended )" |
131 |
- |
132 |
-# generating lisp dependencies |
133 |
-depends() { |
134 |
- local LISP DEP |
135 |
- LISP=${LISPS[$1]} |
136 |
- DEP="dev-lisp/${LISP}:=" |
137 |
- if [ "${SUPP_RL[$1]}" = "." ]; then |
138 |
- DEP="${DEP} app-misc/rlwrap" |
139 |
- fi |
140 |
- echo ${DEP} |
141 |
-} |
142 |
- |
143 |
-n=${#LISPS[*]} |
144 |
-for ((n--; n >= 0; n--)); do |
145 |
- LISP=${LISPS[${n}]} |
146 |
- RDEPEND="${RDEPEND} ${LISP}? ( $(depends ${n}) )" |
147 |
- DEF_DEP="${DEF_DEP} !${LISP}? ( " |
148 |
-done |
149 |
- |
150 |
-# default lisp |
151 |
-DEF_LISP=0 # sbcl |
152 |
-ARM_LISP=2 # gcl |
153 |
-DEF_DEP="${DEF_DEP} arm? ( `depends ${ARM_LISP}` ) !arm? ( `depends ${DEF_LISP}` )" |
154 |
- |
155 |
-n=${#LISPS[*]} |
156 |
-for ((n--; n >= 0; n--)); do |
157 |
- DEF_DEP="${DEF_DEP} )" |
158 |
-done |
159 |
- |
160 |
-unset LISP |
161 |
- |
162 |
-RDEPEND="${RDEPEND} |
163 |
- ${DEF_DEP}" |
164 |
- |
165 |
-DEPEND="${RDEPEND} |
166 |
- sys-apps/texinfo" |
167 |
- |
168 |
-TEXMF="${EPREFIX}"/usr/share/texmf-site |
169 |
- |
170 |
-pkg_setup() { |
171 |
- local n=${#LISPS[*]} |
172 |
- |
173 |
- for ((n--; n >= 0; n--)); do |
174 |
- use ${LISPS[${n}]} && NLISPS="${NLISPS} ${n}" |
175 |
- done |
176 |
- |
177 |
- if [ -z "${NLISPS}" ]; then |
178 |
- use arm && DEF_LISP=${ARM_LISP} |
179 |
- ewarn "No lisp specified in USE flags, choosing ${LISPS[${DEF_LISP}]} as default" |
180 |
- NLISPS=${DEF_LISP} |
181 |
- fi |
182 |
-} |
183 |
- |
184 |
-src_prepare() { |
185 |
- local n PATCHES v |
186 |
- PATCHES=( emacs-0 rmaxima-0 wish-2 xdg-utils-0 db-0 ) |
187 |
- |
188 |
- n=${#PATCHES[*]} |
189 |
- for ((n--; n >= 0; n--)); do |
190 |
- epatch "${FILESDIR}"/${PATCHES[${n}]}.patch |
191 |
- done |
192 |
- |
193 |
- n=${#LISPS[*]} |
194 |
- for ((n--; n >= 0; n--)); do |
195 |
- v=${PATCH_V[${n}]} |
196 |
- if [ "${v}" != "." ]; then |
197 |
- epatch "${FILESDIR}"/${LISPS[${n}]}-${v}.patch |
198 |
- fi |
199 |
- done |
200 |
- |
201 |
- # bug #343331 |
202 |
- rm share/Makefile.in || die |
203 |
- rm src/Makefile.in || die |
204 |
- touch src/*.mk |
205 |
- touch src/Makefile.am |
206 |
- eautoreconf |
207 |
-} |
208 |
- |
209 |
-src_configure() { |
210 |
- local CONFS CONF n lang |
211 |
- for n in ${NLISPS}; do |
212 |
- CONF=${CONF_FLAG[${n}]} |
213 |
- if [ ${CONF} = . ]; then |
214 |
- CONF=${LISPS[${n}]} |
215 |
- fi |
216 |
- CONFS="${CONFS} --enable-${CONF}" |
217 |
- done |
218 |
- |
219 |
- # enable existing translated doc |
220 |
- if use nls; then |
221 |
- for lang in ${LANGS}; do |
222 |
- if use "linguas_${lang}"; then |
223 |
- CONFS="${CONFS} --enable-lang-${lang}" |
224 |
- use unicode && CONFS="${CONFS} --enable-lang-${lang}-utf8" |
225 |
- fi |
226 |
- done |
227 |
- fi |
228 |
- |
229 |
- econf ${CONFS} \ |
230 |
- $(use_with tk wish) \ |
231 |
- $(use_enable emacs) \ |
232 |
- --with-lispdir="${EPREFIX}/${SITELISP}/${PN}" |
233 |
-} |
234 |
- |
235 |
-src_compile() { |
236 |
- emake |
237 |
- if use emacs; then |
238 |
- pushd interfaces/emacs/emaxima > /dev/null |
239 |
- elisp-compile *.el |
240 |
- popd > /dev/null |
241 |
- pushd interfaces/emacs/imaxima > /dev/null |
242 |
- BYTECOMPFLAGS="-L . -L ../emaxima" |
243 |
- elisp-compile *.el |
244 |
- popd > /dev/null |
245 |
- fi |
246 |
-} |
247 |
- |
248 |
-src_install() { |
249 |
- docompress -x /usr/share/info |
250 |
- emake DESTDIR="${D}" emacsdir="${EPREFIX}/${SITELISP}/${PN}" install |
251 |
- |
252 |
- use tk && make_desktop_entry xmaxima xmaxima \ |
253 |
- /usr/share/${PN}/${PV}/xmaxima/maxima-new.png \ |
254 |
- "Science;Math;Education" |
255 |
- |
256 |
- # do not use dodoc because interfaces can't read compressed files |
257 |
- # read COPYING before attempt to remove it from dodoc |
258 |
- insinto /usr/share/${PN}/${PV}/doc |
259 |
- doins AUTHORS COPYING README README.lisps |
260 |
- dodir /usr/share/doc |
261 |
- dosym ../${PN}/${PV}/doc /usr/share/doc/${PF} |
262 |
- |
263 |
- if use emacs; then |
264 |
- elisp-install ${PN} interfaces/emacs/{emaxima,imaxima}/*.{el,elc,lisp} |
265 |
- elisp-site-file-install "${FILESDIR}"/50maxima-gentoo-1.el |
266 |
- |
267 |
- rm "${ED}"/${SITELISP}/${PN}/emaxima.sty || die |
268 |
- insinto ${TEXMF}/tex/latex/emaxima |
269 |
- doins interfaces/emacs/emaxima/emaxima.sty |
270 |
- |
271 |
- insinto /usr/share/${PN}/${PV}/doc/imaxima |
272 |
- doins interfaces/emacs/imaxima/README |
273 |
- doins -r interfaces/emacs/imaxima/imath-example |
274 |
- fi |
275 |
- |
276 |
- # if we use ecls, build an ecls library for maxima |
277 |
- if use ecls; then |
278 |
- ECLLIB=`ecl -eval "(princ (SI:GET-LIBRARY-PATHNAME))" -eval "(quit)"` |
279 |
- insinto "${ECLLIB#${EPREFIX}}" |
280 |
- doins src/binary-ecl/maxima.fas |
281 |
- fi |
282 |
-} |
283 |
- |
284 |
-pkg_postinst() { |
285 |
- if use emacs; then |
286 |
- elisp-site-regen |
287 |
- mktexlsr |
288 |
- fi |
289 |
-} |
290 |
- |
291 |
-pkg_postrm() { |
292 |
- if use emacs; then |
293 |
- elisp-site-regen |
294 |
- mktexlsr |
295 |
- fi |
296 |
-} |
297 |
|
298 |
diff --git a/sci-mathematics/maxima/maxima-5.39.0.ebuild b/sci-mathematics/maxima/maxima-5.39.0.ebuild |
299 |
deleted file mode 100644 |
300 |
index b43477f9570..00000000000 |
301 |
--- a/sci-mathematics/maxima/maxima-5.39.0.ebuild |
302 |
+++ /dev/null |
303 |
@@ -1,208 +0,0 @@ |
304 |
-# Copyright 1999-2016 Gentoo Foundation |
305 |
-# Distributed under the terms of the GNU General Public License v2 |
306 |
- |
307 |
-EAPI=5 |
308 |
- |
309 |
-inherit autotools elisp-common eutils |
310 |
- |
311 |
-DESCRIPTION="Free computer algebra environment based on Macsyma" |
312 |
-HOMEPAGE="http://maxima.sourceforge.net/" |
313 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
314 |
- |
315 |
-LICENSE="GPL-2 GPL-2+" |
316 |
-SLOT="0" |
317 |
-KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
318 |
- |
319 |
-# Supported lisps |
320 |
-LISPS=( sbcl cmucl gcl ecls clozurecl clisp ) |
321 |
-# <lisp> supports readline: . - no, y - yes |
322 |
-SUPP_RL=( . . y . . y ) |
323 |
-# . - just --enable-<lisp>, <flag> - --enable-<flag> |
324 |
-CONF_FLAG=( . . . ecl ccl . ) |
325 |
-# patch file version; . - no patch |
326 |
-PATCH_V=( 2 1 . 2 2 1 ) |
327 |
- |
328 |
-IUSE="emacs tk nls unicode X ${LISPS[*]}" |
329 |
- |
330 |
-# Languages |
331 |
-LANGS="de es pt pt_BR" |
332 |
-for lang in ${LANGS}; do |
333 |
- IUSE="${IUSE} linguas_${lang}" |
334 |
-done |
335 |
- |
336 |
-# texlive-latexrecommended needed by imaxima for breqn.sty |
337 |
-RDEPEND="!app-emacs/imaxima |
338 |
- X? ( x11-misc/xdg-utils |
339 |
- sci-visualization/gnuplot[gd] |
340 |
- tk? ( dev-lang/tk:0 ) ) |
341 |
- emacs? ( virtual/emacs |
342 |
- virtual/latex-base |
343 |
- app-emacs/auctex |
344 |
- app-text/ghostscript-gpl |
345 |
- dev-texlive/texlive-latexrecommended )" |
346 |
- |
347 |
-# generating lisp dependencies |
348 |
-depends() { |
349 |
- local LISP DEP |
350 |
- LISP=${LISPS[$1]} |
351 |
- DEP="dev-lisp/${LISP}:=" |
352 |
- if [ "${SUPP_RL[$1]}" = "." ]; then |
353 |
- DEP="${DEP} app-misc/rlwrap" |
354 |
- fi |
355 |
- echo ${DEP} |
356 |
-} |
357 |
- |
358 |
-n=${#LISPS[*]} |
359 |
-for ((n--; n >= 0; n--)); do |
360 |
- LISP=${LISPS[${n}]} |
361 |
- RDEPEND="${RDEPEND} ${LISP}? ( $(depends ${n}) )" |
362 |
- DEF_DEP="${DEF_DEP} !${LISP}? ( " |
363 |
-done |
364 |
- |
365 |
-# default lisp |
366 |
-DEF_LISP=0 # sbcl |
367 |
-ARM_LISP=2 # gcl |
368 |
-DEF_DEP="${DEF_DEP} arm? ( `depends ${ARM_LISP}` ) !arm? ( `depends ${DEF_LISP}` )" |
369 |
- |
370 |
-n=${#LISPS[*]} |
371 |
-for ((n--; n >= 0; n--)); do |
372 |
- DEF_DEP="${DEF_DEP} )" |
373 |
-done |
374 |
- |
375 |
-unset LISP |
376 |
- |
377 |
-RDEPEND="${RDEPEND} |
378 |
- ${DEF_DEP}" |
379 |
- |
380 |
-DEPEND="${RDEPEND} |
381 |
- sys-apps/texinfo" |
382 |
- |
383 |
-TEXMF="${EPREFIX}"/usr/share/texmf-site |
384 |
- |
385 |
-pkg_setup() { |
386 |
- local n=${#LISPS[*]} |
387 |
- |
388 |
- for ((n--; n >= 0; n--)); do |
389 |
- use ${LISPS[${n}]} && NLISPS="${NLISPS} ${n}" |
390 |
- done |
391 |
- |
392 |
- if [ -z "${NLISPS}" ]; then |
393 |
- use arm && DEF_LISP=${ARM_LISP} |
394 |
- ewarn "No lisp specified in USE flags, choosing ${LISPS[${DEF_LISP}]} as default" |
395 |
- NLISPS=${DEF_LISP} |
396 |
- fi |
397 |
-} |
398 |
- |
399 |
-src_prepare() { |
400 |
- local n PATCHES v |
401 |
- PATCHES=( emacs-0 rmaxima-0 wish-2 xdg-utils-0 ) |
402 |
- |
403 |
- n=${#PATCHES[*]} |
404 |
- for ((n--; n >= 0; n--)); do |
405 |
- epatch "${FILESDIR}"/${PATCHES[${n}]}.patch |
406 |
- done |
407 |
- |
408 |
- n=${#LISPS[*]} |
409 |
- for ((n--; n >= 0; n--)); do |
410 |
- v=${PATCH_V[${n}]} |
411 |
- if [ "${v}" != "." ]; then |
412 |
- epatch "${FILESDIR}"/${LISPS[${n}]}-${v}.patch |
413 |
- fi |
414 |
- done |
415 |
- |
416 |
- # bug #343331 |
417 |
- rm share/Makefile.in || die |
418 |
- rm src/Makefile.in || die |
419 |
- touch src/*.mk |
420 |
- touch src/Makefile.am |
421 |
- eautoreconf |
422 |
-} |
423 |
- |
424 |
-src_configure() { |
425 |
- local CONFS CONF n lang |
426 |
- for n in ${NLISPS}; do |
427 |
- CONF=${CONF_FLAG[${n}]} |
428 |
- if [ ${CONF} = . ]; then |
429 |
- CONF=${LISPS[${n}]} |
430 |
- fi |
431 |
- CONFS="${CONFS} --enable-${CONF}" |
432 |
- done |
433 |
- |
434 |
- # enable existing translated doc |
435 |
- if use nls; then |
436 |
- for lang in ${LANGS}; do |
437 |
- if use "linguas_${lang}"; then |
438 |
- CONFS="${CONFS} --enable-lang-${lang}" |
439 |
- use unicode && CONFS="${CONFS} --enable-lang-${lang}-utf8" |
440 |
- fi |
441 |
- done |
442 |
- fi |
443 |
- |
444 |
- econf ${CONFS} \ |
445 |
- $(use_with tk wish) \ |
446 |
- $(use_enable emacs) \ |
447 |
- --with-lispdir="${EPREFIX}/${SITELISP}/${PN}" |
448 |
-} |
449 |
- |
450 |
-src_compile() { |
451 |
- emake |
452 |
- if use emacs; then |
453 |
- pushd interfaces/emacs/emaxima > /dev/null |
454 |
- elisp-compile *.el |
455 |
- popd > /dev/null |
456 |
- pushd interfaces/emacs/imaxima > /dev/null |
457 |
- BYTECOMPFLAGS="-L . -L ../emaxima" |
458 |
- elisp-compile *.el |
459 |
- popd > /dev/null |
460 |
- fi |
461 |
-} |
462 |
- |
463 |
-src_install() { |
464 |
- docompress -x /usr/share/info |
465 |
- emake DESTDIR="${D}" emacsdir="${EPREFIX}/${SITELISP}/${PN}" install |
466 |
- |
467 |
- use tk && make_desktop_entry xmaxima xmaxima \ |
468 |
- /usr/share/${PN}/${PV}/xmaxima/maxima-new.png \ |
469 |
- "Science;Math;Education" |
470 |
- |
471 |
- # do not use dodoc because interfaces can't read compressed files |
472 |
- # read COPYING before attempt to remove it from dodoc |
473 |
- insinto /usr/share/${PN}/${PV}/doc |
474 |
- doins AUTHORS COPYING README README.lisps |
475 |
- dodir /usr/share/doc |
476 |
- dosym ../${PN}/${PV}/doc /usr/share/doc/${PF} |
477 |
- |
478 |
- if use emacs; then |
479 |
- elisp-install ${PN} interfaces/emacs/{emaxima,imaxima}/*.{el,elc,lisp} |
480 |
- elisp-site-file-install "${FILESDIR}"/50maxima-gentoo-1.el |
481 |
- |
482 |
- rm "${ED}"/${SITELISP}/${PN}/emaxima.sty || die |
483 |
- insinto ${TEXMF}/tex/latex/emaxima |
484 |
- doins interfaces/emacs/emaxima/emaxima.sty |
485 |
- |
486 |
- insinto /usr/share/${PN}/${PV}/doc/imaxima |
487 |
- doins interfaces/emacs/imaxima/README |
488 |
- doins -r interfaces/emacs/imaxima/imath-example |
489 |
- fi |
490 |
- |
491 |
- # if we use ecls, build an ecls library for maxima |
492 |
- if use ecls; then |
493 |
- ECLLIB=`ecl -eval "(princ (SI:GET-LIBRARY-PATHNAME))" -eval "(quit)"` |
494 |
- insinto "${ECLLIB#${EPREFIX}}" |
495 |
- doins src/binary-ecl/maxima.fas |
496 |
- fi |
497 |
-} |
498 |
- |
499 |
-pkg_postinst() { |
500 |
- if use emacs; then |
501 |
- elisp-site-regen |
502 |
- mktexlsr |
503 |
- fi |
504 |
-} |
505 |
- |
506 |
-pkg_postrm() { |
507 |
- if use emacs; then |
508 |
- elisp-site-regen |
509 |
- mktexlsr |
510 |
- fi |
511 |
-} |
512 |
|
513 |
diff --git a/sci-mathematics/maxima/maxima-5.40.0.ebuild b/sci-mathematics/maxima/maxima-5.40.0.ebuild |
514 |
deleted file mode 100644 |
515 |
index 8bdc377e848..00000000000 |
516 |
--- a/sci-mathematics/maxima/maxima-5.40.0.ebuild |
517 |
+++ /dev/null |
518 |
@@ -1,208 +0,0 @@ |
519 |
-# Copyright 1999-2017 Gentoo Foundation |
520 |
-# Distributed under the terms of the GNU General Public License v2 |
521 |
- |
522 |
-EAPI=5 |
523 |
- |
524 |
-inherit autotools elisp-common eutils |
525 |
- |
526 |
-DESCRIPTION="Free computer algebra environment based on Macsyma" |
527 |
-HOMEPAGE="http://maxima.sourceforge.net/" |
528 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
529 |
- |
530 |
-LICENSE="GPL-2 GPL-2+" |
531 |
-SLOT="0" |
532 |
-KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
533 |
- |
534 |
-# Supported lisps |
535 |
-LISPS=( sbcl cmucl gcl ecls clozurecl clisp ) |
536 |
-# <lisp> supports readline: . - no, y - yes |
537 |
-SUPP_RL=( . . y . . y ) |
538 |
-# . - just --enable-<lisp>, <flag> - --enable-<flag> |
539 |
-CONF_FLAG=( . . . ecl ccl . ) |
540 |
-# patch file version; . - no patch |
541 |
-PATCH_V=( 2 1 . 2 2 1 ) |
542 |
- |
543 |
-IUSE="emacs tk nls unicode X ${LISPS[*]}" |
544 |
- |
545 |
-# Languages |
546 |
-LANGS="de es pt pt_BR" |
547 |
-for lang in ${LANGS}; do |
548 |
- IUSE="${IUSE} linguas_${lang}" |
549 |
-done |
550 |
- |
551 |
-# texlive-latexrecommended needed by imaxima for breqn.sty |
552 |
-RDEPEND="!app-emacs/imaxima |
553 |
- X? ( x11-misc/xdg-utils |
554 |
- sci-visualization/gnuplot[gd] |
555 |
- tk? ( dev-lang/tk:0 ) ) |
556 |
- emacs? ( virtual/emacs |
557 |
- virtual/latex-base |
558 |
- app-emacs/auctex |
559 |
- app-text/ghostscript-gpl |
560 |
- dev-texlive/texlive-latexrecommended )" |
561 |
- |
562 |
-# generating lisp dependencies |
563 |
-depends() { |
564 |
- local LISP DEP |
565 |
- LISP=${LISPS[$1]} |
566 |
- DEP="dev-lisp/${LISP}:=" |
567 |
- if [ "${SUPP_RL[$1]}" = "." ]; then |
568 |
- DEP="${DEP} app-misc/rlwrap" |
569 |
- fi |
570 |
- echo ${DEP} |
571 |
-} |
572 |
- |
573 |
-n=${#LISPS[*]} |
574 |
-for ((n--; n >= 0; n--)); do |
575 |
- LISP=${LISPS[${n}]} |
576 |
- RDEPEND="${RDEPEND} ${LISP}? ( $(depends ${n}) )" |
577 |
- DEF_DEP="${DEF_DEP} !${LISP}? ( " |
578 |
-done |
579 |
- |
580 |
-# default lisp |
581 |
-DEF_LISP=0 # sbcl |
582 |
-ARM_LISP=2 # gcl |
583 |
-DEF_DEP="${DEF_DEP} arm? ( `depends ${ARM_LISP}` ) !arm? ( `depends ${DEF_LISP}` )" |
584 |
- |
585 |
-n=${#LISPS[*]} |
586 |
-for ((n--; n >= 0; n--)); do |
587 |
- DEF_DEP="${DEF_DEP} )" |
588 |
-done |
589 |
- |
590 |
-unset LISP |
591 |
- |
592 |
-RDEPEND="${RDEPEND} |
593 |
- ${DEF_DEP}" |
594 |
- |
595 |
-DEPEND="${RDEPEND} |
596 |
- sys-apps/texinfo" |
597 |
- |
598 |
-TEXMF="${EPREFIX}"/usr/share/texmf-site |
599 |
- |
600 |
-pkg_setup() { |
601 |
- local n=${#LISPS[*]} |
602 |
- |
603 |
- for ((n--; n >= 0; n--)); do |
604 |
- use ${LISPS[${n}]} && NLISPS="${NLISPS} ${n}" |
605 |
- done |
606 |
- |
607 |
- if [ -z "${NLISPS}" ]; then |
608 |
- use arm && DEF_LISP=${ARM_LISP} |
609 |
- ewarn "No lisp specified in USE flags, choosing ${LISPS[${DEF_LISP}]} as default" |
610 |
- NLISPS=${DEF_LISP} |
611 |
- fi |
612 |
-} |
613 |
- |
614 |
-src_prepare() { |
615 |
- local n PATCHES v |
616 |
- PATCHES=( emacs-0 rmaxima-0 wish-2 xdg-utils-0 ) |
617 |
- |
618 |
- n=${#PATCHES[*]} |
619 |
- for ((n--; n >= 0; n--)); do |
620 |
- epatch "${FILESDIR}"/${PATCHES[${n}]}.patch |
621 |
- done |
622 |
- |
623 |
- n=${#LISPS[*]} |
624 |
- for ((n--; n >= 0; n--)); do |
625 |
- v=${PATCH_V[${n}]} |
626 |
- if [ "${v}" != "." ]; then |
627 |
- epatch "${FILESDIR}"/${LISPS[${n}]}-${v}.patch |
628 |
- fi |
629 |
- done |
630 |
- |
631 |
- # bug #343331 |
632 |
- rm share/Makefile.in || die |
633 |
- rm src/Makefile.in || die |
634 |
- touch src/*.mk |
635 |
- touch src/Makefile.am |
636 |
- eautoreconf |
637 |
-} |
638 |
- |
639 |
-src_configure() { |
640 |
- local CONFS CONF n lang |
641 |
- for n in ${NLISPS}; do |
642 |
- CONF=${CONF_FLAG[${n}]} |
643 |
- if [ ${CONF} = . ]; then |
644 |
- CONF=${LISPS[${n}]} |
645 |
- fi |
646 |
- CONFS="${CONFS} --enable-${CONF}" |
647 |
- done |
648 |
- |
649 |
- # enable existing translated doc |
650 |
- if use nls; then |
651 |
- for lang in ${LANGS}; do |
652 |
- if use "linguas_${lang}"; then |
653 |
- CONFS="${CONFS} --enable-lang-${lang}" |
654 |
- use unicode && CONFS="${CONFS} --enable-lang-${lang}-utf8" |
655 |
- fi |
656 |
- done |
657 |
- fi |
658 |
- |
659 |
- econf ${CONFS} \ |
660 |
- $(use_with tk wish) \ |
661 |
- $(use_enable emacs) \ |
662 |
- --with-lispdir="${EPREFIX}/${SITELISP}/${PN}" |
663 |
-} |
664 |
- |
665 |
-src_compile() { |
666 |
- emake |
667 |
- if use emacs; then |
668 |
- pushd interfaces/emacs/emaxima > /dev/null |
669 |
- elisp-compile *.el |
670 |
- popd > /dev/null |
671 |
- pushd interfaces/emacs/imaxima > /dev/null |
672 |
- BYTECOMPFLAGS="-L . -L ../emaxima" |
673 |
- elisp-compile *.el |
674 |
- popd > /dev/null |
675 |
- fi |
676 |
-} |
677 |
- |
678 |
-src_install() { |
679 |
- docompress -x /usr/share/info |
680 |
- emake DESTDIR="${D}" emacsdir="${EPREFIX}/${SITELISP}/${PN}" install |
681 |
- |
682 |
- use tk && make_desktop_entry xmaxima xmaxima \ |
683 |
- /usr/share/${PN}/${PV}/xmaxima/maxima-new.png \ |
684 |
- "Science;Math;Education" |
685 |
- |
686 |
- # do not use dodoc because interfaces can't read compressed files |
687 |
- # read COPYING before attempt to remove it from dodoc |
688 |
- insinto /usr/share/${PN}/${PV}/doc |
689 |
- doins AUTHORS COPYING README README.lisps |
690 |
- dodir /usr/share/doc |
691 |
- dosym ../${PN}/${PV}/doc /usr/share/doc/${PF} |
692 |
- |
693 |
- if use emacs; then |
694 |
- elisp-install ${PN} interfaces/emacs/{emaxima,imaxima}/*.{el,elc,lisp} |
695 |
- elisp-site-file-install "${FILESDIR}"/50maxima-gentoo-1.el |
696 |
- |
697 |
- rm "${ED}"/${SITELISP}/${PN}/emaxima.sty || die |
698 |
- insinto ${TEXMF}/tex/latex/emaxima |
699 |
- doins interfaces/emacs/emaxima/emaxima.sty |
700 |
- |
701 |
- insinto /usr/share/${PN}/${PV}/doc/imaxima |
702 |
- doins interfaces/emacs/imaxima/README |
703 |
- doins -r interfaces/emacs/imaxima/imath-example |
704 |
- fi |
705 |
- |
706 |
- # if we use ecls, build an ecls library for maxima |
707 |
- if use ecls; then |
708 |
- ECLLIB=`ecl -eval "(princ (SI:GET-LIBRARY-PATHNAME))" -eval "(quit)"` |
709 |
- insinto "${ECLLIB#${EPREFIX}}" |
710 |
- doins src/binary-ecl/maxima.fas |
711 |
- fi |
712 |
-} |
713 |
- |
714 |
-pkg_postinst() { |
715 |
- if use emacs; then |
716 |
- elisp-site-regen |
717 |
- mktexlsr |
718 |
- fi |
719 |
-} |
720 |
- |
721 |
-pkg_postrm() { |
722 |
- if use emacs; then |
723 |
- elisp-site-regen |
724 |
- mktexlsr |
725 |
- fi |
726 |
-} |