From e748ba9741f6540f4675c23e3e37b73e822c13a4 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 31 May 2021 20:59:14 +0100 Subject: gentoo resync : 31.05.2021 --- sci-mathematics/maxima/Manifest | 3 + sci-mathematics/maxima/files/imaxima-0.patch | 10 ++ sci-mathematics/maxima/maxima-5.45.0.ebuild | 235 +++++++++++++++++++++++++++ 3 files changed, 248 insertions(+) create mode 100644 sci-mathematics/maxima/files/imaxima-0.patch create mode 100644 sci-mathematics/maxima/maxima-5.45.0.ebuild (limited to 'sci-mathematics/maxima') diff --git a/sci-mathematics/maxima/Manifest b/sci-mathematics/maxima/Manifest index b9adb1edc4be..225e2da1d0a6 100644 --- a/sci-mathematics/maxima/Manifest +++ b/sci-mathematics/maxima/Manifest @@ -7,6 +7,7 @@ AUX dont-hardcode-python.patch 1702 BLAKE2B 8d784d665840325f40db95c0f50158e1c89e AUX ecls-3.patch 2147 BLAKE2B d454b620f01d734d6a774f64dbac67f0996aeacc2a029225cc8a9269211169e7b69237f8b734b92b1f037b5abdcd7ec3ba374924b498fdc63025a1eca5a0d9e6 SHA512 1fcaa4a79d4aaf08dd4162c6d59f8f168909320575a43dcb435cbd758338244ac3b89888501f4cb1fc0f9d8d43b3abe587bc898aacb45c19ba0858f74512366e AUX ecls-4.patch 726 BLAKE2B 7aa2520c10b1c142297791c0d87c9e65578ba6b2f3c7402f2c4bb2474fc1c22f85f0f27bed0530bd711e785a0bec500ef6a57b53d9481300901d11f1131126c9 SHA512 0d1616aba389a43e646ef99dd5d9176b2e49ad0569d9a63dea5562b829748f1a1e0d599fb0b359ffc7031ed43c7f08c4cea2ab9a3a97be49f09a7394a280aa15 AUX emacs-0.patch 807 BLAKE2B 82c879f9c252c4efefb007f8553e845ddc52d76af5cbeab740a1f2bde459b5e87957e0f3e5a9d76d5c1e879ddbebdfb9a6d6b80745cc40e3ddc4379887f4e9b2 SHA512 f62d364651838ed196a2e8965930b42313cb73f912b898b953b526ffc5dc0135841b53618fbbb6a32d21d3412ba5f2bfb253bf41c640a136f68d830f43628ac4 +AUX imaxima-0.patch 598 BLAKE2B 1c7593840556e723660e735c7bffd706b365c76d18b0a1d7e07eb318794e9b7d4f54173fd2efca06c57e5a0713983e01fe86a24752df7cc1ea540101374ed922 SHA512 3c7d846197fa1996ae8cd4210cfb80e613bc659fd3086f0f8df381ab7ee12f329aba3ce616059afa35e378c26b28a653f7aaed7ff47e3b2febf2f98010252b71 AUX rmaxima-0.patch 552 BLAKE2B 8b8ceb5ea671049490ab006be31f6e81f85d9e43950296db920b3a0d4eb8b19cd14b8b599c98e1dc82f69d441d04c631c4aec2315eaee68f791ddce75dc7ed56 SHA512 a60c8c5ac23b0342823fbcd15e27f44ea85652640271ea845e383796422fa416b221dd036eb0a1639f70f9b09473471657612c7a5f99892cfb214d52156a6907 AUX sbcl-2.patch 1072 BLAKE2B 3e16339b7b9acbbfcd424780432be4a4267b994c3a7a8774c95ff8335d48565d15dae3cba16b127a9184e4fe20b5d6930df2e385c2a15b9f58e2d0fa597665a1 SHA512 b8df0b53f4ae04e175dfab8889206ea8ffa83c51b2408322423d5f52cf956b1084e7d1ba0c054032f9121cb1684fcc6bb9d48b1a967f9e01492ad25c035b1c62 AUX support-new-vtk.patch 924 BLAKE2B 960c3342ca4374c03aff30d7d2326c6e826ffb2cb025952c8af381102ef2556b21e78ec9a4316740871ebf7afea1c8053f50342a7a66ad897fa6b79ac29b30fe SHA512 6cc8b0a67d6aa6bc87f003181a891c480420bed228ede8cd9f7143c5473f8e11a4fceb405e182ac00ce26f7380d714c6487ebb9fe4603d94e7e0111cbef68f75 @@ -14,7 +15,9 @@ AUX wish-2.patch 662 BLAKE2B ccc3879c7445fd916c921857ea9642fb54cc6b8eb647cb23c3f AUX xdg-utils-1.patch 1313 BLAKE2B 35d6f88c505c5b1bb5ecf5691e17522b427a3f035f64de095ba088fa9c6a6076e4c0f7f57794804b588798c2289d36397a95101bde890c363aee9675bf8401e7 SHA512 5e5ab3196cf012ee768d108cc47da25c5afbaffca6f9a1aed9338a7154d377e6baf791d2c7bbe9191b823e056056379f190d8bf7b8ce689f44db892f5e375116 DIST maxima-5.42.1.tar.gz 41865510 BLAKE2B d3b8a50594dc0cef0c354c42be1aee96df77a4e222dbe457edeb47d7fe77a8fe376b10ce8da9e4ff6c447242e9c53a32286d09a64d8600112f6feda92f1fb58d SHA512 79c5e70119b0384d9dd8aa47c7e96a0ccb7e6367526b8a14d21f00137a1c2f0c8b7990bb7231d7c90ffa0090f67c1fa30a418d013d9c5982030ae68de9717f48 DIST maxima-5.44.0.tar.gz 34976354 BLAKE2B d6870b6fb0581d9e60d6ed97c7daed8ce12b8b1ae49d0edb7b8d31dd723f9b879eb70440659ff958f53cee16d8d2a92f80dcaa3898d9f6dbabd79a5059073a65 SHA512 1e043bebb7c6d002c113d8de20a98d58d1a8e7bedfc9bcf52819e7c7554655991dc2f42f0333889706574249736db833a237b3e59b967e7e42ede28262e31f2f +DIST maxima-5.45.0.tar.gz 39946933 BLAKE2B bdccb6cb88d458eec4359b7bc0b5337c9d1d0af9fe4cfeece9c80e840a2aa3963793cdf5c02437b72af647ef6c9306224c524f5a715860808d3b49ad5a85641f SHA512 353d33a89e5fd1986e84698866cc9716307a5ab3c7a29908ed474b5d00f6f8869f616334ff068c2c5d175c4bbb95f892d6061b12e43686ee4813b9a16e5a4139 EBUILD maxima-5.42.1.ebuild 4895 BLAKE2B dd388cfe14cef36137a91ff71912c23390e176d796ce02c36f59cbb1e8993a03b16ee32b4e6d792e59d95bad3bcd90e3e9ded23abb1e3c371f466bd53f44502c SHA512 64c8a759525fff99c99831be56ea268b213392c65b1ef2e9db133addfaefead39710264c6a599eee7c53262ef16f75fbdbb35a9516a7054f0934d6fd46303520 EBUILD maxima-5.44.0-r4.ebuild 6278 BLAKE2B 9da7f0e09a3b6f370b20ce11915e4d9e893c1e1ea499ebfcf22d81ee2a0c17053b1e38450551855ac62356e3d4b8201f9a067ff94e169a00eb6c5a42ed73d82d SHA512 03083941bd72b72341edd0d5b35501b309a62d14bde6be6555d670e6a21b85ed800c35810dec1a713d6ffc59e0b8279a4daa4fb85385676412d0bff877d94dd4 EBUILD maxima-5.44.0-r8.ebuild 6352 BLAKE2B e74faa47dd0ba27775e386b81c04e57cc94e992a7b2d0aa78aa24002bfa8256f9baaab8aab6414971d035f57a1bdcc522240975b523fe45c00d588e48af46684 SHA512 5ef06927b60d9c4071cd0a696ab9e3c66ebfc4ea0e8f48ee53675345804de996385da1f65666df4f6583a523c90493705485aa4c809daa7db58b24bd7639f5e4 +EBUILD maxima-5.45.0.ebuild 6349 BLAKE2B f9027a22e01e173860cc2752198db6286164fe9af92ca27bb79a7ecc6794981968322ff42762f3ddd620affcab1163035250aebffe719c03d20247c2350bb294 SHA512 3415b2e32d7b7ee9bf0f936ee950d5c911d98de90720d07cbb0e249dada4a0bedb556c2d7bb7116570cbc16af6f8fc9c5599bb45a774d8ffcf64c1eb47f2126d MISC metadata.xml 1733 BLAKE2B 30e06c199d4c4919ea90aa5a0b3091b124b4b43fc7791d758afdb0d94069edfafe386ddd7ddbeb9aa2589a5ec3866ecabd9d71c1b41380db6212529ad376c846 SHA512 2a9ccad0ef037a65f7dae3ac3769ab0bdf54ac8789387d3bcab0e022f9dfb77b019d14dc03bd7777937076e822c837511c12fd8198e7b9bd7eb6e621e46c0be4 diff --git a/sci-mathematics/maxima/files/imaxima-0.patch b/sci-mathematics/maxima/files/imaxima-0.patch new file mode 100644 index 000000000000..6e7ce2ee1a55 --- /dev/null +++ b/sci-mathematics/maxima/files/imaxima-0.patch @@ -0,0 +1,10 @@ +diff -r -U2 maxima-5.45.0.orig/interfaces/emacs/imaxima/setup-imaxima-imath.el maxima-5.45.0/interfaces/emacs/imaxima/setup-imaxima-imath.el +--- maxima-5.45.0.orig/interfaces/emacs/imaxima/setup-imaxima-imath.el 2021-05-16 06:20:53.000000000 +0700 ++++ maxima-5.45.0/interfaces/emacs/imaxima/setup-imaxima-imath.el 2021-05-25 18:31:38.005882847 +0700 +@@ -133,5 +133,5 @@ + ;;; imaxima-maxima-options should be "" instead of "(user::run)" + ;;; assigned in the imaxima.el +-(setq imaxima-maxima-options "") ++;(setq imaxima-maxima-options "") + + (autoload 'maxima "maxima" "Maxima CAS mode" t nil) diff --git a/sci-mathematics/maxima/maxima-5.45.0.ebuild b/sci-mathematics/maxima/maxima-5.45.0.ebuild new file mode 100644 index 000000000000..32f16ada3d35 --- /dev/null +++ b/sci-mathematics/maxima/maxima-5.45.0.ebuild @@ -0,0 +1,235 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8} ) + +inherit autotools elisp-common flag-o-matic python-single-r1 xdg-utils + +DESCRIPTION="Free computer algebra environment based on Macsyma" +HOMEPAGE="http://maxima.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2 GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +IUSE="clisp clozurecl clozurecl64 cmucl ecls emacs gcl gui nls +sbcl unicode vtk X test" +RESTRICT="!test? ( test )" + +# Languages +LANGS="de es pt pt_BR" +for lang in ${LANGS}; do + IUSE="${IUSE} l10n_${lang/_/-}" +done + +LISP_DEPEND=" + clisp? ( dev-lisp/clisp ) + clozurecl? ( dev-lisp/clozurecl app-misc/rlwrap ) + clozurecl64? ( dev-lisp/clozurecl app-misc/rlwrap ) + cmucl? ( dev-lisp/cmucl app-misc/rlwrap ) + ecls? ( dev-lisp/ecls app-misc/rlwrap ) + gcl? ( dev-lisp/gcl[ansi,readline] ) + sbcl? ( dev-lisp/sbcl app-misc/rlwrap ) +" + +# Python is used in e.g. doc/info/build_html.sh to build the docs. +# LISP_DEPEND is included in both BDEPEND and DEPEND because the various +# lisp engines are used to both compile and run maxima. It's possible +# that they don't (all?) need to be listed in DEPEND; who knows. +BDEPEND=" + ${PYTHON_DEPS} + ${LISP_DEPEND} + test? ( sci-visualization/gnuplot ) + sys-apps/texinfo +" + +DEPEND=" + ${LISP_DEPEND} + emacs? ( >=app-editors/emacs-23.1:* ) + gui? ( dev-lang/tk:0 ) +" + +# texlive-latexrecommended needed by imaxima for breqn.sty +# +# VTK is an optional plotting backend that can be enabled by +# running "draw_renderer: 'vtk;" within maxima. +# +# It's NON-optional for the scene() command, but that command is +# currently useless since Tcl/Tk support was dropped in sci-libs/vtk. +# Thus we include VTK only as an optional dependency. +# +# We require app-misc/rlwrap for any lisps that don't support readline +# themselves. +RDEPEND=" + ${DEPEND} + X? ( + x11-misc/xdg-utils + sci-visualization/gnuplot[gd] + vtk? ( + ${PYTHON_DEPS} + sci-libs/vtk[python,rendering,${PYTHON_SINGLE_USEDEP}] + ) + ) + emacs? ( + virtual/latex-base + app-emacs/auctex + app-text/ghostscript-gpl + dev-texlive/texlive-latexrecommended + )" + +# Maxima can make use of X features like plotting (and launching a PNG +# viewer) from the console, but you can't use the xmaxima GUI without X. +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + || ( clisp clozurecl clozurecl64 cmucl ecls gcl sbcl ) + gui? ( X )" + +TEXMF="${EPREFIX}"/usr/share/texmf-site + +pkg_setup() { + # Set the PYTHON variable to whatever it should be. + python-single-r1_pkg_setup +} + +PATCHES=( + "${FILESDIR}/dont-hardcode-python.patch" + "${FILESDIR}/imaxima-0.patch" + "${FILESDIR}/xdg-utils-1.patch" + "${FILESDIR}/wish-2.patch" + "${FILESDIR}/rmaxima-0.patch" + "${FILESDIR}/emacs-0.patch" + "${FILESDIR}/clisp-1.patch" + "${FILESDIR}/clozurecl-3.patch" + "${FILESDIR}/ecls-4.patch" + "${FILESDIR}/cmucl-1.patch" + "${FILESDIR}/sbcl-2.patch" +) + +src_prepare() { + default + + # bug #343331 + rm share/Makefile.in || die + rm src/Makefile.in || die + touch src/*.mk + touch src/Makefile.am + + eautoreconf +} + +src_configure() { + local CONFS="" + + # enable existing translated doc + if use nls; then + for lang in ${LANGS}; do + if use "l10n_${lang/_/-}"; then + CONFS="${CONFS} --enable-lang-${lang}" + use unicode && CONFS="${CONFS} --enable-lang-${lang}-utf8" + fi + done + fi + + # Using raw-ldflags fixes the error, + # + # x86_64-pc-linux-gnu/bin/ld: fatal error: -O1 -Wl: invalid option + # value (expected an integer): 1 -Wl + # + # when building the maxima.fas library for ECL. See upstream bugs: + # + # * https://sourceforge.net/p/maxima/bugs/3759/ + # * https://gitlab.com/embeddable-common-lisp/ecl/-/issues/636 + # + # The 32-bit and 64-bit version of the clozurecl executable + # are both called "ccl" on Gentoo, so we need the additional + # use_with for clozurecl64. See bugs 665364 and 715278.... + # + # The usex works around https://sourceforge.net/p/maxima/bugs/3757/ + # + econf ${CONFS} \ + LDFLAGS="$(raw-ldflags)" \ + $(use_enable clisp) \ + $(use_enable clozurecl ccl) \ + $(use_enable clozurecl64 ccl64) \ + $(usex clozurecl64 "--with-ccl64=ccl" "") \ + $(use_enable cmucl) \ + $(use_enable ecls ecl) \ + $(use_enable emacs) \ + $(use_enable gcl) \ + $(use_with gui wish) \ + $(use_enable sbcl) \ + --with-lispdir="${EPREFIX}/${SITELISP}/${PN}" +} + +src_compile() { + # The variable PYTHONBIN is used in one place while building the + # German documentation. Some day that script should be converted + # to use the value of @PYTHON@ obtained during ./configure. + emake PYTHONBIN="${PYTHON}" + if use emacs; then + pushd interfaces/emacs/emaxima > /dev/null + elisp-compile *.el + popd > /dev/null + pushd interfaces/emacs/imaxima > /dev/null + BYTECOMPFLAGS="-L . -L ../emaxima" + elisp-compile *.el + popd > /dev/null + fi +} + +src_install() { + docompress -x /usr/share/info + emake DESTDIR="${D}" emacsdir="${EPREFIX}/${SITELISP}/${PN}" install + + # do not use dodoc because interfaces can't read compressed files + # read COPYING before attempt to remove it from dodoc + insinto /usr/share/${PN}/${PV}/doc + doins AUTHORS COPYING README README-lisps.md + dodir /usr/share/doc + dosym ../${PN}/${PV}/doc /usr/share/doc/${PF} + + if use emacs; then + elisp-install ${PN} interfaces/emacs/{emaxima,imaxima}/*.{el,elc,lisp} + elisp-site-file-install "${FILESDIR}"/50maxima-gentoo-1.el + + rm "${ED}"/${SITELISP}/${PN}/emaxima.sty || die + insinto ${TEXMF}/tex/latex/emaxima + doins interfaces/emacs/emaxima/emaxima.sty + + insinto /usr/share/${PN}/${PV}/doc/imaxima + doins interfaces/emacs/imaxima/README + doins -r interfaces/emacs/imaxima/imath-example + + if ! use gcl; then + # This emacs package is used to run gcl, maxima, gdb, etc. + # all at once and possibly in the same buffer. As such, it's + # no use without gcl (more to the point: it requires gcl.el). + find "${ED}" -name 'dbl.el' -type f -delete || die + fi + fi + + if use ecls; then + # Use ECL to find the path where it expects to load packages from. + ECLLIB=$(ecl -eval "(princ (SI:GET-LIBRARY-PATHNAME))" -eval "(quit)") + insinto "${ECLLIB#${EPREFIX}}" + doins src/binary-ecl/maxima.fas + fi +} + +pkg_postinst() { + xdg_mimeinfo_database_update + if use emacs; then + elisp-site-regen + mktexlsr + fi +} + +pkg_postrm() { + xdg_mimeinfo_database_update + if use emacs; then + elisp-site-regen + mktexlsr + fi +} -- cgit v1.2.3