1 |
commit: ae0479ad313ba28c0661a399552606701365e925 |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 30 19:36:43 2017 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 30 19:37:46 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae0479ad |
7 |
|
8 |
sci-mathematics/maxima: bump to 5.40.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
sci-mathematics/maxima/Manifest | 1 + |
13 |
sci-mathematics/maxima/maxima-5.40.0.ebuild | 208 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 209 insertions(+) |
15 |
|
16 |
diff --git a/sci-mathematics/maxima/Manifest b/sci-mathematics/maxima/Manifest |
17 |
index bd89940df54..07b5abb8401 100644 |
18 |
--- a/sci-mathematics/maxima/Manifest |
19 |
+++ b/sci-mathematics/maxima/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST maxima-5.37.3.tar.gz 29964644 SHA256 8bd5dcd672f37ea752385475fc64f8c87dfa29bbe34766cbcb87b1f63dfb5934 SHA512 a337afdc779abc88297e7dadf8af949da881c91a237e85ed654046c98692f2446c0b2ddb8c81b637cb7a35dd3b712832aadc5dedcaa8b681496dae4835c9d0f1 WHIRLPOOL d24eeb7f39f88b9f542e28db28b8f249b1badc059fe744a83209b102b8f776131e4b2f91c28949f4f6de8323f163cb0a6be9bafc3c0ef058a73e9b543622e976 |
22 |
DIST maxima-5.38.1.tar.gz 38641257 SHA256 0e866536ab5847ec045ba013570f80f36206ca6ce07a5d13987010bcb321c6dc SHA512 abca10984dbb22a48bae481b2e803cb5bee6776e974b4bb9271773aa035fb5e49f34b2458aabca01f0a681a07179e57c012273be6f8d53c615b3309b1034abf9 WHIRLPOOL 443ab032e784e4e2c37274dc3b1635acd9ede08af7863793f93b2f8fdc10e9cce8d4b1a5e98df9a6486fe97e082fb4030fbb3208939ab627f7ca333de7c224b8 |
23 |
DIST maxima-5.39.0.tar.gz 38652090 SHA256 f58ff98013fcaa37d8661b941672c38db58f982f082d6cfcca1f1b5fac7d71b3 SHA512 393ade47fc3832ee44df7bf0c3bd2e501755167ec0f02d50d5876e7cf54fe682f2ebf2511290fa498d174e55961451e61ea5c1c5f6e5f9e6d04ad73d45a5d2a9 WHIRLPOOL 35c7e4acf7933c11562ade2ce30b9c3865a052fc13f9880502165313aae66925aff44cc9d70666001d0378ef14b2e0bf6bc2faeb258b6d50e558b9e043cd972c |
24 |
+DIST maxima-5.40.0.tar.gz 41668208 SHA256 74fe468cd372714622a99afb6b34297589ddd80386e125d71067d3e75519f796 SHA512 7aa36ae56c289e1cc6bb1722a6ee93fed5bf893747a26bb52a48f93cd02d65b63c453f37dc2c86ab4596ad192150aed9ad6b361ab295eda5207d9633c07cdee6 WHIRLPOOL 0e66c5492728a1d21ef7b72fd227943200725c5dad812d81e111f609f381a94a66432c7ff13608e18fc5f2616f8992b46769b421b6942d10fb796d3992d46c8a |
25 |
|
26 |
diff --git a/sci-mathematics/maxima/maxima-5.40.0.ebuild b/sci-mathematics/maxima/maxima-5.40.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..8bdc377e848 |
29 |
--- /dev/null |
30 |
+++ b/sci-mathematics/maxima/maxima-5.40.0.ebuild |
31 |
@@ -0,0 +1,208 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=5 |
36 |
+ |
37 |
+inherit autotools elisp-common eutils |
38 |
+ |
39 |
+DESCRIPTION="Free computer algebra environment based on Macsyma" |
40 |
+HOMEPAGE="http://maxima.sourceforge.net/" |
41 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-2 GPL-2+" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
46 |
+ |
47 |
+# Supported lisps |
48 |
+LISPS=( sbcl cmucl gcl ecls clozurecl clisp ) |
49 |
+# <lisp> supports readline: . - no, y - yes |
50 |
+SUPP_RL=( . . y . . y ) |
51 |
+# . - just --enable-<lisp>, <flag> - --enable-<flag> |
52 |
+CONF_FLAG=( . . . ecl ccl . ) |
53 |
+# patch file version; . - no patch |
54 |
+PATCH_V=( 2 1 . 2 2 1 ) |
55 |
+ |
56 |
+IUSE="emacs tk nls unicode X ${LISPS[*]}" |
57 |
+ |
58 |
+# Languages |
59 |
+LANGS="de es pt pt_BR" |
60 |
+for lang in ${LANGS}; do |
61 |
+ IUSE="${IUSE} linguas_${lang}" |
62 |
+done |
63 |
+ |
64 |
+# texlive-latexrecommended needed by imaxima for breqn.sty |
65 |
+RDEPEND="!app-emacs/imaxima |
66 |
+ X? ( x11-misc/xdg-utils |
67 |
+ sci-visualization/gnuplot[gd] |
68 |
+ tk? ( dev-lang/tk:0 ) ) |
69 |
+ emacs? ( virtual/emacs |
70 |
+ virtual/latex-base |
71 |
+ app-emacs/auctex |
72 |
+ app-text/ghostscript-gpl |
73 |
+ dev-texlive/texlive-latexrecommended )" |
74 |
+ |
75 |
+# generating lisp dependencies |
76 |
+depends() { |
77 |
+ local LISP DEP |
78 |
+ LISP=${LISPS[$1]} |
79 |
+ DEP="dev-lisp/${LISP}:=" |
80 |
+ if [ "${SUPP_RL[$1]}" = "." ]; then |
81 |
+ DEP="${DEP} app-misc/rlwrap" |
82 |
+ fi |
83 |
+ echo ${DEP} |
84 |
+} |
85 |
+ |
86 |
+n=${#LISPS[*]} |
87 |
+for ((n--; n >= 0; n--)); do |
88 |
+ LISP=${LISPS[${n}]} |
89 |
+ RDEPEND="${RDEPEND} ${LISP}? ( $(depends ${n}) )" |
90 |
+ DEF_DEP="${DEF_DEP} !${LISP}? ( " |
91 |
+done |
92 |
+ |
93 |
+# default lisp |
94 |
+DEF_LISP=0 # sbcl |
95 |
+ARM_LISP=2 # gcl |
96 |
+DEF_DEP="${DEF_DEP} arm? ( `depends ${ARM_LISP}` ) !arm? ( `depends ${DEF_LISP}` )" |
97 |
+ |
98 |
+n=${#LISPS[*]} |
99 |
+for ((n--; n >= 0; n--)); do |
100 |
+ DEF_DEP="${DEF_DEP} )" |
101 |
+done |
102 |
+ |
103 |
+unset LISP |
104 |
+ |
105 |
+RDEPEND="${RDEPEND} |
106 |
+ ${DEF_DEP}" |
107 |
+ |
108 |
+DEPEND="${RDEPEND} |
109 |
+ sys-apps/texinfo" |
110 |
+ |
111 |
+TEXMF="${EPREFIX}"/usr/share/texmf-site |
112 |
+ |
113 |
+pkg_setup() { |
114 |
+ local n=${#LISPS[*]} |
115 |
+ |
116 |
+ for ((n--; n >= 0; n--)); do |
117 |
+ use ${LISPS[${n}]} && NLISPS="${NLISPS} ${n}" |
118 |
+ done |
119 |
+ |
120 |
+ if [ -z "${NLISPS}" ]; then |
121 |
+ use arm && DEF_LISP=${ARM_LISP} |
122 |
+ ewarn "No lisp specified in USE flags, choosing ${LISPS[${DEF_LISP}]} as default" |
123 |
+ NLISPS=${DEF_LISP} |
124 |
+ fi |
125 |
+} |
126 |
+ |
127 |
+src_prepare() { |
128 |
+ local n PATCHES v |
129 |
+ PATCHES=( emacs-0 rmaxima-0 wish-2 xdg-utils-0 ) |
130 |
+ |
131 |
+ n=${#PATCHES[*]} |
132 |
+ for ((n--; n >= 0; n--)); do |
133 |
+ epatch "${FILESDIR}"/${PATCHES[${n}]}.patch |
134 |
+ done |
135 |
+ |
136 |
+ n=${#LISPS[*]} |
137 |
+ for ((n--; n >= 0; n--)); do |
138 |
+ v=${PATCH_V[${n}]} |
139 |
+ if [ "${v}" != "." ]; then |
140 |
+ epatch "${FILESDIR}"/${LISPS[${n}]}-${v}.patch |
141 |
+ fi |
142 |
+ done |
143 |
+ |
144 |
+ # bug #343331 |
145 |
+ rm share/Makefile.in || die |
146 |
+ rm src/Makefile.in || die |
147 |
+ touch src/*.mk |
148 |
+ touch src/Makefile.am |
149 |
+ eautoreconf |
150 |
+} |
151 |
+ |
152 |
+src_configure() { |
153 |
+ local CONFS CONF n lang |
154 |
+ for n in ${NLISPS}; do |
155 |
+ CONF=${CONF_FLAG[${n}]} |
156 |
+ if [ ${CONF} = . ]; then |
157 |
+ CONF=${LISPS[${n}]} |
158 |
+ fi |
159 |
+ CONFS="${CONFS} --enable-${CONF}" |
160 |
+ done |
161 |
+ |
162 |
+ # enable existing translated doc |
163 |
+ if use nls; then |
164 |
+ for lang in ${LANGS}; do |
165 |
+ if use "linguas_${lang}"; then |
166 |
+ CONFS="${CONFS} --enable-lang-${lang}" |
167 |
+ use unicode && CONFS="${CONFS} --enable-lang-${lang}-utf8" |
168 |
+ fi |
169 |
+ done |
170 |
+ fi |
171 |
+ |
172 |
+ econf ${CONFS} \ |
173 |
+ $(use_with tk wish) \ |
174 |
+ $(use_enable emacs) \ |
175 |
+ --with-lispdir="${EPREFIX}/${SITELISP}/${PN}" |
176 |
+} |
177 |
+ |
178 |
+src_compile() { |
179 |
+ emake |
180 |
+ if use emacs; then |
181 |
+ pushd interfaces/emacs/emaxima > /dev/null |
182 |
+ elisp-compile *.el |
183 |
+ popd > /dev/null |
184 |
+ pushd interfaces/emacs/imaxima > /dev/null |
185 |
+ BYTECOMPFLAGS="-L . -L ../emaxima" |
186 |
+ elisp-compile *.el |
187 |
+ popd > /dev/null |
188 |
+ fi |
189 |
+} |
190 |
+ |
191 |
+src_install() { |
192 |
+ docompress -x /usr/share/info |
193 |
+ emake DESTDIR="${D}" emacsdir="${EPREFIX}/${SITELISP}/${PN}" install |
194 |
+ |
195 |
+ use tk && make_desktop_entry xmaxima xmaxima \ |
196 |
+ /usr/share/${PN}/${PV}/xmaxima/maxima-new.png \ |
197 |
+ "Science;Math;Education" |
198 |
+ |
199 |
+ # do not use dodoc because interfaces can't read compressed files |
200 |
+ # read COPYING before attempt to remove it from dodoc |
201 |
+ insinto /usr/share/${PN}/${PV}/doc |
202 |
+ doins AUTHORS COPYING README README.lisps |
203 |
+ dodir /usr/share/doc |
204 |
+ dosym ../${PN}/${PV}/doc /usr/share/doc/${PF} |
205 |
+ |
206 |
+ if use emacs; then |
207 |
+ elisp-install ${PN} interfaces/emacs/{emaxima,imaxima}/*.{el,elc,lisp} |
208 |
+ elisp-site-file-install "${FILESDIR}"/50maxima-gentoo-1.el |
209 |
+ |
210 |
+ rm "${ED}"/${SITELISP}/${PN}/emaxima.sty || die |
211 |
+ insinto ${TEXMF}/tex/latex/emaxima |
212 |
+ doins interfaces/emacs/emaxima/emaxima.sty |
213 |
+ |
214 |
+ insinto /usr/share/${PN}/${PV}/doc/imaxima |
215 |
+ doins interfaces/emacs/imaxima/README |
216 |
+ doins -r interfaces/emacs/imaxima/imath-example |
217 |
+ fi |
218 |
+ |
219 |
+ # if we use ecls, build an ecls library for maxima |
220 |
+ if use ecls; then |
221 |
+ ECLLIB=`ecl -eval "(princ (SI:GET-LIBRARY-PATHNAME))" -eval "(quit)"` |
222 |
+ insinto "${ECLLIB#${EPREFIX}}" |
223 |
+ doins src/binary-ecl/maxima.fas |
224 |
+ fi |
225 |
+} |
226 |
+ |
227 |
+pkg_postinst() { |
228 |
+ if use emacs; then |
229 |
+ elisp-site-regen |
230 |
+ mktexlsr |
231 |
+ fi |
232 |
+} |
233 |
+ |
234 |
+pkg_postrm() { |
235 |
+ if use emacs; then |
236 |
+ elisp-site-regen |
237 |
+ mktexlsr |
238 |
+ fi |
239 |
+} |