summaryrefslogtreecommitdiff
path: root/sci-mathematics
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-11-05 19:02:56 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-11-05 19:02:56 +0000
commit864ccd3aba62b24728eb0b963d8a1093555475c0 (patch)
treebb5a89762d7f5ee123655bf5cdf9406b27dc1759 /sci-mathematics
parent64f2ecf7f878941ddcb49fbeb10e26352844b683 (diff)
downloadbaldeagleos-repo-864ccd3aba62b24728eb0b963d8a1093555475c0.tar.gz
baldeagleos-repo-864ccd3aba62b24728eb0b963d8a1093555475c0.tar.xz
baldeagleos-repo-864ccd3aba62b24728eb0b963d8a1093555475c0.zip
Adding metadata
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/cgal/cgal-5.6.1.ebuild4
-rw-r--r--sci-mathematics/cgal/cgal-5.6.ebuild4
-rw-r--r--sci-mathematics/cgal/cgal-6.0.1.ebuild2
-rw-r--r--sci-mathematics/cgal/cgal-6.0.ebuild4
-rw-r--r--sci-mathematics/cgal/cgal-6.1.ebuild2
-rw-r--r--sci-mathematics/cryptominisat/cryptominisat-5.11.21-r2.ebuild2
-rw-r--r--sci-mathematics/form/form-4.3.1.ebuild4
-rw-r--r--sci-mathematics/form/form-5.0.0_beta1.ebuild4
-rw-r--r--sci-mathematics/gap/gap-4.14.0-r1.ebuild2
-rw-r--r--sci-mathematics/gap/gap-4.15.1.ebuild2
-rw-r--r--sci-mathematics/glpk/glpk-5.0-r3.ebuild2
-rw-r--r--sci-mathematics/mathmod/Manifest2
-rw-r--r--sci-mathematics/mathmod/files/mathmod-12.0-rm_complex.patch21
-rw-r--r--sci-mathematics/mathmod/files/mathmod-13.0-missing_include.patch26
-rw-r--r--sci-mathematics/mathmod/mathmod-13.0.ebuild (renamed from sci-mathematics/mathmod/mathmod-12.0.ebuild)6
-rw-r--r--sci-mathematics/maxima/files/sb-gmp-0.patch17
-rw-r--r--sci-mathematics/maxima/maxima-5.48.1-r1.ebuild235
-rw-r--r--sci-mathematics/minisat/minisat-2.2.1-r1.ebuild2
-rw-r--r--sci-mathematics/msieve/msieve-1.53-r1.ebuild4
-rw-r--r--sci-mathematics/msieve/msieve-1.53-r3.ebuild2
-rw-r--r--sci-mathematics/nauty/nauty-2.8.8-r1.ebuild4
-rw-r--r--sci-mathematics/octave/octave-9.2.0-r2.ebuild2
-rw-r--r--sci-mathematics/pspp/pspp-1.6.2-r3.ebuild2
-rw-r--r--sci-mathematics/pspp/pspp-2.0.1-r1.ebuild2
-rw-r--r--sci-mathematics/stp/stp-2.3.3-r3.ebuild4
-rw-r--r--sci-mathematics/stp/stp-2.3.4.ebuild4
26 files changed, 311 insertions, 54 deletions
diff --git a/sci-mathematics/cgal/cgal-5.6.1.ebuild b/sci-mathematics/cgal/cgal-5.6.1.ebuild
index bf8e155e7a1e..96331fb26580 100644
--- a/sci-mathematics/cgal/cgal-5.6.1.ebuild
+++ b/sci-mathematics/cgal/cgal-5.6.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -25,7 +25,7 @@ RDEPEND="
dev-libs/boost:=
dev-libs/gmp:=[cxx]
dev-libs/mpfr:=
- sys-libs/zlib
+ virtual/zlib:=
x11-libs/libX11:=
virtual/glu:=
virtual/opengl:=
diff --git a/sci-mathematics/cgal/cgal-5.6.ebuild b/sci-mathematics/cgal/cgal-5.6.ebuild
index caf9f936cf79..fa8a60e37526 100644
--- a/sci-mathematics/cgal/cgal-5.6.ebuild
+++ b/sci-mathematics/cgal/cgal-5.6.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -25,7 +25,7 @@ RDEPEND="
dev-libs/boost:=
dev-libs/gmp:=[cxx]
dev-libs/mpfr:=
- sys-libs/zlib
+ virtual/zlib:=
x11-libs/libX11:=
virtual/glu:=
virtual/opengl:=
diff --git a/sci-mathematics/cgal/cgal-6.0.1.ebuild b/sci-mathematics/cgal/cgal-6.0.1.ebuild
index 0f95bdcd6c32..7bbc08f3ae97 100644
--- a/sci-mathematics/cgal/cgal-6.0.1.ebuild
+++ b/sci-mathematics/cgal/cgal-6.0.1.ebuild
@@ -27,7 +27,7 @@ RDEPEND="
dev-libs/boost:=
dev-libs/gmp:=[cxx]
dev-libs/mpfr:=
- sys-libs/zlib
+ virtual/zlib:=
x11-libs/libX11:=
virtual/glu:=
virtual/opengl:=
diff --git a/sci-mathematics/cgal/cgal-6.0.ebuild b/sci-mathematics/cgal/cgal-6.0.ebuild
index 030ec1be556b..dfaa83e12fd9 100644
--- a/sci-mathematics/cgal/cgal-6.0.ebuild
+++ b/sci-mathematics/cgal/cgal-6.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -26,7 +26,7 @@ RDEPEND="
dev-libs/boost:=
dev-libs/gmp:=[cxx]
dev-libs/mpfr:=
- sys-libs/zlib
+ virtual/zlib:=
x11-libs/libX11:=
virtual/glu:=
virtual/opengl:=
diff --git a/sci-mathematics/cgal/cgal-6.1.ebuild b/sci-mathematics/cgal/cgal-6.1.ebuild
index bdcee522ccae..94857ca5cd71 100644
--- a/sci-mathematics/cgal/cgal-6.1.ebuild
+++ b/sci-mathematics/cgal/cgal-6.1.ebuild
@@ -25,7 +25,7 @@ RDEPEND="
dev-libs/boost:=
dev-libs/gmp:=[cxx]
dev-libs/mpfr:=
- sys-libs/zlib
+ virtual/zlib:=
x11-libs/libX11:=
virtual/glu:=
virtual/opengl:=
diff --git a/sci-mathematics/cryptominisat/cryptominisat-5.11.21-r2.ebuild b/sci-mathematics/cryptominisat/cryptominisat-5.11.21-r2.ebuild
index a94fe74282af..40806f62346c 100644
--- a/sci-mathematics/cryptominisat/cryptominisat-5.11.21-r2.ebuild
+++ b/sci-mathematics/cryptominisat/cryptominisat-5.11.21-r2.ebuild
@@ -35,7 +35,7 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RDEPEND="
dev-libs/boost:=
- sys-libs/zlib:=
+ virtual/zlib:=
python? (
${PYTHON_DEPS}
)
diff --git a/sci-mathematics/form/form-4.3.1.ebuild b/sci-mathematics/form/form-4.3.1.ebuild
index 8ff6283ac8b3..78a7a6ddd2e1 100644
--- a/sci-mathematics/form/form-4.3.1.ebuild
+++ b/sci-mathematics/form/form-4.3.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -18,7 +18,7 @@ IUSE="devref doc doxygen emacs gmp mpi threads zlib"
RDEPEND="
gmp? ( dev-libs/gmp:0= )
mpi? ( virtual/mpi )
- zlib? ( sys-libs/zlib )"
+ zlib? ( virtual/zlib:= )"
DEPEND="${RDEPEND}
devref? ( dev-texlive/texlive-latexrecommended )
doc? ( dev-texlive/texlive-latexrecommended )
diff --git a/sci-mathematics/form/form-5.0.0_beta1.ebuild b/sci-mathematics/form/form-5.0.0_beta1.ebuild
index a89b39e8d5b6..2861668d94d6 100644
--- a/sci-mathematics/form/form-5.0.0_beta1.ebuild
+++ b/sci-mathematics/form/form-5.0.0_beta1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -18,7 +18,7 @@ IUSE="devref doc doxygen emacs gmp mpi threads zlib"
RDEPEND="
gmp? ( dev-libs/gmp:0= )
mpi? ( virtual/mpi )
- zlib? ( sys-libs/zlib )"
+ zlib? ( virtual/zlib:= )"
DEPEND="${RDEPEND}
devref? ( dev-texlive/texlive-latexrecommended )
doc? ( dev-texlive/texlive-latexrecommended )
diff --git a/sci-mathematics/gap/gap-4.14.0-r1.ebuild b/sci-mathematics/gap/gap-4.14.0-r1.ebuild
index e7fd0b028a77..aaadc8f61ae1 100644
--- a/sci-mathematics/gap/gap-4.14.0-r1.ebuild
+++ b/sci-mathematics/gap/gap-4.14.0-r1.ebuild
@@ -53,7 +53,7 @@ AUTOLOADED_PKGS="
BDEPEND="test? ( ${REQUIRED_PKGS} )"
DEPEND="dev-libs/gmp:=
- sys-libs/zlib
+ virtual/zlib:=
valgrind? ( dev-debug/valgrind )
readline? ( sys-libs/readline:= )"
diff --git a/sci-mathematics/gap/gap-4.15.1.ebuild b/sci-mathematics/gap/gap-4.15.1.ebuild
index 53368687d643..ff454d85f35f 100644
--- a/sci-mathematics/gap/gap-4.15.1.ebuild
+++ b/sci-mathematics/gap/gap-4.15.1.ebuild
@@ -53,7 +53,7 @@ AUTOLOADED_PKGS="
BDEPEND="test? ( ${REQUIRED_PKGS} )"
DEPEND="dev-libs/gmp:=
- sys-libs/zlib
+ virtual/zlib:=
valgrind? ( dev-debug/valgrind )
readline? ( sys-libs/readline:= )"
diff --git a/sci-mathematics/glpk/glpk-5.0-r3.ebuild b/sci-mathematics/glpk/glpk-5.0-r3.ebuild
index 83e91bec1bf7..55607d1ebed2 100644
--- a/sci-mathematics/glpk/glpk-5.0-r3.ebuild
+++ b/sci-mathematics/glpk/glpk-5.0-r3.ebuild
@@ -18,7 +18,7 @@ BDEPEND="virtual/pkgconfig"
DEPEND="
sci-libs/amd:0=
sci-libs/colamd:=
- sys-libs/zlib:0=
+ virtual/zlib:=
gmp? ( dev-libs/gmp:0= )
mysql? (
dev-db/mysql-connector-c
diff --git a/sci-mathematics/mathmod/Manifest b/sci-mathematics/mathmod/Manifest
index a41980bfcbde..432d97e88ad9 100644
--- a/sci-mathematics/mathmod/Manifest
+++ b/sci-mathematics/mathmod/Manifest
@@ -1,2 +1,2 @@
-DIST mathmod-12.0.tar.gz 9392067 BLAKE2B 2144c4aa06c3c13bdb5dca333134195d92bea5dcf0478e80f2ca25b41e4c74344725cced3bc72fc4b4f571da5b3ec734b0ea05fc7b1f80566f8b83d229e5627f SHA512 d8a247a14e03c4d6fb4812b4404338162d7ff79745ebe31c467a444fdb48441b950a9d39c7b31fedb3f2bb1961d3075e44eb264b863708bd48f949b8185d60c6
DIST mathmod-12.1.tar.gz 9475468 BLAKE2B 9aeb27578d4c17cc2d8414f95ddcd55910458fe49208c0cb0277439a3d5628f517d79644bdd8c7e1ec747482e14898cdcb2896f57ec02a3af3bc033ac28f6034 SHA512 2e7ed6e2d345ffc16d275ccebc41352b4fd21f0c085ff25ae35fda7329b103371ccfe7bff6b12d8df3ebb145deaaf8f2ddcaedf3190a5542d1db002e2adc7566
+DIST mathmod-13.0.tar.gz 9407320 BLAKE2B cc8e550ca1c583edaa1398fb9f0dc27c996ac755caacf3995d0590bb08815c6b30c49b3560cc14ca570ff8344547d812ec61c8860c23fce3e44f7fc8f9a15fca SHA512 b276dbc42b54ccda7e608c99197f32c9a54e56046c598deb6ef118670bc7b9a61f3dab726cc94db8810946f727d193f9665f0c6c6a5ddbfb06e773de4840a831
diff --git a/sci-mathematics/mathmod/files/mathmod-12.0-rm_complex.patch b/sci-mathematics/mathmod/files/mathmod-12.0-rm_complex.patch
deleted file mode 100644
index 51ba2930a306..000000000000
--- a/sci-mathematics/mathmod/files/mathmod-12.0-rm_complex.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-From 61b94a59728fd691fb363ccc4e5f5bbb35e2b3c2 Mon Sep 17 00:00:00 2001
-From: Abderrahman Taha <taha_ab@yahoo.fr>
-Date: Wed, 2 Apr 2025 01:04:49 -0400
-Subject: [PATCH] #269 Collision between <complex.h> and QT
-
----
- pariso/commun.h | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/pariso/commun.h b/pariso/commun.h
-index 2d647f3..0827cb8 100644
---- a/pariso/commun.h
-+++ b/pariso/commun.h
-@@ -22,7 +22,6 @@
-
- #include "../fparser/fparser.hh"
- #include <qthread.h>
--#include <complex.h>
- #include <tgmath.h>
-
- #define PI (double(314159265) / double(100000000))
diff --git a/sci-mathematics/mathmod/files/mathmod-13.0-missing_include.patch b/sci-mathematics/mathmod/files/mathmod-13.0-missing_include.patch
new file mode 100644
index 000000000000..3771213f1f7e
--- /dev/null
+++ b/sci-mathematics/mathmod/files/mathmod-13.0-missing_include.patch
@@ -0,0 +1,26 @@
+PR pending https://github.com/parisolab/mathmod/pull/288.patch
+fix compile w/ qt-6.10.0
+move <QElapsedTimer> in header
+--- a/pariso/isosurface/Iso3D.cpp
++++ b/pariso/isosurface/Iso3D.cpp
+@@ -20,7 +20,6 @@
+ #include "TableMap.h"
+ #include "Iso3D.h"
+ #include "internalfunctions.cpp"
+-#include <QElapsedTimer>
+
+ double * Iso3D::Results;
+ Voxel * Iso3D::GridVoxelVarPt;
+--- a/pariso/isosurface/Iso3D.h
++++ b/pariso/isosurface/Iso3D.h
+@@ -21,6 +21,7 @@
+
+
+ #include "../parisoobject.h"
++#include <QElapsedTimer>
+
+ /*
+
+--
+2.51.0
+
diff --git a/sci-mathematics/mathmod/mathmod-12.0.ebuild b/sci-mathematics/mathmod/mathmod-13.0.ebuild
index ff8480ffbff9..1112f4f7a66b 100644
--- a/sci-mathematics/mathmod/mathmod-12.0.ebuild
+++ b/sci-mathematics/mathmod/mathmod-13.0.ebuild
@@ -17,13 +17,13 @@ KEYWORDS="~amd64 ~x86"
RDEPEND="
dev-qt/qtbase:6[gui,opengl,widgets]
+ media-libs/libglvnd
"
DEPEND="${RDEPEND}"
PATCHES=(
- # Fix collision between <complex.h> and QT
- # Merged, to be removed with release 12.1
- "${FILESDIR}"/${P}-rm_complex.patch
+ # https://github.com/parisolab/mathmod/pull/288.patch
+ "${FILESDIR}"/${PN}-13.0-missing_include.patch
)
src_configure() {
diff --git a/sci-mathematics/maxima/files/sb-gmp-0.patch b/sci-mathematics/maxima/files/sb-gmp-0.patch
new file mode 100644
index 000000000000..e8b23217c6bc
--- /dev/null
+++ b/sci-mathematics/maxima/files/sb-gmp-0.patch
@@ -0,0 +1,17 @@
+diff '--color=auto' -r -U3 maxima-5.48.1.orig/src/init-cl.lisp maxima-5.48.1/src/init-cl.lisp
+--- maxima-5.48.1.orig/src/init-cl.lisp 2025-08-03 12:30:20.000000000 +0700
++++ maxima-5.48.1/src/init-cl.lisp 2025-10-10 23:25:15.816941666 +0700
+@@ -587,8 +587,13 @@
+ (delete-file file)))))
+ *temp-files-list*))
+
++#+sbcl
++(eval-when (:compile-toplevel :load-toplevel :execute)
++ (require 'sb-gmp))
++
+ (defun cl-user::run ()
+ "Run Maxima in its own package."
++ #+sbcl (sb-gmp:install-gmp-funs)
+ (in-package :maxima)
+ (initialize-runtime-globals)
+ (let ((input-stream *standard-input*)
diff --git a/sci-mathematics/maxima/maxima-5.48.1-r1.ebuild b/sci-mathematics/maxima/maxima-5.48.1-r1.ebuild
new file mode 100644
index 000000000000..9f617a9d3c9d
--- /dev/null
+++ b/sci-mathematics/maxima/maxima-5.48.1-r1.ebuild
@@ -0,0 +1,235 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..14} )
+
+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="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"
+
+# Licensing is a mess. COPYING is GPL-2. A few files such as
+# src/numth.lisp explicitly mention GPL-2 without the "or later version"
+# bit. Others such as src/airy.lisp have the "or later version." Both
+# src/maxmin.lisp and src/nummod.lisp declare the LLGPL; in fact they
+# say LLGPL version 2 or later which I have approximated by LLGPL-2.1.
+LICENSE="GPL-2 GPL-2+ LLGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~riscv ~x86 ~amd64-linux ~x86-linux"
+
+IUSE="clisp clozurecl clozurecl64 cmucl ecl emacs gcl gmp gui nls +sbcl vtk X test"
+RESTRICT="test" # bug 838202
+
+# 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 )
+ ecl? ( dev-lisp/ecl:= app-misc/rlwrap )
+ gcl? ( >=dev-lisp/gcl-2.6.14[ansi,readline] )
+ sbcl? ( dev-lisp/sbcl:= app-misc/rlwrap )
+"
+
+# 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="
+ ${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="
+ vtk? ( ${PYTHON_REQUIRED_USE} )
+ || ( clisp clozurecl clozurecl64 cmucl ecl gcl sbcl )
+ gui? ( X )"
+
+TEXMF="${EPREFIX}"/usr/share/texmf-site
+
+pkg_setup() {
+ # Set the PYTHON variable to whatever it should be.
+ use vtk && python-single-r1_pkg_setup
+}
+
+PATCHES=(
+ "${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}/cmucl-1.patch"
+ "${FILESDIR}/sbcl-2.patch"
+)
+
+src_prepare() {
+ default
+
+ use sbcl && use gmp && eapply "${FILESDIR}/sb-gmp-0.patch"
+
+ # 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}"
+ 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 ecl) \
+ $(use_enable emacs) \
+ $(use_enable gcl) \
+ $(use_with gui wish) \
+ $(use_enable sbcl) \
+ --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
+
+ # 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 ecl; 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/minisat/minisat-2.2.1-r1.ebuild b/sci-mathematics/minisat/minisat-2.2.1-r1.ebuild
index 3009ad4021ab..24521d5066d9 100644
--- a/sci-mathematics/minisat/minisat-2.2.1-r1.ebuild
+++ b/sci-mathematics/minisat/minisat-2.2.1-r1.ebuild
@@ -17,7 +17,7 @@ SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
-RDEPEND="sys-libs/zlib:="
+RDEPEND="virtual/zlib:="
DEPEND="${RDEPEND}"
PATCHES=(
diff --git a/sci-mathematics/msieve/msieve-1.53-r1.ebuild b/sci-mathematics/msieve/msieve-1.53-r1.ebuild
index c8a7a46f81d7..e9eeb6a1cfc3 100644
--- a/sci-mathematics/msieve/msieve-1.53-r1.ebuild
+++ b/sci-mathematics/msieve/msieve-1.53-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -17,7 +17,7 @@ IUSE="zlib +ecm mpi"
RDEPEND="
ecm? ( sci-mathematics/gmp-ecm )
mpi? ( virtual/mpi )
- zlib? ( sys-libs/zlib )"
+ zlib? ( virtual/zlib:= )"
DEPEND="${RDEPEND}"
PATCHES=(
diff --git a/sci-mathematics/msieve/msieve-1.53-r3.ebuild b/sci-mathematics/msieve/msieve-1.53-r3.ebuild
index c254fe3b631c..8f840793a614 100644
--- a/sci-mathematics/msieve/msieve-1.53-r3.ebuild
+++ b/sci-mathematics/msieve/msieve-1.53-r3.ebuild
@@ -18,7 +18,7 @@ RDEPEND="
dev-libs/gmp:=
ecm? ( sci-mathematics/gmp-ecm )
mpi? ( virtual/mpi )
- zlib? ( sys-libs/zlib )
+ zlib? ( virtual/zlib:= )
"
DEPEND="${RDEPEND}"
diff --git a/sci-mathematics/nauty/nauty-2.8.8-r1.ebuild b/sci-mathematics/nauty/nauty-2.8.8-r1.ebuild
index da25e0fbbb54..c25e11a6fc09 100644
--- a/sci-mathematics/nauty/nauty-2.8.8-r1.ebuild
+++ b/sci-mathematics/nauty/nauty-2.8.8-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -24,7 +24,7 @@ IUSE="cpu_flags_x86_popcnt examples"
BDEPEND="sys-apps/help2man"
DEPEND="dev-libs/gmp:0
- sys-libs/zlib
+ virtual/zlib:=
sci-mathematics/cliquer"
RDEPEND="${DEPEND}"
diff --git a/sci-mathematics/octave/octave-9.2.0-r2.ebuild b/sci-mathematics/octave/octave-9.2.0-r2.ebuild
index 7038fb5019dd..cd6209c23af8 100644
--- a/sci-mathematics/octave/octave-9.2.0-r2.ebuild
+++ b/sci-mathematics/octave/octave-9.2.0-r2.ebuild
@@ -34,7 +34,7 @@ COMMON_DEPS="
sys-apps/texinfo
dev-libs/libpcre2
sys-libs/ncurses:=
- sys-libs/zlib
+ virtual/zlib:=
virtual/blas
virtual/lapack
curl? ( net-misc/curl:= )
diff --git a/sci-mathematics/pspp/pspp-1.6.2-r3.ebuild b/sci-mathematics/pspp/pspp-1.6.2-r3.ebuild
index f3a4c6719779..235126e8a052 100644
--- a/sci-mathematics/pspp/pspp-1.6.2-r3.ebuild
+++ b/sci-mathematics/pspp/pspp-1.6.2-r3.ebuild
@@ -22,7 +22,7 @@ RDEPEND="
sys-devel/gettext
sys-libs/ncurses:0=
sys-libs/readline:0=
- sys-libs/zlib
+ virtual/zlib:=
virtual/libiconv
x11-libs/cairo[svg(+)]
x11-libs/pango
diff --git a/sci-mathematics/pspp/pspp-2.0.1-r1.ebuild b/sci-mathematics/pspp/pspp-2.0.1-r1.ebuild
index 56241ae6e596..05aa659cf536 100644
--- a/sci-mathematics/pspp/pspp-2.0.1-r1.ebuild
+++ b/sci-mathematics/pspp/pspp-2.0.1-r1.ebuild
@@ -20,7 +20,7 @@ RDEPEND="
dev-libs/libxml2:2=
>=sci-libs/gsl-1.13:0=
sys-libs/readline:0=
- sys-libs/zlib
+ virtual/zlib:=
virtual/libiconv
x11-libs/cairo[svg(+)]
x11-libs/pango
diff --git a/sci-mathematics/stp/stp-2.3.3-r3.ebuild b/sci-mathematics/stp/stp-2.3.3-r3.ebuild
index 49217669aa8f..eb86f3332187 100644
--- a/sci-mathematics/stp/stp-2.3.3-r3.ebuild
+++ b/sci-mathematics/stp/stp-2.3.3-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -35,7 +35,7 @@ RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/boost:=
sci-mathematics/minisat:=
- sys-libs/zlib:=
+ virtual/zlib:=
cryptominisat? (
dev-db/sqlite:3
dev-libs/icu:=
diff --git a/sci-mathematics/stp/stp-2.3.4.ebuild b/sci-mathematics/stp/stp-2.3.4.ebuild
index 3edd8189524a..acd1875eaa43 100644
--- a/sci-mathematics/stp/stp-2.3.4.ebuild
+++ b/sci-mathematics/stp/stp-2.3.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -31,7 +31,7 @@ RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/boost:=
sci-mathematics/minisat:=
- sys-libs/zlib:=
+ virtual/zlib:=
cryptominisat? (
dev-db/sqlite:3
dev-libs/icu:=