1 |
commit: 8cd70491439b3fed4437292b81c492a25d10be4a |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 21 04:09:04 2021 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 21 04:09:04 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cd70491 |
7 |
|
8 |
sci-mathematics/maxima: clean 5.45.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org> |
12 |
|
13 |
sci-mathematics/maxima/Manifest | 1 - |
14 |
sci-mathematics/maxima/maxima-5.45.0.ebuild | 235 ---------------------------- |
15 |
2 files changed, 236 deletions(-) |
16 |
|
17 |
diff --git a/sci-mathematics/maxima/Manifest b/sci-mathematics/maxima/Manifest |
18 |
index 94e8ada3253..3a69a930b00 100644 |
19 |
--- a/sci-mathematics/maxima/Manifest |
20 |
+++ b/sci-mathematics/maxima/Manifest |
21 |
@@ -1,4 +1,3 @@ |
22 |
DIST maxima-5.42.1.tar.gz 41865510 BLAKE2B d3b8a50594dc0cef0c354c42be1aee96df77a4e222dbe457edeb47d7fe77a8fe376b10ce8da9e4ff6c447242e9c53a32286d09a64d8600112f6feda92f1fb58d SHA512 79c5e70119b0384d9dd8aa47c7e96a0ccb7e6367526b8a14d21f00137a1c2f0c8b7990bb7231d7c90ffa0090f67c1fa30a418d013d9c5982030ae68de9717f48 |
23 |
DIST maxima-5.44.0.tar.gz 34976354 BLAKE2B d6870b6fb0581d9e60d6ed97c7daed8ce12b8b1ae49d0edb7b8d31dd723f9b879eb70440659ff958f53cee16d8d2a92f80dcaa3898d9f6dbabd79a5059073a65 SHA512 1e043bebb7c6d002c113d8de20a98d58d1a8e7bedfc9bcf52819e7c7554655991dc2f42f0333889706574249736db833a237b3e59b967e7e42ede28262e31f2f |
24 |
-DIST maxima-5.45.0.tar.gz 39946933 BLAKE2B bdccb6cb88d458eec4359b7bc0b5337c9d1d0af9fe4cfeece9c80e840a2aa3963793cdf5c02437b72af647ef6c9306224c524f5a715860808d3b49ad5a85641f SHA512 353d33a89e5fd1986e84698866cc9716307a5ab3c7a29908ed474b5d00f6f8869f616334ff068c2c5d175c4bbb95f892d6061b12e43686ee4813b9a16e5a4139 |
25 |
DIST maxima-5.45.1.tar.gz 39951932 BLAKE2B b6d67aebf34c12567ec5d08581dc22d13a902d42074abc967f8e50e029845a52a2538da8cb4382e3e28163ce11a6d8c245cfc48150cc10768250de34368acf6c SHA512 08e7a2b24324c0f0dda127d291b9d439125fa1324732b17c804c3eb68d35f87e3fc713c147472821a1781e6378b7afb0721d5da907826324ec3d24848251b7cf |
26 |
|
27 |
diff --git a/sci-mathematics/maxima/maxima-5.45.0.ebuild b/sci-mathematics/maxima/maxima-5.45.0.ebuild |
28 |
deleted file mode 100644 |
29 |
index d76b8b91037..00000000000 |
30 |
--- a/sci-mathematics/maxima/maxima-5.45.0.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,235 +0,0 @@ |
33 |
-# Copyright 1999-2021 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=7 |
37 |
- |
38 |
-PYTHON_COMPAT=( python3_{7,8} ) |
39 |
- |
40 |
-inherit autotools elisp-common flag-o-matic python-single-r1 xdg-utils |
41 |
- |
42 |
-DESCRIPTION="Free computer algebra environment based on Macsyma" |
43 |
-HOMEPAGE="http://maxima.sourceforge.net/" |
44 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
45 |
- |
46 |
-LICENSE="GPL-2 GPL-2+" |
47 |
-SLOT="0" |
48 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
49 |
- |
50 |
-IUSE="clisp clozurecl clozurecl64 cmucl ecls emacs gcl gui nls +sbcl unicode vtk X test" |
51 |
-RESTRICT="!test? ( test )" |
52 |
- |
53 |
-# Languages |
54 |
-LANGS="de es pt pt_BR" |
55 |
-for lang in ${LANGS}; do |
56 |
- IUSE="${IUSE} l10n_${lang/_/-}" |
57 |
-done |
58 |
- |
59 |
-LISP_DEPEND=" |
60 |
- clisp? ( dev-lisp/clisp ) |
61 |
- clozurecl? ( dev-lisp/clozurecl app-misc/rlwrap ) |
62 |
- clozurecl64? ( dev-lisp/clozurecl app-misc/rlwrap ) |
63 |
- cmucl? ( dev-lisp/cmucl app-misc/rlwrap ) |
64 |
- ecls? ( dev-lisp/ecls app-misc/rlwrap ) |
65 |
- gcl? ( dev-lisp/gcl[ansi,readline] ) |
66 |
- sbcl? ( dev-lisp/sbcl app-misc/rlwrap ) |
67 |
-" |
68 |
- |
69 |
-# Python is used in e.g. doc/info/build_html.sh to build the docs. |
70 |
-# LISP_DEPEND is included in both BDEPEND and DEPEND because the various |
71 |
-# lisp engines are used to both compile and run maxima. It's possible |
72 |
-# that they don't (all?) need to be listed in DEPEND; who knows. |
73 |
-BDEPEND=" |
74 |
- ${PYTHON_DEPS} |
75 |
- ${LISP_DEPEND} |
76 |
- test? ( sci-visualization/gnuplot ) |
77 |
- sys-apps/texinfo |
78 |
-" |
79 |
- |
80 |
-DEPEND=" |
81 |
- ${LISP_DEPEND} |
82 |
- emacs? ( >=app-editors/emacs-26:* ) |
83 |
- gui? ( dev-lang/tk:0 ) |
84 |
-" |
85 |
- |
86 |
-# texlive-latexrecommended needed by imaxima for breqn.sty |
87 |
-# |
88 |
-# VTK is an optional plotting backend that can be enabled by |
89 |
-# running "draw_renderer: 'vtk;" within maxima. |
90 |
-# |
91 |
-# It's NON-optional for the scene() command, but that command is |
92 |
-# currently useless since Tcl/Tk support was dropped in sci-libs/vtk. |
93 |
-# Thus we include VTK only as an optional dependency. |
94 |
-# |
95 |
-# We require app-misc/rlwrap for any lisps that don't support readline |
96 |
-# themselves. |
97 |
-RDEPEND=" |
98 |
- ${DEPEND} |
99 |
- X? ( |
100 |
- x11-misc/xdg-utils |
101 |
- sci-visualization/gnuplot[gd] |
102 |
- vtk? ( |
103 |
- ${PYTHON_DEPS} |
104 |
- sci-libs/vtk[python,rendering,${PYTHON_SINGLE_USEDEP}] |
105 |
- ) |
106 |
- ) |
107 |
- emacs? ( |
108 |
- virtual/latex-base |
109 |
- app-emacs/auctex |
110 |
- app-text/ghostscript-gpl |
111 |
- dev-texlive/texlive-latexrecommended |
112 |
- )" |
113 |
- |
114 |
-# Maxima can make use of X features like plotting (and launching a PNG |
115 |
-# viewer) from the console, but you can't use the xmaxima GUI without X. |
116 |
-REQUIRED_USE=" |
117 |
- ${PYTHON_REQUIRED_USE} |
118 |
- || ( clisp clozurecl clozurecl64 cmucl ecls gcl sbcl ) |
119 |
- gui? ( X )" |
120 |
- |
121 |
-TEXMF="${EPREFIX}"/usr/share/texmf-site |
122 |
- |
123 |
-pkg_setup() { |
124 |
- # Set the PYTHON variable to whatever it should be. |
125 |
- python-single-r1_pkg_setup |
126 |
-} |
127 |
- |
128 |
-PATCHES=( |
129 |
- "${FILESDIR}/dont-hardcode-python.patch" |
130 |
- "${FILESDIR}/imaxima-0.patch" |
131 |
- "${FILESDIR}/xdg-utils-1.patch" |
132 |
- "${FILESDIR}/wish-2.patch" |
133 |
- "${FILESDIR}/rmaxima-0.patch" |
134 |
- "${FILESDIR}/emacs-0.patch" |
135 |
- "${FILESDIR}/clisp-1.patch" |
136 |
- "${FILESDIR}/clozurecl-3.patch" |
137 |
- "${FILESDIR}/ecls-4.patch" |
138 |
- "${FILESDIR}/cmucl-1.patch" |
139 |
- "${FILESDIR}/sbcl-2.patch" |
140 |
-) |
141 |
- |
142 |
-src_prepare() { |
143 |
- default |
144 |
- |
145 |
- # bug #343331 |
146 |
- rm share/Makefile.in || die |
147 |
- rm src/Makefile.in || die |
148 |
- touch src/*.mk |
149 |
- touch src/Makefile.am |
150 |
- |
151 |
- eautoreconf |
152 |
-} |
153 |
- |
154 |
-src_configure() { |
155 |
- local CONFS="" |
156 |
- |
157 |
- # enable existing translated doc |
158 |
- if use nls; then |
159 |
- for lang in ${LANGS}; do |
160 |
- if use "l10n_${lang/_/-}"; then |
161 |
- CONFS="${CONFS} --enable-lang-${lang}" |
162 |
- use unicode && CONFS="${CONFS} --enable-lang-${lang}-utf8" |
163 |
- fi |
164 |
- done |
165 |
- fi |
166 |
- |
167 |
- # Using raw-ldflags fixes the error, |
168 |
- # |
169 |
- # x86_64-pc-linux-gnu/bin/ld: fatal error: -O1 -Wl: invalid option |
170 |
- # value (expected an integer): 1 -Wl |
171 |
- # |
172 |
- # when building the maxima.fas library for ECL. See upstream bugs: |
173 |
- # |
174 |
- # * https://sourceforge.net/p/maxima/bugs/3759/ |
175 |
- # * https://gitlab.com/embeddable-common-lisp/ecl/-/issues/636 |
176 |
- # |
177 |
- # The 32-bit and 64-bit version of the clozurecl executable |
178 |
- # are both called "ccl" on Gentoo, so we need the additional |
179 |
- # use_with for clozurecl64. See bugs 665364 and 715278.... |
180 |
- # |
181 |
- # The usex works around https://sourceforge.net/p/maxima/bugs/3757/ |
182 |
- # |
183 |
- econf ${CONFS} \ |
184 |
- LDFLAGS="$(raw-ldflags)" \ |
185 |
- $(use_enable clisp) \ |
186 |
- $(use_enable clozurecl ccl) \ |
187 |
- $(use_enable clozurecl64 ccl64) \ |
188 |
- $(usex clozurecl64 "--with-ccl64=ccl" "") \ |
189 |
- $(use_enable cmucl) \ |
190 |
- $(use_enable ecls ecl) \ |
191 |
- $(use_enable emacs) \ |
192 |
- $(use_enable gcl) \ |
193 |
- $(use_with gui wish) \ |
194 |
- $(use_enable sbcl) \ |
195 |
- --with-lispdir="${EPREFIX}/${SITELISP}/${PN}" |
196 |
-} |
197 |
- |
198 |
-src_compile() { |
199 |
- # The variable PYTHONBIN is used in one place while building the |
200 |
- # German documentation. Some day that script should be converted |
201 |
- # to use the value of @PYTHON@ obtained during ./configure. |
202 |
- emake PYTHONBIN="${PYTHON}" |
203 |
- if use emacs; then |
204 |
- pushd interfaces/emacs/emaxima > /dev/null |
205 |
- elisp-compile *.el |
206 |
- popd > /dev/null |
207 |
- pushd interfaces/emacs/imaxima > /dev/null |
208 |
- BYTECOMPFLAGS="-L . -L ../emaxima" |
209 |
- elisp-compile *.el |
210 |
- popd > /dev/null |
211 |
- fi |
212 |
-} |
213 |
- |
214 |
-src_install() { |
215 |
- docompress -x /usr/share/info |
216 |
- emake DESTDIR="${D}" emacsdir="${EPREFIX}/${SITELISP}/${PN}" install |
217 |
- |
218 |
- # do not use dodoc because interfaces can't read compressed files |
219 |
- # read COPYING before attempt to remove it from dodoc |
220 |
- insinto /usr/share/${PN}/${PV}/doc |
221 |
- doins AUTHORS COPYING README README-lisps.md |
222 |
- dodir /usr/share/doc |
223 |
- dosym ../${PN}/${PV}/doc /usr/share/doc/${PF} |
224 |
- |
225 |
- if use emacs; then |
226 |
- elisp-install ${PN} interfaces/emacs/{emaxima,imaxima}/*.{el,elc,lisp} |
227 |
- elisp-site-file-install "${FILESDIR}"/50maxima-gentoo-1.el |
228 |
- |
229 |
- rm "${ED}"/${SITELISP}/${PN}/emaxima.sty || die |
230 |
- insinto ${TEXMF}/tex/latex/emaxima |
231 |
- doins interfaces/emacs/emaxima/emaxima.sty |
232 |
- |
233 |
- insinto /usr/share/${PN}/${PV}/doc/imaxima |
234 |
- doins interfaces/emacs/imaxima/README |
235 |
- doins -r interfaces/emacs/imaxima/imath-example |
236 |
- |
237 |
- if ! use gcl; then |
238 |
- # This emacs package is used to run gcl, maxima, gdb, etc. |
239 |
- # all at once and possibly in the same buffer. As such, it's |
240 |
- # no use without gcl (more to the point: it requires gcl.el). |
241 |
- find "${ED}" -name 'dbl.el' -type f -delete || die |
242 |
- fi |
243 |
- fi |
244 |
- |
245 |
- if use ecls; then |
246 |
- # Use ECL to find the path where it expects to load packages from. |
247 |
- ECLLIB=$(ecl -eval "(princ (SI:GET-LIBRARY-PATHNAME))" -eval "(quit)") |
248 |
- insinto "${ECLLIB#${EPREFIX}}" |
249 |
- doins src/binary-ecl/maxima.fas |
250 |
- fi |
251 |
-} |
252 |
- |
253 |
-pkg_postinst() { |
254 |
- xdg_mimeinfo_database_update |
255 |
- if use emacs; then |
256 |
- elisp-site-regen |
257 |
- mktexlsr |
258 |
- fi |
259 |
-} |
260 |
- |
261 |
-pkg_postrm() { |
262 |
- xdg_mimeinfo_database_update |
263 |
- if use emacs; then |
264 |
- elisp-site-regen |
265 |
- mktexlsr |
266 |
- fi |
267 |
-} |