1 |
commit: 073c7f9a0c3ddc8610e809d1fb3082b32d8e3b9c |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 1 11:24:34 2019 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 1 11:25:19 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=073c7f9a |
7 |
|
8 |
sci-mathematics/maxima: bump to 5.43.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/show_bug.cgi?id=684670 |
11 |
Package-Manager: Portage-2.3.67, Repoman-2.3.13 |
12 |
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org> |
13 |
|
14 |
sci-mathematics/maxima/Manifest | 1 + |
15 |
sci-mathematics/maxima/files/clozurecl-3.patch | 27 ++++ |
16 |
sci-mathematics/maxima/maxima-5.43.0.ebuild | 213 +++++++++++++++++++++++++ |
17 |
3 files changed, 241 insertions(+) |
18 |
|
19 |
diff --git a/sci-mathematics/maxima/Manifest b/sci-mathematics/maxima/Manifest |
20 |
index a0c2fc48ac1..f22ecb58c2b 100644 |
21 |
--- a/sci-mathematics/maxima/Manifest |
22 |
+++ b/sci-mathematics/maxima/Manifest |
23 |
@@ -1,3 +1,4 @@ |
24 |
DIST maxima-5.38.1.tar.gz 38641257 BLAKE2B 0244b5dbdd337e64d4f7c3e7f6b946463b0246a9fd0660588798f7891fd1599cf400369fe0d1ce3433d01ce2e4b8bc86ad405d3f8368b429cd028362ec66a1b4 SHA512 abca10984dbb22a48bae481b2e803cb5bee6776e974b4bb9271773aa035fb5e49f34b2458aabca01f0a681a07179e57c012273be6f8d53c615b3309b1034abf9 |
25 |
DIST maxima-5.42.1.tar.gz 41865510 BLAKE2B d3b8a50594dc0cef0c354c42be1aee96df77a4e222dbe457edeb47d7fe77a8fe376b10ce8da9e4ff6c447242e9c53a32286d09a64d8600112f6feda92f1fb58d SHA512 79c5e70119b0384d9dd8aa47c7e96a0ccb7e6367526b8a14d21f00137a1c2f0c8b7990bb7231d7c90ffa0090f67c1fa30a418d013d9c5982030ae68de9717f48 |
26 |
DIST maxima-5.42.2.tar.gz 41840181 BLAKE2B bca8a94366f1fe2f508436fdef8de80107b19c9b267a4b72dc6f56870078d35b3feb7dbdda384589b38c5351d6eeede1b9738a5ec2152063de2afacd1ced48c4 SHA512 5033b02272121f6aacff5ededf90eaad5e644a06d0c62aafd745401c08429da979ecd8274f7aa12596a0e32ddb614659af14e4273f59d372fe1ecbec081e7829 |
27 |
+DIST maxima-5.43.0.tar.gz 34605709 BLAKE2B db9db75b7eff0454d4b9595120d726969b4e8b651f611ac69dcd92c4496bf9530ce76867348fd87a33444eef3abb7d123ef2726a7b96ebde9e43f231b21a2b8c SHA512 6611eda4bf81bc5454bf6dd641c73a470cc07b2f768d9550b3abeb7b68f1b4675fd5eca766c52844438e9247d8035be537c7120c9f49cdaed9f918d49ed16659 |
28 |
|
29 |
diff --git a/sci-mathematics/maxima/files/clozurecl-3.patch b/sci-mathematics/maxima/files/clozurecl-3.patch |
30 |
new file mode 100644 |
31 |
index 00000000000..531c6caca9d |
32 |
--- /dev/null |
33 |
+++ b/sci-mathematics/maxima/files/clozurecl-3.patch |
34 |
@@ -0,0 +1,27 @@ |
35 |
+diff -r -U1 maxima-5.43.0.orig/configure.ac maxima-5.43.0/configure.ac |
36 |
+--- maxima-5.43.0.orig/configure.ac 2019-05-31 00:52:28.000000000 +0200 |
37 |
++++ maxima-5.43.0/configure.ac 2019-06-01 12:08:22.549425058 +0200 |
38 |
+@@ -434,3 +434,3 @@ |
39 |
+ dnl n.b. openmcl_default_name is hardcoded in "with" message |
40 |
+-openmcl_default_name=openmcl |
41 |
++openmcl_default_name=ccl |
42 |
+ AC_ARG_ENABLE(openmcl, |
43 |
+diff -r -U1 maxima-5.43.0.orig/src/Makefile.am maxima-5.43.0/src/Makefile.am |
44 |
+--- maxima-5.43.0.orig/src/Makefile.am 2019-05-31 00:52:28.000000000 +0200 |
45 |
++++ maxima-5.43.0/src/Makefile.am 2019-06-01 12:06:49.990422763 +0200 |
46 |
+@@ -392,3 +392,3 @@ |
47 |
+ |
48 |
+-EXECUTEOPENMCL = $(OPENMCL_NAME) |
49 |
++EXECUTEOPENMCL = $(OPENMCL_NAME) --no-init |
50 |
+ BUILT_FILES += $(OPENMCL_MAXIMA) |
51 |
+diff -r -U1 maxima-5.43.0.orig/src/maxima.in maxima-5.43.0/src/maxima.in |
52 |
+--- maxima-5.43.0.orig/src/maxima.in 2019-05-31 00:52:28.000000000 +0200 |
53 |
++++ maxima-5.43.0/src/maxima.in 2019-06-01 12:10:12.251427778 +0200 |
54 |
+@@ -221,5 +221,5 @@ |
55 |
+ if [ -x "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" ]; then |
56 |
+- exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" $MAXIMA_LISP_OPTIONS -e '(cl-user::run)' -- "$@" |
57 |
++ exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" $MAXIMA_LISP_OPTIONS --no-init -e '(cl-user::run)' -- "$@" |
58 |
+ else |
59 |
+- exec "@OPENMCL_NAME@" -I "$maxima_image_base.image" $MAXIMA_LISP_OPTIONS -e '(cl-user::run)' -- "$@" |
60 |
++ exec "@OPENMCL_NAME@" -I "$maxima_image_base.image" $MAXIMA_LISP_OPTIONS --no-init -e '(cl-user::run)' -- "$@" |
61 |
+ fi |
62 |
|
63 |
diff --git a/sci-mathematics/maxima/maxima-5.43.0.ebuild b/sci-mathematics/maxima/maxima-5.43.0.ebuild |
64 |
new file mode 100644 |
65 |
index 00000000000..c537cea53d2 |
66 |
--- /dev/null |
67 |
+++ b/sci-mathematics/maxima/maxima-5.43.0.ebuild |
68 |
@@ -0,0 +1,213 @@ |
69 |
+# Copyright 1999-2019 Gentoo Authors |
70 |
+# Distributed under the terms of the GNU General Public License v2 |
71 |
+ |
72 |
+EAPI=6 |
73 |
+ |
74 |
+inherit autotools elisp-common eutils xdg-utils |
75 |
+ |
76 |
+DESCRIPTION="Free computer algebra environment based on Macsyma" |
77 |
+HOMEPAGE="http://maxima.sourceforge.net/" |
78 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
79 |
+ |
80 |
+LICENSE="GPL-2 GPL-2+" |
81 |
+SLOT="0" |
82 |
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
83 |
+ |
84 |
+# Supported lisps |
85 |
+LISPS=( sbcl cmucl gcl ecls clozurecl clisp ) |
86 |
+# <lisp> supports readline: . - no, y - yes |
87 |
+SUPP_RL=( . . y . . y ) |
88 |
+# . - just --enable-<lisp>, <flag> - --enable-<flag> |
89 |
+CONF_FLAG=( . . . ecl ccl . ) |
90 |
+# patch file version; . - no patch |
91 |
+PATCH_V=( 2 1 . 3 3 1 ) |
92 |
+ |
93 |
+IUSE="emacs tk nls unicode X test ${LISPS[*]}" |
94 |
+ |
95 |
+# Languages |
96 |
+LANGS="de es pt pt_BR" |
97 |
+for lang in ${LANGS}; do |
98 |
+ IUSE="${IUSE} l10n_${lang/_/-}" |
99 |
+done |
100 |
+ |
101 |
+# texlive-latexrecommended needed by imaxima for breqn.sty |
102 |
+RDEPEND="!app-emacs/imaxima |
103 |
+ X? ( x11-misc/xdg-utils |
104 |
+ sci-visualization/gnuplot[gd] |
105 |
+ tk? ( dev-lang/tk:0 ) ) |
106 |
+ emacs? ( virtual/emacs |
107 |
+ virtual/latex-base |
108 |
+ app-emacs/auctex |
109 |
+ app-text/ghostscript-gpl |
110 |
+ dev-texlive/texlive-latexrecommended )" |
111 |
+ |
112 |
+# generating lisp dependencies |
113 |
+depends() { |
114 |
+ local LISP DEP |
115 |
+ LISP=${LISPS[$1]} |
116 |
+ DEP="dev-lisp/${LISP}:=" |
117 |
+ if [ "${SUPP_RL[$1]}" = "." ]; then |
118 |
+ DEP="${DEP} app-misc/rlwrap" |
119 |
+ fi |
120 |
+ echo ${DEP} |
121 |
+} |
122 |
+ |
123 |
+n=${#LISPS[*]} |
124 |
+for ((n--; n >= 0; n--)); do |
125 |
+ LISP=${LISPS[${n}]} |
126 |
+ RDEPEND="${RDEPEND} ${LISP}? ( $(depends ${n}) )" |
127 |
+ DEF_DEP="${DEF_DEP} !${LISP}? ( " |
128 |
+done |
129 |
+ |
130 |
+# default lisp |
131 |
+DEF_LISP=0 # sbcl |
132 |
+ARM_LISP=2 # gcl |
133 |
+DEF_DEP="${DEF_DEP} arm? ( `depends ${ARM_LISP}` ) !arm? ( `depends ${DEF_LISP}` )" |
134 |
+ |
135 |
+n=${#LISPS[*]} |
136 |
+for ((n--; n >= 0; n--)); do |
137 |
+ DEF_DEP="${DEF_DEP} )" |
138 |
+done |
139 |
+ |
140 |
+unset LISP |
141 |
+ |
142 |
+RDEPEND="${RDEPEND} |
143 |
+ ${DEF_DEP}" |
144 |
+ |
145 |
+DEPEND="${RDEPEND} |
146 |
+ test? ( sci-visualization/gnuplot ) |
147 |
+ sys-apps/texinfo" |
148 |
+ |
149 |
+TEXMF="${EPREFIX}"/usr/share/texmf-site |
150 |
+ |
151 |
+pkg_setup() { |
152 |
+ local n=${#LISPS[*]} |
153 |
+ |
154 |
+ for ((n--; n >= 0; n--)); do |
155 |
+ use ${LISPS[${n}]} && NLISPS="${NLISPS} ${n}" |
156 |
+ done |
157 |
+ |
158 |
+ if [ -z "${NLISPS}" ]; then |
159 |
+ use arm && DEF_LISP=${ARM_LISP} |
160 |
+ ewarn "No lisp specified in USE flags, choosing ${LISPS[${DEF_LISP}]} as default" |
161 |
+ NLISPS=${DEF_LISP} |
162 |
+ fi |
163 |
+} |
164 |
+ |
165 |
+src_prepare() { |
166 |
+ local n PATCHES v |
167 |
+ PATCHES=( emacs-0 rmaxima-0 wish-2 xdg-utils-1 ) |
168 |
+ |
169 |
+ n=${#PATCHES[*]} |
170 |
+ for ((n--; n >= 0; n--)); do |
171 |
+ eapply "${FILESDIR}"/${PATCHES[${n}]}.patch |
172 |
+ done |
173 |
+ |
174 |
+ n=${#LISPS[*]} |
175 |
+ for ((n--; n >= 0; n--)); do |
176 |
+ v=${PATCH_V[${n}]} |
177 |
+ if [ "${v}" != "." ]; then |
178 |
+ eapply "${FILESDIR}"/${LISPS[${n}]}-${v}.patch |
179 |
+ fi |
180 |
+ done |
181 |
+ |
182 |
+ eapply_user |
183 |
+ |
184 |
+ # bug #343331 |
185 |
+ rm share/Makefile.in || die |
186 |
+ rm src/Makefile.in || die |
187 |
+ touch src/*.mk |
188 |
+ touch src/Makefile.am |
189 |
+ eautoreconf |
190 |
+} |
191 |
+ |
192 |
+src_configure() { |
193 |
+ local CONFS CONF n lang |
194 |
+ for n in ${NLISPS}; do |
195 |
+ CONF=${CONF_FLAG[${n}]} |
196 |
+ if [ ${CONF} = . ]; then |
197 |
+ CONF=${LISPS[${n}]} |
198 |
+ fi |
199 |
+ CONFS="${CONFS} --enable-${CONF}" |
200 |
+ done |
201 |
+ |
202 |
+ # enable existing translated doc |
203 |
+ if use nls; then |
204 |
+ for lang in ${LANGS}; do |
205 |
+ if use "l10n_${lang/_/-}"; then |
206 |
+ CONFS="${CONFS} --enable-lang-${lang}" |
207 |
+ use unicode && CONFS="${CONFS} --enable-lang-${lang}-utf8" |
208 |
+ fi |
209 |
+ done |
210 |
+ fi |
211 |
+ |
212 |
+ econf ${CONFS} \ |
213 |
+ $(use_with tk wish) \ |
214 |
+ $(use_enable emacs) \ |
215 |
+ --with-lispdir="${EPREFIX}/${SITELISP}/${PN}" |
216 |
+} |
217 |
+ |
218 |
+src_compile() { |
219 |
+ emake |
220 |
+ if use emacs; then |
221 |
+ pushd interfaces/emacs/emaxima > /dev/null |
222 |
+ elisp-compile *.el |
223 |
+ popd > /dev/null |
224 |
+ pushd interfaces/emacs/imaxima > /dev/null |
225 |
+ BYTECOMPFLAGS="-L . -L ../emaxima" |
226 |
+ elisp-compile *.el |
227 |
+ popd > /dev/null |
228 |
+ fi |
229 |
+} |
230 |
+ |
231 |
+src_install() { |
232 |
+ docompress -x /usr/share/info |
233 |
+ emake DESTDIR="${D}" emacsdir="${EPREFIX}/${SITELISP}/${PN}" install |
234 |
+ |
235 |
+ use tk && make_desktop_entry xmaxima xmaxima \ |
236 |
+ /usr/share/${PN}/${PV}/xmaxima/maxima-new.png \ |
237 |
+ "Science;Math;Education" |
238 |
+ |
239 |
+ # do not use dodoc because interfaces can't read compressed files |
240 |
+ # read COPYING before attempt to remove it from dodoc |
241 |
+ insinto /usr/share/${PN}/${PV}/doc |
242 |
+ doins AUTHORS COPYING README README.lisps |
243 |
+ dodir /usr/share/doc |
244 |
+ dosym ../${PN}/${PV}/doc /usr/share/doc/${PF} |
245 |
+ |
246 |
+ if use emacs; then |
247 |
+ elisp-install ${PN} interfaces/emacs/{emaxima,imaxima}/*.{el,elc,lisp} |
248 |
+ elisp-site-file-install "${FILESDIR}"/50maxima-gentoo-1.el |
249 |
+ |
250 |
+ rm "${ED}"/${SITELISP}/${PN}/emaxima.sty || die |
251 |
+ insinto ${TEXMF}/tex/latex/emaxima |
252 |
+ doins interfaces/emacs/emaxima/emaxima.sty |
253 |
+ |
254 |
+ insinto /usr/share/${PN}/${PV}/doc/imaxima |
255 |
+ doins interfaces/emacs/imaxima/README |
256 |
+ doins -r interfaces/emacs/imaxima/imath-example |
257 |
+ fi |
258 |
+ |
259 |
+ # if we use ecls, build an ecls library for maxima |
260 |
+ if use ecls; then |
261 |
+ ECLLIB=`ecl -eval "(princ (SI:GET-LIBRARY-PATHNAME))" -eval "(quit)"` |
262 |
+ insinto "${ECLLIB#${EPREFIX}}" |
263 |
+ doins src/binary-ecl/maxima.fas |
264 |
+ fi |
265 |
+} |
266 |
+ |
267 |
+pkg_postinst() { |
268 |
+ xdg_mimeinfo_database_update |
269 |
+ if use emacs; then |
270 |
+ elisp-site-regen |
271 |
+ mktexlsr |
272 |
+ fi |
273 |
+} |
274 |
+ |
275 |
+pkg_postrm() { |
276 |
+ xdg_mimeinfo_database_update |
277 |
+ if use emacs; then |
278 |
+ elisp-site-regen |
279 |
+ mktexlsr |
280 |
+ fi |
281 |
+} |