From b4d43e8c611df4a8061b6f88d9e9f6b1e3c83903 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 24 Jun 2021 14:47:38 +0100 Subject: gentoo resync : 24.06.2021 --- sci-mathematics/maxima/Manifest | 8 +- sci-mathematics/maxima/maxima-5.42.1-r1.ebuild | 213 ++++++++++++++++++++ sci-mathematics/maxima/maxima-5.42.1.ebuild | 212 -------------------- sci-mathematics/maxima/maxima-5.44.0-r10.ebuild | 236 ++++++++++++++++++++++ sci-mathematics/maxima/maxima-5.44.0-r4.ebuild | 252 ----------------------- sci-mathematics/maxima/maxima-5.44.0-r8.ebuild | 235 ---------------------- sci-mathematics/maxima/maxima-5.44.0-r9.ebuild | 253 ++++++++++++++++++++++++ sci-mathematics/maxima/maxima-5.45.1-r1.ebuild | 236 ++++++++++++++++++++++ sci-mathematics/maxima/maxima-5.45.1.ebuild | 235 ---------------------- 9 files changed, 942 insertions(+), 938 deletions(-) create mode 100644 sci-mathematics/maxima/maxima-5.42.1-r1.ebuild delete mode 100644 sci-mathematics/maxima/maxima-5.42.1.ebuild create mode 100644 sci-mathematics/maxima/maxima-5.44.0-r10.ebuild delete mode 100644 sci-mathematics/maxima/maxima-5.44.0-r4.ebuild delete mode 100644 sci-mathematics/maxima/maxima-5.44.0-r8.ebuild create mode 100644 sci-mathematics/maxima/maxima-5.44.0-r9.ebuild create mode 100644 sci-mathematics/maxima/maxima-5.45.1-r1.ebuild delete mode 100644 sci-mathematics/maxima/maxima-5.45.1.ebuild (limited to 'sci-mathematics/maxima') diff --git a/sci-mathematics/maxima/Manifest b/sci-mathematics/maxima/Manifest index 89acc33514e4..c4c37fd617df 100644 --- a/sci-mathematics/maxima/Manifest +++ b/sci-mathematics/maxima/Manifest @@ -16,8 +16,8 @@ AUX xdg-utils-1.patch 1313 BLAKE2B 35d6f88c505c5b1bb5ecf5691e17522b427a3f035f64d 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.1.tar.gz 39951932 BLAKE2B b6d67aebf34c12567ec5d08581dc22d13a902d42074abc967f8e50e029845a52a2538da8cb4382e3e28163ce11a6d8c245cfc48150cc10768250de34368acf6c SHA512 08e7a2b24324c0f0dda127d291b9d439125fa1324732b17c804c3eb68d35f87e3fc713c147472821a1781e6378b7afb0721d5da907826324ec3d24848251b7cf -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.1.ebuild 6348 BLAKE2B 0a760950cf06d57cdac784fda4f9dbe5799d8ec0e0fe42c621599391e5f4e4c6214bd288c5d2d639ff0656765f4ee62fbe5247ca43022e3b1aac835932fcff77 SHA512 0db7d5fb54b9dd9c8946edb1a6190fb6aa27d7f15f83fdb05f44b5abd947264d4ab2167b3ad64e88c4b40936203ca568432516baafc67adc38cbc65d7112c420 +EBUILD maxima-5.42.1-r1.ebuild 4915 BLAKE2B 6a1e69a325f186ca1c75c5ea04083778a147a58bcc8f5a92a9d2e9a8a4df3a9008864772afe7ca1e55e2e28361ba5ab3398627e217e03073f1d77c8334ba27dc SHA512 f749d004d177e75cba694729bdca07b361a0cd8280d4146faf525b076a2f6042ca0027626076c0d2184b0a48cc7f03000e44bd69ec1c7bb53caf424d8ed3e25e +EBUILD maxima-5.44.0-r10.ebuild 6372 BLAKE2B e3297b624215d728f9e2496548dd7f8120a580769a4d9a4900732b81410f6e10df28b132bb89272668ad29fbab8c95507ea9c7d0854894bff23ce3e82597ba0f SHA512 1f8d36eb61225a4a76250808964a6a6352a642c031ee129680a4f5cc6b418515c34c5c275478a4b46fcc41caffa3cc80d3111205b530b2384b313b46b481ea1b +EBUILD maxima-5.44.0-r9.ebuild 6298 BLAKE2B 8db82bbae80fd131141e5d5b8a700972865ae187b6b72956f14d48733ed91d54527e8784da044d63ee6c48f0c0604124dbe08aad856fbfd81bb61546aabb21d5 SHA512 f166a500b8bfc04de71d0851fe25fe8e9e48e5fe274d38099d5b9277c839ecb2fa4e6ec11c6b854921691b782a1c47b03001b0ac3723d6b9e42710bafc8cac78 +EBUILD maxima-5.45.1-r1.ebuild 6368 BLAKE2B 642dbc6ec8648978b235fa7302e880935b6fbc58bc966337d6ea0684f28db567410783d19496b212cb0636ded2734b22c228da40d879c9d38f4013d10853d304 SHA512 2efd0c2a23b155cb1c18bdf36c46a8bfe2cc12ea8541b8de02d992e0a4132225c94f502625a7418d599b80b3aa70317087a6bddc02998628f19e01d85c2e106c MISC metadata.xml 1733 BLAKE2B 30e06c199d4c4919ea90aa5a0b3091b124b4b43fc7791d758afdb0d94069edfafe386ddd7ddbeb9aa2589a5ec3866ecabd9d71c1b41380db6212529ad376c846 SHA512 2a9ccad0ef037a65f7dae3ac3769ab0bdf54ac8789387d3bcab0e022f9dfb77b019d14dc03bd7777937076e822c837511c12fd8198e7b9bd7eb6e621e46c0be4 diff --git a/sci-mathematics/maxima/maxima-5.42.1-r1.ebuild b/sci-mathematics/maxima/maxima-5.42.1-r1.ebuild new file mode 100644 index 000000000000..087518553d51 --- /dev/null +++ b/sci-mathematics/maxima/maxima-5.42.1-r1.ebuild @@ -0,0 +1,213 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools elisp-common eutils 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 ppc x86 ~amd64-linux ~x86-linux" + +# Supported lisps +LISPS=( sbcl cmucl gcl ecls clozurecl clisp ) +# supports readline: . - no, y - yes +SUPP_RL=( . . y . . y ) +# . - just --enable-, - --enable- +CONF_FLAG=( . . . ecl ccl . ) +# patch file version; . - no patch +PATCH_V=( 2 1 . 3 2 1 ) + +IUSE="emacs tk nls unicode X ${LISPS[*]}" + +# Languages +LANGS="de es pt pt_BR" +for lang in ${LANGS}; do + IUSE="${IUSE} l10n_${lang/_/-}" +done + +# texlive-latexrecommended needed by imaxima for breqn.sty +RDEPEND="!app-emacs/imaxima + virtual/libcrypt:= + X? ( x11-misc/xdg-utils + sci-visualization/gnuplot[gd] + tk? ( dev-lang/tk:0 ) ) + emacs? ( >=app-editors/emacs-23.1:* + virtual/latex-base + app-emacs/auctex + app-text/ghostscript-gpl + dev-texlive/texlive-latexrecommended )" + +# generating lisp dependencies +depends() { + local LISP DEP + LISP=${LISPS[$1]} + DEP="dev-lisp/${LISP}:=" + if [ "${SUPP_RL[$1]}" = "." ]; then + DEP="${DEP} app-misc/rlwrap" + fi + echo ${DEP} +} + +n=${#LISPS[*]} +for ((n--; n >= 0; n--)); do + LISP=${LISPS[${n}]} + RDEPEND="${RDEPEND} ${LISP}? ( $(depends ${n}) )" + DEF_DEP="${DEF_DEP} !${LISP}? ( " +done + +# default lisp +DEF_LISP=0 # sbcl +ARM_LISP=2 # gcl +DEF_DEP="${DEF_DEP} arm? ( `depends ${ARM_LISP}` ) !arm? ( `depends ${DEF_LISP}` )" + +n=${#LISPS[*]} +for ((n--; n >= 0; n--)); do + DEF_DEP="${DEF_DEP} )" +done + +unset LISP + +RDEPEND="${RDEPEND} + ${DEF_DEP}" + +DEPEND="${RDEPEND} + sys-apps/texinfo" + +TEXMF="${EPREFIX}"/usr/share/texmf-site + +pkg_setup() { + local n=${#LISPS[*]} + + for ((n--; n >= 0; n--)); do + use ${LISPS[${n}]} && NLISPS="${NLISPS} ${n}" + done + + if [ -z "${NLISPS}" ]; then + use arm && DEF_LISP=${ARM_LISP} + ewarn "No lisp specified in USE flags, choosing ${LISPS[${DEF_LISP}]} as default" + NLISPS=${DEF_LISP} + fi +} + +src_prepare() { + local n PATCHES v + PATCHES=( emacs-0 rmaxima-0 wish-2 xdg-utils-1 ) + + n=${#PATCHES[*]} + for ((n--; n >= 0; n--)); do + eapply "${FILESDIR}"/${PATCHES[${n}]}.patch + done + + n=${#LISPS[*]} + for ((n--; n >= 0; n--)); do + v=${PATCH_V[${n}]} + if [ "${v}" != "." ]; then + eapply "${FILESDIR}"/${LISPS[${n}]}-${v}.patch + fi + done + + eapply_user + + # bug #343331 + rm share/Makefile.in || die + rm src/Makefile.in || die + touch src/*.mk + touch src/Makefile.am + eautoreconf +} + +src_configure() { + local CONFS CONF n lang + for n in ${NLISPS}; do + CONF=${CONF_FLAG[${n}]} + if [ ${CONF} = . ]; then + CONF=${LISPS[${n}]} + fi + CONFS="${CONFS} --enable-${CONF}" + done + + # 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 + + econf ${CONFS} \ + $(use_with tk wish) \ + $(use_enable emacs) \ + --with-lispdir="${EPREFIX}/${SITELISP}/${PN}" +} + +src_compile() { + emake + 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 + + use tk && make_desktop_entry xmaxima xmaxima \ + /usr/share/${PN}/${PV}/xmaxima/maxima-new.png \ + "Science;Math;Education" + + # 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 + 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 + fi + + # if we use ecls, build an ecls library for maxima + if use ecls; then + 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 +} diff --git a/sci-mathematics/maxima/maxima-5.42.1.ebuild b/sci-mathematics/maxima/maxima-5.42.1.ebuild deleted file mode 100644 index fa012edc92b3..000000000000 --- a/sci-mathematics/maxima/maxima-5.42.1.ebuild +++ /dev/null @@ -1,212 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit autotools elisp-common eutils 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 ppc x86 ~amd64-linux ~x86-linux" - -# Supported lisps -LISPS=( sbcl cmucl gcl ecls clozurecl clisp ) -# supports readline: . - no, y - yes -SUPP_RL=( . . y . . y ) -# . - just --enable-, - --enable- -CONF_FLAG=( . . . ecl ccl . ) -# patch file version; . - no patch -PATCH_V=( 2 1 . 3 2 1 ) - -IUSE="emacs tk nls unicode X ${LISPS[*]}" - -# Languages -LANGS="de es pt pt_BR" -for lang in ${LANGS}; do - IUSE="${IUSE} l10n_${lang/_/-}" -done - -# texlive-latexrecommended needed by imaxima for breqn.sty -RDEPEND="!app-emacs/imaxima - X? ( x11-misc/xdg-utils - sci-visualization/gnuplot[gd] - tk? ( dev-lang/tk:0 ) ) - emacs? ( >=app-editors/emacs-23.1:* - virtual/latex-base - app-emacs/auctex - app-text/ghostscript-gpl - dev-texlive/texlive-latexrecommended )" - -# generating lisp dependencies -depends() { - local LISP DEP - LISP=${LISPS[$1]} - DEP="dev-lisp/${LISP}:=" - if [ "${SUPP_RL[$1]}" = "." ]; then - DEP="${DEP} app-misc/rlwrap" - fi - echo ${DEP} -} - -n=${#LISPS[*]} -for ((n--; n >= 0; n--)); do - LISP=${LISPS[${n}]} - RDEPEND="${RDEPEND} ${LISP}? ( $(depends ${n}) )" - DEF_DEP="${DEF_DEP} !${LISP}? ( " -done - -# default lisp -DEF_LISP=0 # sbcl -ARM_LISP=2 # gcl -DEF_DEP="${DEF_DEP} arm? ( `depends ${ARM_LISP}` ) !arm? ( `depends ${DEF_LISP}` )" - -n=${#LISPS[*]} -for ((n--; n >= 0; n--)); do - DEF_DEP="${DEF_DEP} )" -done - -unset LISP - -RDEPEND="${RDEPEND} - ${DEF_DEP}" - -DEPEND="${RDEPEND} - sys-apps/texinfo" - -TEXMF="${EPREFIX}"/usr/share/texmf-site - -pkg_setup() { - local n=${#LISPS[*]} - - for ((n--; n >= 0; n--)); do - use ${LISPS[${n}]} && NLISPS="${NLISPS} ${n}" - done - - if [ -z "${NLISPS}" ]; then - use arm && DEF_LISP=${ARM_LISP} - ewarn "No lisp specified in USE flags, choosing ${LISPS[${DEF_LISP}]} as default" - NLISPS=${DEF_LISP} - fi -} - -src_prepare() { - local n PATCHES v - PATCHES=( emacs-0 rmaxima-0 wish-2 xdg-utils-1 ) - - n=${#PATCHES[*]} - for ((n--; n >= 0; n--)); do - eapply "${FILESDIR}"/${PATCHES[${n}]}.patch - done - - n=${#LISPS[*]} - for ((n--; n >= 0; n--)); do - v=${PATCH_V[${n}]} - if [ "${v}" != "." ]; then - eapply "${FILESDIR}"/${LISPS[${n}]}-${v}.patch - fi - done - - eapply_user - - # bug #343331 - rm share/Makefile.in || die - rm src/Makefile.in || die - touch src/*.mk - touch src/Makefile.am - eautoreconf -} - -src_configure() { - local CONFS CONF n lang - for n in ${NLISPS}; do - CONF=${CONF_FLAG[${n}]} - if [ ${CONF} = . ]; then - CONF=${LISPS[${n}]} - fi - CONFS="${CONFS} --enable-${CONF}" - done - - # 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 - - econf ${CONFS} \ - $(use_with tk wish) \ - $(use_enable emacs) \ - --with-lispdir="${EPREFIX}/${SITELISP}/${PN}" -} - -src_compile() { - emake - 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 - - use tk && make_desktop_entry xmaxima xmaxima \ - /usr/share/${PN}/${PV}/xmaxima/maxima-new.png \ - "Science;Math;Education" - - # 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 - 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 - fi - - # if we use ecls, build an ecls library for maxima - if use ecls; then - 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 -} diff --git a/sci-mathematics/maxima/maxima-5.44.0-r10.ebuild b/sci-mathematics/maxima/maxima-5.44.0-r10.ebuild new file mode 100644 index 000000000000..7b3910f71060 --- /dev/null +++ b/sci-mathematics/maxima/maxima-5.44.0-r10.ebuild @@ -0,0 +1,236 @@ +# 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} + virtual/libcrypt:= + 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}/support-new-vtk.patch" + "${FILESDIR}/dont-hardcode-python.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 + 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 +} diff --git a/sci-mathematics/maxima/maxima-5.44.0-r4.ebuild b/sci-mathematics/maxima/maxima-5.44.0-r4.ebuild deleted file mode 100644 index 3babe7349ba0..000000000000 --- a/sci-mathematics/maxima/maxima-5.44.0-r4.ebuild +++ /dev/null @@ -1,252 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python3_{7,8} ) - -inherit autotools elisp-common eutils 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" - -# Supported lisps -LISPS=( sbcl cmucl gcl ecls clozurecl clisp ) -# supports readline: . - no, y - yes -SUPP_RL=( . . y . . y ) -# . - just --enable-, - --enable- -CONF_FLAG=( . . . ecl ccl . ) -# patch file version; . - no patch -PATCH_V=( 2 1 . 4 3 1 ) - -IUSE="emacs gui nls unicode vtk X test ${LISPS[*]}" -RESTRICT="!test? ( test )" - -# Languages -LANGS="de es pt pt_BR" -for lang in ${LANGS}; do - IUSE="${IUSE} l10n_${lang/_/-}" -done - -# 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. -RDEPEND=" - X? ( - x11-misc/xdg-utils - sci-visualization/gnuplot[gd] - vtk? ( - ${PYTHON_DEPS} - sci-libs/vtk[python,rendering,${PYTHON_SINGLE_USEDEP}] - ) - ) - emacs? ( - >=app-editors/emacs-23.1:* - virtual/latex-base - app-emacs/auctex - app-text/ghostscript-gpl - dev-texlive/texlive-latexrecommended - ) - gui? ( dev-lang/tk:0 )" - -# generating lisp dependencies -depends() { - local LISP DEP - LISP=${LISPS[$1]} - DEP="dev-lisp/${LISP}:=" - if [ "${SUPP_RL[$1]}" = "." ]; then - DEP="${DEP} app-misc/rlwrap" - fi - echo ${DEP} -} - -n=${#LISPS[*]} -for ((n--; n >= 0; n--)); do - LISP=${LISPS[${n}]} - RDEPEND="${RDEPEND} ${LISP}? ( $(depends ${n}) )" - DEF_DEP="${DEF_DEP} !${LISP}? ( " -done - -# default lisp -DEF_LISP=0 # sbcl -ARM_LISP=2 # gcl -DEF_DEP="${DEF_DEP} arm? ( `depends ${ARM_LISP}` ) !arm? ( `depends ${DEF_LISP}` )" - -n=${#LISPS[*]} -for ((n--; n >= 0; n--)); do - DEF_DEP="${DEF_DEP} )" -done - -unset LISP - -# 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} gui? ( X )" - -RDEPEND="${RDEPEND} - ${DEF_DEP}" - -# Python is used in e.g. doc/info/build_html.sh to build the docs. -DEPEND="${PYTHON_DEPS} - ${RDEPEND} - test? ( sci-visualization/gnuplot ) - sys-apps/texinfo" - -TEXMF="${EPREFIX}"/usr/share/texmf-site - -pkg_setup() { - # Set the PYTHON variable to whatever it should be. - python-single-r1_pkg_setup - - local n=${#LISPS[*]} - - for ((n--; n >= 0; n--)); do - use ${LISPS[${n}]} && NLISPS="${NLISPS} ${n}" - done - - if [ -z "${NLISPS}" ]; then - use arm && DEF_LISP=${ARM_LISP} - ewarn "No lisp specified in USE flags, choosing ${LISPS[${DEF_LISP}]} as default" - NLISPS=${DEF_LISP} - fi -} - -src_prepare() { - local n PATCHES v - PATCHES=( emacs-0 rmaxima-0 wish-2 xdg-utils-1 - dont-hardcode-python support-new-vtk ) - - n=${#PATCHES[*]} - for ((n--; n >= 0; n--)); do - eapply "${FILESDIR}"/${PATCHES[${n}]}.patch - done - - n=${#LISPS[*]} - for ((n--; n >= 0; n--)); do - v=${PATCH_V[${n}]} - if [ "${v}" != "." ]; then - eapply "${FILESDIR}"/${LISPS[${n}]}-${v}.patch - fi - done - - eapply_user - - # bug #343331 - rm share/Makefile.in || die - rm src/Makefile.in || die - touch src/*.mk - touch src/Makefile.am - eautoreconf -} - -src_configure() { - local CONFS CONF n lang - for n in ${NLISPS}; do - CONF=${CONF_FLAG[${n}]} - if [ ${CONF} = . ]; then - CONF=${LISPS[${n}]} - fi - CONFS="${CONFS} --enable-${CONF}" - done - - # 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. - # - econf ${CONFS} \ - LDFLAGS="$(raw-ldflags)" \ - $(use_with gui wish) \ - $(use_enable emacs) \ - --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 - - use gui && make_desktop_entry xmaxima xmaxima \ - /usr/share/${PN}/${PV}/xmaxima/maxima-new.png \ - "Science;Math;Education" - - # 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 - 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 - 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 -} diff --git a/sci-mathematics/maxima/maxima-5.44.0-r8.ebuild b/sci-mathematics/maxima/maxima-5.44.0-r8.ebuild deleted file mode 100644 index 1ef1c4f672a8..000000000000 --- a/sci-mathematics/maxima/maxima-5.44.0-r8.ebuild +++ /dev/null @@ -1,235 +0,0 @@ -# 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}/support-new-vtk.patch" - "${FILESDIR}/dont-hardcode-python.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 - 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 -} diff --git a/sci-mathematics/maxima/maxima-5.44.0-r9.ebuild b/sci-mathematics/maxima/maxima-5.44.0-r9.ebuild new file mode 100644 index 000000000000..4f4ea7fe41d2 --- /dev/null +++ b/sci-mathematics/maxima/maxima-5.44.0-r9.ebuild @@ -0,0 +1,253 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python3_{7,8} ) + +inherit autotools elisp-common eutils 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" + +# Supported lisps +LISPS=( sbcl cmucl gcl ecls clozurecl clisp ) +# supports readline: . - no, y - yes +SUPP_RL=( . . y . . y ) +# . - just --enable-, - --enable- +CONF_FLAG=( . . . ecl ccl . ) +# patch file version; . - no patch +PATCH_V=( 2 1 . 4 3 1 ) + +IUSE="emacs gui nls unicode vtk X test ${LISPS[*]}" +RESTRICT="!test? ( test )" + +# Languages +LANGS="de es pt pt_BR" +for lang in ${LANGS}; do + IUSE="${IUSE} l10n_${lang/_/-}" +done + +# 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. +RDEPEND=" + virtual/libcrypt:= + X? ( + x11-misc/xdg-utils + sci-visualization/gnuplot[gd] + vtk? ( + ${PYTHON_DEPS} + sci-libs/vtk[python,rendering,${PYTHON_SINGLE_USEDEP}] + ) + ) + emacs? ( + >=app-editors/emacs-23.1:* + virtual/latex-base + app-emacs/auctex + app-text/ghostscript-gpl + dev-texlive/texlive-latexrecommended + ) + gui? ( dev-lang/tk:0 )" + +# generating lisp dependencies +depends() { + local LISP DEP + LISP=${LISPS[$1]} + DEP="dev-lisp/${LISP}:=" + if [ "${SUPP_RL[$1]}" = "." ]; then + DEP="${DEP} app-misc/rlwrap" + fi + echo ${DEP} +} + +n=${#LISPS[*]} +for ((n--; n >= 0; n--)); do + LISP=${LISPS[${n}]} + RDEPEND="${RDEPEND} ${LISP}? ( $(depends ${n}) )" + DEF_DEP="${DEF_DEP} !${LISP}? ( " +done + +# default lisp +DEF_LISP=0 # sbcl +ARM_LISP=2 # gcl +DEF_DEP="${DEF_DEP} arm? ( `depends ${ARM_LISP}` ) !arm? ( `depends ${DEF_LISP}` )" + +n=${#LISPS[*]} +for ((n--; n >= 0; n--)); do + DEF_DEP="${DEF_DEP} )" +done + +unset LISP + +# 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} gui? ( X )" + +RDEPEND="${RDEPEND} + ${DEF_DEP}" + +# Python is used in e.g. doc/info/build_html.sh to build the docs. +DEPEND="${PYTHON_DEPS} + ${RDEPEND} + test? ( sci-visualization/gnuplot ) + sys-apps/texinfo" + +TEXMF="${EPREFIX}"/usr/share/texmf-site + +pkg_setup() { + # Set the PYTHON variable to whatever it should be. + python-single-r1_pkg_setup + + local n=${#LISPS[*]} + + for ((n--; n >= 0; n--)); do + use ${LISPS[${n}]} && NLISPS="${NLISPS} ${n}" + done + + if [ -z "${NLISPS}" ]; then + use arm && DEF_LISP=${ARM_LISP} + ewarn "No lisp specified in USE flags, choosing ${LISPS[${DEF_LISP}]} as default" + NLISPS=${DEF_LISP} + fi +} + +src_prepare() { + local n PATCHES v + PATCHES=( emacs-0 rmaxima-0 wish-2 xdg-utils-1 + dont-hardcode-python support-new-vtk ) + + n=${#PATCHES[*]} + for ((n--; n >= 0; n--)); do + eapply "${FILESDIR}"/${PATCHES[${n}]}.patch + done + + n=${#LISPS[*]} + for ((n--; n >= 0; n--)); do + v=${PATCH_V[${n}]} + if [ "${v}" != "." ]; then + eapply "${FILESDIR}"/${LISPS[${n}]}-${v}.patch + fi + done + + eapply_user + + # bug #343331 + rm share/Makefile.in || die + rm src/Makefile.in || die + touch src/*.mk + touch src/Makefile.am + eautoreconf +} + +src_configure() { + local CONFS CONF n lang + for n in ${NLISPS}; do + CONF=${CONF_FLAG[${n}]} + if [ ${CONF} = . ]; then + CONF=${LISPS[${n}]} + fi + CONFS="${CONFS} --enable-${CONF}" + done + + # 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. + # + econf ${CONFS} \ + LDFLAGS="$(raw-ldflags)" \ + $(use_with gui wish) \ + $(use_enable emacs) \ + --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 + + use gui && make_desktop_entry xmaxima xmaxima \ + /usr/share/${PN}/${PV}/xmaxima/maxima-new.png \ + "Science;Math;Education" + + # 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 + 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 + 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 +} diff --git a/sci-mathematics/maxima/maxima-5.45.1-r1.ebuild b/sci-mathematics/maxima/maxima-5.45.1-r1.ebuild new file mode 100644 index 000000000000..43eddc8c8b58 --- /dev/null +++ b/sci-mathematics/maxima/maxima-5.45.1-r1.ebuild @@ -0,0 +1,236 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) + +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} + virtual/libcrypt:= + emacs? ( >=app-editors/emacs-26:* ) + 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 +} diff --git a/sci-mathematics/maxima/maxima-5.45.1.ebuild b/sci-mathematics/maxima/maxima-5.45.1.ebuild deleted file mode 100644 index 02d33fe5db64..000000000000 --- a/sci-mathematics/maxima/maxima-5.45.1.ebuild +++ /dev/null @@ -1,235 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7..9} ) - -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-26:* ) - 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