summaryrefslogtreecommitdiff
path: root/sci-mathematics
diff options
context:
space:
mode:
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/Manifest.gzbin19314 -> 19338 bytes
-rw-r--r--sci-mathematics/alt-ergo/Manifest3
-rw-r--r--sci-mathematics/alt-ergo/alt-ergo-2.4.3-r2.ebuild (renamed from sci-mathematics/alt-ergo/alt-ergo-2.4.3.ebuild)4
-rw-r--r--sci-mathematics/alt-ergo/alt-ergo-9999.ebuild76
-rw-r--r--sci-mathematics/cadical/Manifest5
-rw-r--r--sci-mathematics/cadical/cadical-2.0.0.ebuild (renamed from sci-mathematics/cadical/cadical-1.9.4.ebuild)6
-rw-r--r--sci-mathematics/cadical/files/cadical-makefile-in-respect-ar-2.0.0.patch11
-rw-r--r--sci-mathematics/cgal/Manifest6
-rw-r--r--sci-mathematics/cgal/cgal-5.6.1.ebuild60
-rw-r--r--sci-mathematics/cgal/cgal-6.0_beta1.ebuild61
-rw-r--r--sci-mathematics/coq-serapi/Manifest2
-rw-r--r--sci-mathematics/coq-serapi/coq-serapi-0.20.0.ebuild83
-rw-r--r--sci-mathematics/coq/Manifest8
-rw-r--r--sci-mathematics/coq/coq-8.19.0.ebuild2
-rw-r--r--sci-mathematics/coq/coq-8.19.1.ebuild2
-rw-r--r--sci-mathematics/coq/coq-8.19.2.ebuild122
-rw-r--r--sci-mathematics/coq/coq-8.20.0.ebuild139
-rw-r--r--sci-mathematics/cryptominisat/Manifest6
-rw-r--r--sci-mathematics/cryptominisat/cryptominisat-5.11.15.ebuild39
-rw-r--r--sci-mathematics/cryptominisat/cryptominisat-5.11.21-r1.ebuild94
-rw-r--r--sci-mathematics/cryptominisat/cryptominisat-5.11.21.ebuild40
-rw-r--r--sci-mathematics/cryptominisat/files/cryptominisat-5.11.21-setup-py.patch18
-rw-r--r--sci-mathematics/cryptominisat/files/cryptominisat-5.11.21-unistd.patch12
-rw-r--r--sci-mathematics/cubicle/Manifest2
-rw-r--r--sci-mathematics/cubicle/cubicle-1.2.0-r2.ebuild6
-rw-r--r--sci-mathematics/dunshire/Manifest4
-rw-r--r--sci-mathematics/dunshire/dunshire-0.1.3-r1.ebuild (renamed from sci-mathematics/dunshire/dunshire-0.1.3.ebuild)18
-rw-r--r--sci-mathematics/dunshire/metadata.xml4
-rw-r--r--sci-mathematics/easycrypt/Manifest4
-rw-r--r--sci-mathematics/easycrypt/easycrypt-2023.09.ebuild50
-rw-r--r--sci-mathematics/easycrypt/easycrypt-2024.01-r1.ebuild (renamed from sci-mathematics/easycrypt/easycrypt-2024.01.ebuild)1
-rw-r--r--sci-mathematics/eclib/Manifest2
-rw-r--r--sci-mathematics/eclib/eclib-20240408.ebuild49
-rw-r--r--sci-mathematics/flint/Manifest11
-rw-r--r--sci-mathematics/flint/files/flint-2.9.0-remove-hardcoded-CFLAGS.patch69
-rw-r--r--sci-mathematics/flint/files/flint-3.1.0-fix-pc-install.patch29
-rw-r--r--sci-mathematics/flint/files/flint-3.1.3_p1-c99-I.patch320
-rw-r--r--sci-mathematics/flint/flint-2.9.0.ebuild81
-rw-r--r--sci-mathematics/flint/flint-3.0.1.ebuild81
-rw-r--r--sci-mathematics/flint/flint-3.1.3_p1.ebuild (renamed from sci-mathematics/flint/flint-3.1.0.ebuild)21
-rw-r--r--sci-mathematics/fricas/Manifest6
-rw-r--r--sci-mathematics/fricas/files/fricas-1.3.11-doc.patch12
-rw-r--r--sci-mathematics/fricas/files/fricas-sbcl-2.3.9.patch59
-rw-r--r--sci-mathematics/fricas/fricas-1.3.11-r2.ebuild (renamed from sci-mathematics/fricas/fricas-1.3.9-r3.ebuild)33
-rw-r--r--sci-mathematics/gap/Manifest4
-rw-r--r--sci-mathematics/gap/gap-4.13.1.ebuild (renamed from sci-mathematics/gap/gap-4.13.0.ebuild)7
-rw-r--r--sci-mathematics/gfan/Manifest6
-rw-r--r--sci-mathematics/gfan/files/gfan-0.6.2-find-name.patch18
-rw-r--r--sci-mathematics/gfan/files/gfan-0.6.2-fix-0602ResultantFanProjection.patch27
-rw-r--r--sci-mathematics/gfan/files/gfan-0.6.2-fix-spelling-errors.patch50
-rw-r--r--sci-mathematics/gfan/gfan-0.6.2-r4.ebuild6
-rw-r--r--sci-mathematics/gfan/gfan-0.6.2-r5.ebuild78
-rw-r--r--sci-mathematics/giac/Manifest8
-rw-r--r--sci-mathematics/giac/files/giac-1.9.0.93-glibcxx-assertions.patch31
-rw-r--r--sci-mathematics/giac/files/giac-1.9.0.93-no-fltk-buildfix.patch60
-rw-r--r--sci-mathematics/giac/files/giac-1.9.0.995-fix-undefined-behavior.patch43
-rw-r--r--sci-mathematics/giac/files/giac-1.9.0.995-glibcxx-assertions.patch38
-rw-r--r--sci-mathematics/giac/giac-1.9.0.995-r1.ebuild (renamed from sci-mathematics/giac/giac-1.9.0.93.ebuild)17
-rw-r--r--sci-mathematics/gimps/Manifest3
-rw-r--r--sci-mathematics/gimps/gimps-30.19.20.ebuild73
-rw-r--r--sci-mathematics/ginac/Manifest1
-rw-r--r--sci-mathematics/ginac/ginac-1.8.7-r3.ebuild76
-rw-r--r--sci-mathematics/glpk/Manifest4
-rw-r--r--sci-mathematics/glpk/glpk-5.0-r1.ebuild2
-rw-r--r--sci-mathematics/glpk/glpk-5.0-r2.ebuild2
-rw-r--r--sci-mathematics/gsl-shell/Manifest8
-rw-r--r--sci-mathematics/gsl-shell/files/gsl-shell-2.3.2-no-compile-in-install.patch24
-rw-r--r--sci-mathematics/gsl-shell/files/gsl-shell-2.3.2-sphinx-extmath-to-imgmath.patch13
-rw-r--r--sci-mathematics/gsl-shell/gsl-shell-2.3.2.ebuild62
-rw-r--r--sci-mathematics/gsl-shell/gsl-shell-2.3.5.ebuild4
-rw-r--r--sci-mathematics/gsl-shell/metadata.xml3
-rw-r--r--sci-mathematics/jags/Manifest2
-rw-r--r--sci-mathematics/jags/jags-4.3.1-r1.ebuild (renamed from sci-mathematics/jags/jags-4.3.1.ebuild)8
-rw-r--r--sci-mathematics/lcalc/Manifest2
-rw-r--r--sci-mathematics/lcalc/lcalc-2.0.5-r2.ebuild4
-rw-r--r--sci-mathematics/lean/Manifest4
-rw-r--r--sci-mathematics/lean/lean-4.11.0.ebuild81
-rw-r--r--sci-mathematics/lean/lean-4.2.0.ebuild2
-rw-r--r--sci-mathematics/libpoly/Manifest2
-rw-r--r--sci-mathematics/libpoly/libpoly-0.1.11.ebuild4
-rw-r--r--sci-mathematics/lrcalc/Manifest2
-rw-r--r--sci-mathematics/lrcalc/lrcalc-2.1.ebuild4
-rw-r--r--sci-mathematics/mathematica/Manifest3
-rw-r--r--sci-mathematics/mathematica/mathematica-14.0.0.ebuild191
-rw-r--r--sci-mathematics/mathlib-tools/Manifest2
-rw-r--r--sci-mathematics/mathlib-tools/mathlib-tools-1.3.2_p1.ebuild4
-rw-r--r--sci-mathematics/mathmod/Manifest6
-rw-r--r--sci-mathematics/mathmod/mathmod-11.1.ebuild38
-rw-r--r--sci-mathematics/mathmod/mathmod-4.1-r1.ebuild49
-rw-r--r--sci-mathematics/mathmod/metadata.xml1
-rw-r--r--sci-mathematics/maxima/Manifest1
-rw-r--r--sci-mathematics/maxima/maxima-5.47.0-r1.ebuild233
-rw-r--r--sci-mathematics/nauty/Manifest3
-rw-r--r--sci-mathematics/nauty/nauty-2.8.8-r1.ebuild6
-rw-r--r--sci-mathematics/nauty/nauty-2.8.8.ebuild79
-rw-r--r--sci-mathematics/octave/Manifest4
-rw-r--r--sci-mathematics/octave/metadata.xml2
-rw-r--r--sci-mathematics/octave/octave-9.2.0-r1.ebuild220
-rw-r--r--sci-mathematics/palp/Manifest2
-rw-r--r--sci-mathematics/palp/palp-2.21.ebuild2
-rw-r--r--sci-mathematics/pari-data/Manifest2
-rw-r--r--sci-mathematics/pari-data/pari-data-20191216.ebuild8
-rw-r--r--sci-mathematics/pari/Manifest6
-rw-r--r--sci-mathematics/pari/files/pari-2.11.2-no-automagic.patch68
-rw-r--r--sci-mathematics/pari/files/pari-2.9.4-fltk-detection.patch22
-rw-r--r--sci-mathematics/pari/pari-2.15.4-r1.ebuild145
-rw-r--r--sci-mathematics/pari/pari-2.15.5.ebuild2
-rw-r--r--sci-mathematics/petsc/Manifest4
-rw-r--r--sci-mathematics/petsc/files/petsc-3.21.3-disable-rpath.patch18
-rw-r--r--sci-mathematics/petsc/files/petsc-3.21.3-fix_sandbox_violation.patch17
-rw-r--r--sci-mathematics/petsc/petsc-3.21.3.ebuild235
-rw-r--r--sci-mathematics/planarity/Manifest4
-rw-r--r--sci-mathematics/planarity/metadata.xml4
-rw-r--r--sci-mathematics/planarity/planarity-3.0.2.0.ebuild4
-rw-r--r--sci-mathematics/polymake/Manifest3
-rw-r--r--sci-mathematics/polymake/files/polymake-4.12-no-perl-constraints.patch62
-rw-r--r--sci-mathematics/polymake/polymake-4.12.ebuild119
-rw-r--r--sci-mathematics/primecount/Manifest3
-rw-r--r--sci-mathematics/primecount/files/primecount-7.13-gcc-15-buildfix.patch30
-rw-r--r--sci-mathematics/primecount/primecount-7.13-r1.ebuild55
-rw-r--r--sci-mathematics/primesieve/Manifest2
-rw-r--r--sci-mathematics/primesieve/primesieve-12.3.ebuild54
-rw-r--r--sci-mathematics/proverif/Manifest6
-rw-r--r--sci-mathematics/proverif/proverif-2.04-r1.ebuild6
-rw-r--r--sci-mathematics/proverif/proverif-2.05.ebuild6
-rw-r--r--sci-mathematics/proverif/proverif-9999.ebuild6
-rw-r--r--sci-mathematics/pspp/Manifest2
-rw-r--r--sci-mathematics/pspp/pspp-1.6.2-r2.ebuild4
-rw-r--r--sci-mathematics/rkward/Manifest5
-rw-r--r--sci-mathematics/rkward/files/rkward-0.8.0-unbundle-kdsingleapplication.patch57
-rw-r--r--sci-mathematics/rkward/rkward-0.7.5.ebuild57
-rw-r--r--sci-mathematics/rkward/rkward-0.8.0.ebuild62
-rw-r--r--sci-mathematics/rw/Manifest2
-rw-r--r--sci-mathematics/rw/rw-0.9.ebuild5
-rw-r--r--sci-mathematics/singular/Manifest6
-rw-r--r--sci-mathematics/singular/singular-4.3.2_p16-r1.ebuild (renamed from sci-mathematics/singular/singular-4.3.2_p16.ebuild)8
-rw-r--r--sci-mathematics/singular/singular-4.4.0_p2.ebuild (renamed from sci-mathematics/singular/singular-4.3.2_p10.ebuild)18
-rw-r--r--sci-mathematics/slepc/Manifest3
-rw-r--r--sci-mathematics/slepc/slepc-3.21.1.ebuild125
-rw-r--r--sci-mathematics/smtinterpol/Manifest1
-rw-r--r--sci-mathematics/smtinterpol/smtinterpol-2.5_p20211018-r1.ebuild44
-rw-r--r--sci-mathematics/spin/Manifest2
-rw-r--r--sci-mathematics/spin/metadata.xml5
-rw-r--r--sci-mathematics/stp/Manifest6
-rw-r--r--sci-mathematics/stp/files/stp-2.3.4-gtest.patch26
-rw-r--r--sci-mathematics/stp/files/stp-2.3.4-lit-cfg.patch24
-rw-r--r--sci-mathematics/stp/stp-2.3.3-r3.ebuild8
-rw-r--r--sci-mathematics/stp/stp-2.3.4.ebuild113
-rw-r--r--sci-mathematics/sympow/Manifest2
-rw-r--r--sci-mathematics/sympow/sympow-2.023.6.ebuild6
-rw-r--r--sci-mathematics/twelf/Manifest4
-rw-r--r--sci-mathematics/twelf/metadata.xml3
-rw-r--r--sci-mathematics/twelf/twelf-1.7.1-r2.ebuild14
-rw-r--r--sci-mathematics/wxmaxima/Manifest2
-rw-r--r--sci-mathematics/wxmaxima/wxmaxima-24.05.0.ebuild79
-rw-r--r--sci-mathematics/z3/Manifest2
-rw-r--r--sci-mathematics/z3/z3-4.13.0.ebuild2
157 files changed, 3547 insertions, 1331 deletions
diff --git a/sci-mathematics/Manifest.gz b/sci-mathematics/Manifest.gz
index d6ecc79b00a1..5576acae9807 100644
--- a/sci-mathematics/Manifest.gz
+++ b/sci-mathematics/Manifest.gz
Binary files differ
diff --git a/sci-mathematics/alt-ergo/Manifest b/sci-mathematics/alt-ergo/Manifest
index 5296c2c720b6..ddde0a292187 100644
--- a/sci-mathematics/alt-ergo/Manifest
+++ b/sci-mathematics/alt-ergo/Manifest
@@ -1,5 +1,4 @@
AUX alt-ergo-2.4.3-dune.patch 136 BLAKE2B 7a8740fd14531be7dc595dd3dc3eef119c39943fbec98c9784f6a25dcc1947ebefacd079bcc95a48b07f8d94641ad66261e06efd18edc5cfe59783626b6bcf4d SHA512 016d80dc17436e469746822f62a1748a661a74e5ec2009a0f297a75a763b645cb95e564727ba03434602c494bf866f563adf558ff24f915d50fe198f9c9fe3c1
DIST alt-ergo-2.4.3.tar.gz 2902450 BLAKE2B bb8931dc512e3745496c1801fe959ac0fc4758b03049462506689021508a4ea364f0aae8679c776d8154c9f86a09080801c9b822d23355c572a24bd8b0e38210 SHA512 88a26b138e41997516085dbbf279e1ce11d03c18c0464ba80d5403dc80ff0f8cb5cbd4ad1489a60ff2a3b9539f9c55e4274008b14eed47b6fd057ce0a94ef98f
-EBUILD alt-ergo-2.4.3.ebuild 1381 BLAKE2B 058af8ee21ec2c30a9f31c2b8b7704c1d6944506f851d8574a4d4320c935b8249d39fc28ec42f7f9b945b4624f23a58ab21994fa65ab98e910546449ad343282 SHA512 ab112811eaedbef1fcd0becfb154a4b3add1d30bee1c958c749489ffc9ed9f2ffe6589041e5d4a6d001ff8afe7664212ced4c05e583a37514cb70cccb90f6f17
-EBUILD alt-ergo-9999.ebuild 1382 BLAKE2B 9111155de5276042880f9ef4fa10f9374da2cd603e3ce4e999dc8a388507337e306e9cdf0bc76245b8a4aeebfc6057965f02e637071d9be1e0a3dab4167c2570 SHA512 471d147251a3edb665a72a09f15f33b60eabd67b68411a48cc3e9cfd0ca9e7d7fd6d0dfcc033060e5f4c69a66c100019e2be5946d493748b836861647d2dc6d1
+EBUILD alt-ergo-2.4.3-r2.ebuild 1380 BLAKE2B 306919a58792d8b5caf063b634e6e4f9f5897151cd753105a3cdbaea1b3efa23197787db0a1e79611964923e1b22ec4ffa1d0f973db48595f0be0a631e0e544e SHA512 8c587fc859d4a136ff09a38def1b4c3168e15b400089f6abc26e42766157f58ee01a5ec2229e1a8e90e62952364c049f3aa0ffe2c884a7e29fe0575f2c70ee3a
MISC metadata.xml 957 BLAKE2B 2ac1b5428ee88fa81b3898a351b770b9a3b4e91ad049e7ab2b5b62e3ddcef635e2f19f801ef1c067b51c2f30f513b40a82e968a314be10e7a5ff795df24dd6d5 SHA512 bcbe312badeb5f3d6c243d620ec5744ac6bf3c23e6bc7b6327c7a1a72b42f2cc68cd4326b065a3fca3c2a9c7c1670e2a84ca1ca2e7bf423a274025010a6735f4
diff --git a/sci-mathematics/alt-ergo/alt-ergo-2.4.3.ebuild b/sci-mathematics/alt-ergo/alt-ergo-2.4.3-r2.ebuild
index e06cf284f0e1..22c57ef35837 100644
--- a/sci-mathematics/alt-ergo/alt-ergo-2.4.3.ebuild
+++ b/sci-mathematics/alt-ergo/alt-ergo-2.4.3-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -27,9 +27,9 @@ RDEPEND="
>=dev-lang/ocaml-4.09.0:=[ocamlopt=]
>=sci-mathematics/psmt2-frontend-0.4.0:=
+ <dev-ml/ocplib-simplex-0.5:=
>=dev-ml/cmdliner-1.1.0:=
>=dev-ml/menhir-20181006:=
- >=dev-ml/ocplib-simplex-0.4:=
dev-ml/camlzip:=
dev-ml/num:=
dev-ml/stdlib-shims:=
diff --git a/sci-mathematics/alt-ergo/alt-ergo-9999.ebuild b/sci-mathematics/alt-ergo/alt-ergo-9999.ebuild
deleted file mode 100644
index 1ba42319bb6c..000000000000
--- a/sci-mathematics/alt-ergo/alt-ergo-9999.ebuild
+++ /dev/null
@@ -1,76 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit dune
-
-DESCRIPTION="Automatic theorem prover"
-HOMEPAGE="https://alt-ergo.ocamlpro.com
- https://github.com/OCamlPro/alt-ergo/"
-
-if [[ ${PV} == *9999* ]] ; then
- inherit git-r3
- EGIT_REPO_URI="https://github.com/OCamlPro/${PN}.git"
-else
- SRC_URI="https://github.com/OCamlPro/${PN}/archive/${PV}.tar.gz
- -> ${P}.tar.gz"
- KEYWORDS="~amd64"
-fi
-
-LICENSE="CeCILL-C"
-SLOT="0/${PV}"
-IUSE="examples gui +ocamlopt"
-REQUIRED_USE="ocamlopt"
-
-RDEPEND="
- >=dev-lang/ocaml-4.09.0:=[ocamlopt=]
- >=sci-mathematics/psmt2-frontend-0.4.0:=
-
- >=dev-ml/cmdliner-1.1.0:=
- >=dev-ml/menhir-20181006:=
- >=dev-ml/ocplib-simplex-0.4:=
- dev-ml/camlzip:=
- dev-ml/num:=
- dev-ml/stdlib-shims:=
- dev-ml/zarith:=
- gui? (
- dev-ml/lablgtk:3
- dev-ml/lablgtk-sourceview:3
- )
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
- dev-ml/dune-build-info
- dev-ml/dune-configurator
-"
-
-PATCHES=( "${FILESDIR}"/${PN}-2.4.3-dune.patch )
-
-OCAML_SUBPACKAGES=(
- alt-ergo-lib
- alt-ergo-parsers
- alt-ergo
-)
-
-src_prepare() {
- default
-
- if use gui ; then
- OCAML_SUBPACKAGES+=( altgr-ergo )
- fi
-}
-
-src_configure() {
- sh ./configure --prefix /usr --libdir=/usr/$(get_libdir) || die
-}
-
-src_compile() {
- dune-compile ${OCAML_SUBPACKAGES[@]}
-}
-
-src_install() {
- dune-install ${OCAML_SUBPACKAGES[@]}
-
- use examples && dodoc -r examples
-}
diff --git a/sci-mathematics/cadical/Manifest b/sci-mathematics/cadical/Manifest
index ce86db1a0608..ef1b6ae5df21 100644
--- a/sci-mathematics/cadical/Manifest
+++ b/sci-mathematics/cadical/Manifest
@@ -1,7 +1,8 @@
AUX cadical-configure.patch 380 BLAKE2B e9fd63e663811a2a067b9bb8bb05604dc5b0fb02068a04ed1f80ad7b40e3aa8981c47ad7b80475e758e6c2e44b17b175c3a793e256185d28e0029a78473837b9 SHA512 9b82cd65257253ea423df6fb711bef0d5a8fbca48dd86fde5433b0dd377bfa9778ba3141b36560d13ceb61a4df305b818f11f3a72a483a02b3b3859299d6d830
+AUX cadical-makefile-in-respect-ar-2.0.0.patch 363 BLAKE2B 75e3af23e2122f638f7d8064517c8f4d20bddc3663c9d985fa6509df49cd0c3904ac05ecff779800e3b63c413c92e95a15618c713531492e32c845e2a1160097 SHA512 33650ff548f77aa83a613211d3a810313ab347dff4b17f0c9ca274ec31d94c54ac9ae1fd96f581d0683a0c6f84adee3d275aabd9c805738c99f7b197029f3108
AUX cadical-makefile.in-ar.patch 323 BLAKE2B 226618745824824d8d7ccea53a3435abed9f829ca8462994fcdf805b7e5ba18a571214a16fbb2fcaeb0c91683424402e0a3c8dd05cd8f8dbdec19ed30aa023eb SHA512 30427fb87ef6aef56b9aebc3b2e0981e79c680c73dba20d371364d1b3668b51f1cbba4b6c7467ffb979245488b8ca1f2251a6321db4991221051f0c4b8e6a4d7
-DIST cadical-1.9.4.tar.gz 691203 BLAKE2B 40fcb86e60b2c6e4f24d43976e12ae063aa00ccfc8cad78d27e85b863b0faee23213d210886fd2f374aa93b575b741fd079351d3655ee1ed5bb17f96cd0005b6 SHA512 a3477ac3a4ddcb8bb797653efa9afe992a84db94900394d401667a55630932a91e847fc943bf5509d6672523818233c247db0be4268b9d8aae1636bad1877bc3
DIST cadical-1.9.5.tar.gz 691268 BLAKE2B 68c7fcc35ef0ad5082d5bbc828363ee45c2e637f281f1829ffb34047fff73775d34615e0ac37b8b49ff20b941db85b72c0dd6de0ab5ec5a690fd80fb5489b212 SHA512 b40727847ba0217f8d24e5468874264065c5ec9cbf0600d2e2395b8396a9d5f892127018ab9d1b930599a16a0817de5b0d29136c5dc74f2a72fb0f726e825271
-EBUILD cadical-1.9.4.ebuild 923 BLAKE2B 654e146a46b3ab80d4f718bab69f5c930146f15dfeb9bcf47ec5d59e64b422064443e2ec964a8077e9818c12cae0412324f43ca8f97c0c81ff1164af529a7280 SHA512 694c7c5ab8c8b69ad9bd0d962382377900658e2da4f53563c3ffb52ec1dd2ad24ce1676f33a58bae4136a41ebb5f0a4306b2dfe3a3c9756765a11f86fd2220ea
+DIST cadical-2.0.0.tar.gz 709136 BLAKE2B 76b738aef8063b96b11098be132bd9921cc6e4f39efe4c14916e1b9fb9517f464771a8f4fcc116a1a37fcd44b71513bb94516b3c81699f4d5417dde0e69ddb0c SHA512 5ec4d43751e36844afcfc9102e71a2fc1e5b1112506eb654e3aef7f2ba425738264b73b88b0400ec15222c8a9d2f4d37a1f60da69a0c061303904b7ad0a93885
EBUILD cadical-1.9.5.ebuild 923 BLAKE2B 654e146a46b3ab80d4f718bab69f5c930146f15dfeb9bcf47ec5d59e64b422064443e2ec964a8077e9818c12cae0412324f43ca8f97c0c81ff1164af529a7280 SHA512 694c7c5ab8c8b69ad9bd0d962382377900658e2da4f53563c3ffb52ec1dd2ad24ce1676f33a58bae4136a41ebb5f0a4306b2dfe3a3c9756765a11f86fd2220ea
+EBUILD cadical-2.0.0.ebuild 978 BLAKE2B 9c9846b75db3e01737ef024a276b4960f304f5feaf9e6bd14cd03c3d378ce93dcae164e046175af42eace5baddaaa69f60716b302dfc93cf7ef725ed234773cf SHA512 565058dbd8dac6b62071b581fbc95ec579df9c399e579d428786b80ea58a0b71308e366ea69cf4e305b89cba4ad10d1726863aaab374d5d2342de37512bfcd0f
MISC metadata.xml 613 BLAKE2B 6d7e0c1b5eae3803aa0981b195457cdcc6d2ffa2af655837e615da6ed6914ac5bec7a831ced6703ff67476561cf67139ea5519d98cdc2bd8d5781108496046e2 SHA512 b04ad6ae6e2626cea18049e3e20eb227b5580853b8ad77179ea693ed61f12d042b7ea505eb8cfafaa0121564ab0a4b6c7dcdf84f78fa2f47c465e6f61fb1a3f0
diff --git a/sci-mathematics/cadical/cadical-1.9.4.ebuild b/sci-mathematics/cadical/cadical-2.0.0.ebuild
index 4c087365b45b..0d4bf08a816c 100644
--- a/sci-mathematics/cadical/cadical-1.9.4.ebuild
+++ b/sci-mathematics/cadical/cadical-2.0.0.ebuild
@@ -6,7 +6,8 @@ EAPI=8
inherit toolchain-funcs
DESCRIPTION="Simplified Satisfiability Solver"
-HOMEPAGE="http://fmv.jku.at/cadical/"
+HOMEPAGE="http://fmv.jku.at/cadical/
+ https://github.com/arminbiere/cadical/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
@@ -25,13 +26,14 @@ SLOT="0/${PV}"
PATCHES=(
"${FILESDIR}/${PN}-configure.patch"
- "${FILESDIR}/${PN}-makefile.in-ar.patch"
+ "${FILESDIR}/${PN}-makefile-in-respect-ar-2.0.0.patch"
)
DOCS=( CONTRIBUTING.md NEWS.md README.md )
src_configure() {
tc-export AR
+
CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS} ${LDFLAGS}" ./configure || die
}
diff --git a/sci-mathematics/cadical/files/cadical-makefile-in-respect-ar-2.0.0.patch b/sci-mathematics/cadical/files/cadical-makefile-in-respect-ar-2.0.0.patch
new file mode 100644
index 000000000000..61787b76f29e
--- /dev/null
+++ b/sci-mathematics/cadical/files/cadical-makefile-in-respect-ar-2.0.0.patch
@@ -0,0 +1,11 @@
+--- a/makefile.in
++++ b/makefile.in
+@@ -60,7 +60,7 @@ mobical: src/mobical.o libcadical.a makefile $(LIBS)
+ $(COMPILE) -o $@ $< -L. -lcadical
+
+ libcadical.a: $(OBJ_SOLVER) $(OBJ_CONTRIB) makefile
+- ar rc $@ $(OBJ_SOLVER) $(OBJ_CONTRIB)
++ ${AR} rc $@ $(OBJ_SOLVER) $(OBJ_CONTRIB)
+
+ #--------------------------------------------------------------------------#
+
diff --git a/sci-mathematics/cgal/Manifest b/sci-mathematics/cgal/Manifest
index 46c0c7856522..a1ffab94cb85 100644
--- a/sci-mathematics/cgal/Manifest
+++ b/sci-mathematics/cgal/Manifest
@@ -1,5 +1,11 @@
AUX cgal-4.11.1-fix-buildsystem.patch 840 BLAKE2B e1179b2721e52b2edf305e2cb434a914f0b46b6aa694fd1766a8622b65ed8e8209a06bc134bfab97f07b789af45f74605fc7ed2b6c45ed5f5574a0a801c479dd SHA512 5e6315dfa64c58ea88d473b3513ec0817e6d212c325dd70b523d2dca2817fed2cdb0791686b7353c410e42ff8b1ee228a045bd6f002b591672066b33ce6f09ad
DIST CGAL-5.6-doc_html.tar.xz 72825232 BLAKE2B 08a5148592771c933126e38a74d77a98200800f17632d542e79ae1b9e53efc81ee44f13e5e81a5c4bfdd2e3e0591e3c0fb5c8cda2d2115faca169fced8961486 SHA512 48ff503c9dab03e4630e042c3c9febbd3c4ce7d3ad3fff1da693c00fc308f81472efcd8cda012edc9a1181966fc4e17aac60baab74be53bf63bc62b6db3d72c8
+DIST CGAL-5.6.1-doc_html.tar.xz 55148128 BLAKE2B 526d71be5c474570f5d17734a0931ecc3ba4564a7660d798dc00ea901cc27a421e02032490f3355d58dc6ed0b213e916288a025d3d3de4be2887fcb7b42e52a3 SHA512 88b313bc62007412a3b31ae494bd6e03ee4910d689fbc6dbd22c3a38bbd02ffcad5fcf7e71583dfc5a0ef32577e2a1639972d9e5c5e8bef38443e7dd953e7543
+DIST CGAL-5.6.1.tar.xz 24893904 BLAKE2B 51abb85af785a6428893df282ce8e8dd6f2aed705d89b057e52f08e4cc42bf2696f676553bd89adb5178915b980b2566bae61bc9809ba58913b9244dac26034d SHA512 34b0b5958253fd4bcfd83ec40d3232bcd1f3ee4c07739ad3e19bf97104c628d10601909cc2343e48fceca0407a41f2c31a686b182b795e471a9a02f1964574f0
DIST CGAL-5.6.tar.xz 24874364 BLAKE2B 556c05177f8b3bcecfd16f2bd38cb6505ab04fb41f1fdcfc97a300f539c7642c3529c75cbe29fd6186b329b3ea844698e752d04690d010a7a5c3f5b6ad3a141f SHA512 1d91ad870b63bce36e060c0de7fa2e7ab98f9d9f6cf7c94d91a6677db237f50c28f8fc49f24bef943b2adcb5a4a8acf01dd94092a97024c33413763348131ea4
+DIST CGAL-6.0-beta1-doc_html.tar.xz 60360336 BLAKE2B cf9612d1168caa03985b432aba5b272ccfc879bbf7ee4cd8d22196f29c74957481aa6704a3c653bd2bfd8aee2d1d05beb1f966201d28d9a186f06441f10087f8 SHA512 9d547114a29abbcf0a3ac486b7073fed77a4bc240f2c565c14acc857e4bb52af348bb73ef318280da577beb2346b79b14db92e33816b9d564ae27dbec924e6f7
+DIST CGAL-6.0-beta1.tar.xz 26383632 BLAKE2B df1e2b00ea5f4a936080d2f308c77fc4053d34b0924dea34431c657f2bdee7a7122aaffb89d323877c360cec65ae238fa188cb03140b337805c26d48a812c05a SHA512 bcbfd6f8704a9d64c3371b1ba0bf4ecd601178a2a849065bff2c5ec3651317237e2d4ee961dcc68936bb0c0a8e7d00220943067bfd18b51f35bc035f76a10891
+EBUILD cgal-5.6.1.ebuild 1238 BLAKE2B 8094fe3fadccc096665fd7898c2efc7d5d6644e0353b2e6a704aebe1656cb159e30a8eaa17aa9b026f9a62f7f059415c4915a93e45337413b528ce4507f78f39 SHA512 7373abbe5b5d4348a71675b676176e0edc11a56e1c8c24b037ef3f2b5b77e3023a7f6a7ba976e79b7da496e0ea9e5c001aab7b8899d65a517866969a78696bf5
EBUILD cgal-5.6.ebuild 1248 BLAKE2B 85bf70631e6dbc0adb5aa26d52ee6f5948d8ae1f59f0db773a47d41eec88d50aabc5f61b6977e8fadcc55dcb0994d2e355551d98e1b2f5660633df99c2cdec81 SHA512 6f90f4c5b621b214a93556d19f4b1b9b4816cdc759a7d16ed12c7353b00d0b88277f6e4e4bdf39f45fc2cbf558cf03750f406a2ce5c8d642899124d19acc22bb
+EBUILD cgal-6.0_beta1.ebuild 1268 BLAKE2B 4b748619cda3f713e1678bdb685c08669610558ce8744defa91884d4fb3f272699cd6ae6c3849c5fdacf702cf37ed1928dc0eb5c01af6d2e1009e8be72e6ef14 SHA512 81e4985f29bdf65486041cff05fb94064845f78a828406f3084db10fab780302cdd0f230d8d6e526f17ed6dc61d91458b47ec57e5239c31ac82feed2cd4e5ba5
MISC metadata.xml 1118 BLAKE2B ed180a3128a37bc151ce89a0edcc076b09449a43e9ce7633ac0c0343b20cdd585cf6b68dc92262730d8379b4eb0d4b26feba90327384f2e4546fba27336d96ca SHA512 c407490521df2908343dbc870684938dfe71e5f4a072f016361db9f08ebb598540c69a704ce97cf803b4e23846a18c259fc208f286f0d11d8acbadd32182142c
diff --git a/sci-mathematics/cgal/cgal-5.6.1.ebuild b/sci-mathematics/cgal/cgal-5.6.1.ebuild
new file mode 100644
index 000000000000..bf8e155e7a1e
--- /dev/null
+++ b/sci-mathematics/cgal/cgal-5.6.1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Modules provided by dev-cpp/eigen
+CMAKE_REMOVE_MODULES_LIST=( FindEigen3 )
+inherit cmake
+
+MY_P=CGAL-${PV}
+DESCRIPTION="C++ library for geometric algorithms and data structures"
+HOMEPAGE="https://www.cgal.org/"
+SRC_URI="
+ https://github.com/CGAL/cgal/releases/download/v${PV}/${MY_P}.tar.xz
+ doc? ( https://github.com/CGAL/cgal/releases/download/v${PV}/${MY_P}-doc_html.tar.xz )"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="LGPL-3 GPL-3 Boost-1.0"
+SLOT="0/14"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples"
+
+RDEPEND="
+ dev-cpp/eigen
+ dev-libs/boost:=
+ dev-libs/gmp:=[cxx]
+ dev-libs/mpfr:=
+ sys-libs/zlib
+ x11-libs/libX11:=
+ virtual/glu:=
+ virtual/opengl:=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ app-arch/xz-utils
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.11.1-fix-buildsystem.patch
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DCGAL_INSTALL_LIB_DIR="$(get_libdir)"
+ -DCGAL_INSTALL_CMAKE_DIR="$(get_libdir)/cmake/CGAL"
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ use doc && local HTML_DOCS=( "${WORKDIR}"/doc_html/. )
+
+ cmake_src_install
+
+ if use examples; then
+ dodoc -r examples demo
+ fi
+}
diff --git a/sci-mathematics/cgal/cgal-6.0_beta1.ebuild b/sci-mathematics/cgal/cgal-6.0_beta1.ebuild
new file mode 100644
index 000000000000..99f0659b8999
--- /dev/null
+++ b/sci-mathematics/cgal/cgal-6.0_beta1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Modules provided by dev-cpp/eigen
+CMAKE_REMOVE_MODULES_LIST=( FindEigen3 )
+inherit cmake
+
+MY_PV="${PV/_/-}"
+MY_P="CGAL-${PV/_/-}"
+DESCRIPTION="C++ library for geometric algorithms and data structures"
+HOMEPAGE="https://www.cgal.org/"
+SRC_URI="
+ https://github.com/CGAL/cgal/releases/download/v${MY_PV}/${MY_P}.tar.xz
+ doc? ( https://github.com/CGAL/cgal/releases/download/v${MY_PV}/${MY_P}-doc_html.tar.xz )"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="LGPL-3 GPL-3 Boost-1.0"
+SLOT="0/14"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples"
+
+RDEPEND="
+ dev-cpp/eigen
+ dev-libs/boost:=
+ dev-libs/gmp:=[cxx]
+ dev-libs/mpfr:=
+ sys-libs/zlib
+ x11-libs/libX11:=
+ virtual/glu:=
+ virtual/opengl:=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ app-arch/xz-utils
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.11.1-fix-buildsystem.patch
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DCGAL_INSTALL_LIB_DIR="$(get_libdir)"
+ -DCGAL_INSTALL_CMAKE_DIR="$(get_libdir)/cmake/CGAL"
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ use doc && local HTML_DOCS=( "${WORKDIR}"/doc_html/. )
+
+ cmake_src_install
+
+ if use examples; then
+ dodoc -r examples demo
+ fi
+}
diff --git a/sci-mathematics/coq-serapi/Manifest b/sci-mathematics/coq-serapi/Manifest
index 9acd15d4684e..b5943328f02f 100644
--- a/sci-mathematics/coq-serapi/Manifest
+++ b/sci-mathematics/coq-serapi/Manifest
@@ -1,5 +1,7 @@
AUX 50sertop-gentoo.el 85 BLAKE2B d06e7c0823a3bedbf5f9c91ea8ea26bc9ed9d2ea44030316a1f3d65c19e51d874f03c845af5ae8237a9562cff7c81e24196c5ae29e54d79d1ba322f51904ba5d SHA512 42e61d798800d2e4c7e0702bdff53401a06ff6def54a1c7c0a8a6fd3e6a2f502c48bc84a04356818aa2ec5241bdd63b407837df123bfad76fafb78cf8a5a6cca
AUX coq-serapi-0.19.0-sertop-el.patch 303 BLAKE2B 106d44d3dc7e0e6400861382e582734111a2e64ab018d78722214d2858a0449e9f519fc7119893a78615e2d9afb5f481446141714a6f288cda6236f0d1156b01 SHA512 038508239e54194ff70207611c517c5f46ecb323f0492c3cd901492bc717995753dea6dd003228de7d2ccde2aaf8d87033cb5fd4271fd6f1504a00ea7de0eb82
DIST coq-serapi-0.19.0.tar.gz 180779 BLAKE2B 27083a851139e983158b4cb251d37971d0eec61dd91303a0d09512e690c56a75624dab8c5120eebaed1e7bb168d0b2b889d538854812506c4d0a804f7bee7423 SHA512 e01706beb957315011682f2f74448e66c7a8a077418eeaf7d3fa21414bdf88950b75adbfe2392656e4d6036ce6585d4d53b1dadfd8379249b2943ea389c9c83e
+DIST coq-serapi-0.20.0.tar.gz 182481 BLAKE2B 0483eb7023c67b42def13d23ceec7375d4a575f58ef0b6ed39cbcf8c8f76633c74c83bdebff18b7a777d90beeb20d03c38f20cff525afd1822db31c4a168d413 SHA512 00f8ff851c1b99f45761d098af51949f9a6844d05e23b2cede795bb4f93a9a0a753b45c38271537b257f0ec9cd7538be251174eff483a89cd57889f40a358c27
EBUILD coq-serapi-0.19.0.ebuild 1506 BLAKE2B 3d4fa121e18fce87c36d18c07fb74e3b476923f70297a9379ec33cf8226c784ed701de068d73739437fed6efc669f49ee71efcb869d7f249fa97b70df4f78f25 SHA512 d7b63c62d34855d298f6129dff53ca46bb805a0714719111d95611bc39d6c2db77db9d0404edc50145ae14beebe53a7acd214be42ba62720c8e3d6d2d78bf818
+EBUILD coq-serapi-0.20.0.ebuild 1631 BLAKE2B a55991677a6b688de88659d22920ad87d0941c6cdc9f80337af1aba008a7defa9435b49ae6879ff26c352211fc7528ad2ab023b2d4e7bcab3426d0219d50de64 SHA512 3619ab65129df0f07d1aeb54349f03c1b44dd1c13f43a87ff0834a6b599bbdad481c0c91954935d03e7dd4bec22a62aa09d3288509840bbf27bd801997b98cfa
MISC metadata.xml 935 BLAKE2B e1444df414ce499df466597f5e0949e8ebf2d6da23d77028546324109659f58c5f0284a315ea062410a2f2e4631aac8d3564664719e89d76ad6ded9bb8ba7a5f SHA512 172fedbb2aa42e2be9aff426d64fcd69d2dfa206bb0e6072c6ecdc14a1923a2f0676303d8d8aebfe9a3e96e0a1e89185d2d4952bdb9ba1fff44b3891f26d6bf7
diff --git a/sci-mathematics/coq-serapi/coq-serapi-0.20.0.ebuild b/sci-mathematics/coq-serapi/coq-serapi-0.20.0.ebuild
new file mode 100644
index 000000000000..2a430ae8faf5
--- /dev/null
+++ b/sci-mathematics/coq-serapi/coq-serapi-0.20.0.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+COQ_MIN_V="8.20.0"
+COQ_MAX_V="8.21.0"
+
+inherit dune elisp-common
+
+DESCRIPTION="Serialization library and protocol for interaction with the Coq proof assistant"
+HOMEPAGE="https://github.com/ejgallego/coq-serapi/"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/ejgallego/${PN}.git"
+else
+ # The tarball in SRC_URI is comprised of <supported coq>+<package version>
+ SRC_URI="https://github.com/ejgallego/${PN}/archive/${COQ_MIN_V}+${PV}.tar.gz
+ -> ${P}.tar.gz"
+ S="${WORKDIR}/${PN}-${COQ_MIN_V}-${PV}"
+
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-3+"
+SLOT="0/${PV}"
+IUSE="emacs +ocamlopt test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=sci-mathematics/coq-${COQ_MIN_V}:= <sci-mathematics/coq-${COQ_MAX_V}:=
+ >=dev-ml/ppx_sexp_conv-0.13.0:=
+ dev-ml/cmdliner:=
+ dev-ml/ppx_compare:=
+ dev-ml/ppx_deriving:=
+ dev-ml/ppx_deriving_yojson:=
+ dev-ml/ppx_hash:=
+ dev-ml/ppx_import:=
+ dev-ml/sexplib:=
+ dev-ml/yojson:=
+"
+DEPEND="
+ ${RDEPEND}
+"
+BDEPEND="
+ emacs? (
+ >=app-editors/emacs-23.1:*
+ )
+ test? (
+ sci-mathematics/coq-mathcomp
+ )
+"
+
+PATCHES=( "${FILESDIR}/${PN}-0.19.0-sertop-el.patch" )
+
+SITEFILE="50sertop-gentoo.el"
+
+src_compile() {
+ dune_src_compile
+
+ use emacs && elisp-compile sertop/*.el
+}
+
+src_install() {
+ dune_src_install
+
+ rm -r "${ED}/usr/share/emacs" || die
+
+ if use emacs ; then
+ elisp-install "${PN}" sertop/*.el{,c}
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/sci-mathematics/coq/Manifest b/sci-mathematics/coq/Manifest
index e80249f90020..c46153b0b628 100644
--- a/sci-mathematics/coq/Manifest
+++ b/sci-mathematics/coq/Manifest
@@ -1,5 +1,9 @@
DIST coq-8.19.0.tar.gz 7674352 BLAKE2B 195040c01797ac9ce67611e0c96a4601e0a48966e094e868b9f3644aa9f75fa85adf0e2e6340a14ae0a0598b746f5ad989d8f10736cd2d3852a449f6f79d2c93 SHA512 02fb5b4fb575af79e092492cbec6dc0d15a1d74a07f827f657a72d4e6066532630e5a6d15be4acdb73314bd40b9a321f9ea0584e0ccfe51fd3a56353bd30db9b
DIST coq-8.19.1.tar.gz 7675945 BLAKE2B 62ee346f50d0a22ab217a8e689c3078347519d159619b75f20a8decace356b49c60bcd5b2cec5fbcaffc758a8944f8a7940298df1c0ddddfbd858ed9269c12f3 SHA512 ec8379df34ba6e72bcf0218c66fef248b0e4c5c436fb3f2d7dd83a2c5f349dd0874a67484fcf9c0df3e5d5937d7ae2b2a79274725595b4b0065a381f70769b42
-EBUILD coq-8.19.0.ebuild 2492 BLAKE2B fe590d0bda77462a0a6ea157a80dfa7985a381b464a2721745d33c30bf5a0cca4a8545c7b7a1d64824a9537c5896f566aaec62d794bb57930741337b2b4422e8 SHA512 8893d803d164780d4830645c15c303afa4b09647025eb223c0badc154ab2f6b80b36e82bb5c63b637a9350ff0829d8206af3dc2e5f2bb504c65fc23c69679dae
-EBUILD coq-8.19.1.ebuild 2493 BLAKE2B 277efc3bf5c38592e7729a7a2e46cd21a7b5a02934ab22e4c57c8da13b59dd63bc21552291efc88cd542debe7cb940f4f93ea5e2d51aae33bb3ccc32a1fd8b7a SHA512 4196e78ef5929e6ecf2381bb11b760ddb90e9a0be00a6ce30bd8feeec15adfcc7534178f306a23fc22871d37b7de7bdf8effb3dec19731ca77ae087c21ebe2b1
+DIST coq-8.19.2.tar.gz 7678311 BLAKE2B 5f9617fbe0127b0c8357c63f331ba3e9fb5a931be9a4a8e8de2e27820a0d986bf99ed9a512740a0f721c742504225ae56e240af893510aa0e449931499d10aab SHA512 91bc81530fa4f6498961583ad51eac5001f139881788b88e360a866ad8e2a6e2c5bce86d1a580ab4cd4782bf49d48318767df82471ce33ba3ac143e5569ad33c
+DIST coq-8.20.0.tar.gz 7839432 BLAKE2B 9b489db0cc6874b0a629f3bdb4b503201005ec95a3375441538cd7e51d371a39561b9d0ab23ac485652782fdc7ae8d90c97ca1ff4d9a85fb8727a39ed4a6f48c SHA512 1a7eac6e2f58724a3f9d68bbb321e4cfe963ba1a5551b9b011db4b3f559c79be433d810ff262593d753770ee41ea68fbd6a60daa1e2319ea00dff64c8851d70b
+EBUILD coq-8.19.0.ebuild 2491 BLAKE2B ee610273d5294b25e7aa48cfb048b99af86aef21fb8d3c21019da509c82912b4f6624ae5076a694d98eb3679e9eba7ef138cb12a8ba0f938ce7ecbe4aacf6027 SHA512 498a461e9bc69016aab3abc5578bbd2367322dc14f8c2db9293a246022a4d8065dd06966741db3ae45365b3c1049703f85a9cef42416a8be3ed469dc4d80233e
+EBUILD coq-8.19.1.ebuild 2492 BLAKE2B 1c1d296a61f57bf8e5120aa8e70dce382548cc55a8c1365c1e85b33080e3fd346ea1b904e9440af465c67416b83f4b4e538ec558ce0b8c10ec42a94efee7e0f8 SHA512 9783ef6098d6028dd207a239796916ed90d8eab01429c4fded5e25f0a1c776f1c9dc0bac9f15e4d0847ad5d915bb69760937347cb6f295806f61af95cec2199b
+EBUILD coq-8.19.2.ebuild 2484 BLAKE2B 54de05ac84bb2df76e6defa2f96014d3488a78129a6e1b480857ea04ccf1ca1d0c96deacbe544aec0dfffd53c51fc490bef2c9d22c64fdbe7cddd99833f63f75 SHA512 5a236fd48123fd32fe3f13ce964f0effca8ab3ef8a27d025c75bcdd10d7afd511cd506347eb889c59b3ac3fbe8838d6a3757f4c0fa82c277d6669cb926a2bdc4
+EBUILD coq-8.20.0.ebuild 2896 BLAKE2B 0b241fec6dd165b83fa07c0708b03461ceebbf800fd6501936c8c36e7c9a0f42c6c01594c1ee48903b535dbd65a2fc389bd4bdb66e98ffe926a78fe302e4acec SHA512 5d4d0a01cf012f142cb341d63c2c19ea05be45c2605ca2a2ebe92a9773703d046927318371afc5804187546e0a60daa225b20df05428f721dd04e964a4dc1378
MISC metadata.xml 1047 BLAKE2B 9f6defdf213139ee6549bc8f3b36ce5e8f53ea73bd5aad9262932cbaea7e90bd97c9ffc9dbbd03ac50097c5a6f19f5ddf00dd2b74cc6a5349faf1b597244fb67 SHA512 0f5bfbdd9ffd6f64379e697ed7cf90c2d9257cd1815e520aa14235f1cb399d20fc863221a0cae803cc88e5975be964b9debc3d750a6378ea157146f2e567c5dc
diff --git a/sci-mathematics/coq/coq-8.19.0.ebuild b/sci-mathematics/coq/coq-8.19.0.ebuild
index 34fb7a688efa..bd6df0374602 100644
--- a/sci-mathematics/coq/coq-8.19.0.ebuild
+++ b/sci-mathematics/coq/coq-8.19.0.ebuild
@@ -90,7 +90,7 @@ src_configure() {
-native-compiler "$(usex ocamlopt yes no)"
)
use debug && myconf+=( -debug )
- edob sh ./configure "${myconf[@]}"
+ edo sh ./configure "${myconf[@]}"
}
src_compile() {
diff --git a/sci-mathematics/coq/coq-8.19.1.ebuild b/sci-mathematics/coq/coq-8.19.1.ebuild
index 33c2b23fecf7..a4d16f2c2b48 100644
--- a/sci-mathematics/coq/coq-8.19.1.ebuild
+++ b/sci-mathematics/coq/coq-8.19.1.ebuild
@@ -90,7 +90,7 @@ src_configure() {
-native-compiler "$(usex ocamlopt yes no)"
)
use debug && myconf+=( -debug )
- edob sh ./configure "${myconf[@]}"
+ edo sh ./configure "${myconf[@]}"
}
src_compile() {
diff --git a/sci-mathematics/coq/coq-8.19.2.ebuild b/sci-mathematics/coq/coq-8.19.2.ebuild
new file mode 100644
index 000000000000..f61b2d0f54da
--- /dev/null
+++ b/sci-mathematics/coq/coq-8.19.2.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PV="${PV/_p/pl}"
+MY_P="${PN}-${MY_PV}"
+
+inherit check-reqs desktop dune edo
+
+DESCRIPTION="Proof assistant written in O'Caml"
+HOMEPAGE="http://coq.inria.fr/
+ https://github.com/coq/coq/"
+SRC_URI="https://github.com/coq/coq/archive/V${MY_PV}.tar.gz
+ -> ${P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="LGPL-2.1"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug doc gui +ocamlopt test"
+
+# TODO: Lots of failing tests. Maybe investigate later.
+# RESTRICT="!test? ( test )"
+RESTRICT="test"
+
+RDEPEND="
+ dev-ml/num:=
+ dev-ml/zarith:=
+ gui? (
+ >=dev-ml/lablgtk-3.1.2:3=[sourceview,ocamlopt?]
+ >=dev-ml/lablgtk-sourceview-3.1.2:3=[ocamlopt?]
+ )
+"
+DEPEND="
+ ${RDEPEND}
+"
+BDEPEND="
+ dev-ml/findlib
+ doc? (
+ >=dev-java/antlr-4.7:4
+ dev-python/antlr4-python3-runtime
+ dev-python/beautifulsoup4
+ dev-python/pexpect
+ dev-python/sphinx-rtd-theme
+ dev-python/sphinxcontrib-bibtex
+ dev-tex/latexmk
+ dev-texlive/texlive-fontsextra
+ dev-texlive/texlive-latexextra
+ dev-texlive/texlive-xetex
+ media-fonts/freefont
+ )
+ test? (
+ dev-ml/ounit2
+ )
+"
+
+CHECKREQS_DISK_BUILD="2G"
+
+DOCS=( CODE_OF_CONDUCT.md CONTRIBUTING.md CREDITS INSTALL.md README.md )
+DUNE_PACKAGES=()
+
+src_prepare() {
+ # Remove failing tests. bug #904186
+ rm -r test-suite/coq-makefile/timing || die
+
+ default
+}
+
+src_configure() {
+ export CAML_LD_LIBRARY_PATH="${S}/kernel/byterun/"
+
+ DUNE_PACKAGES=(
+ coq-core
+ coq-stdlib
+ coqide-server
+ coq
+ )
+ use gui && DUNE_PACKAGES+=( coqide )
+
+ emake clean
+
+ local -a myconf=(
+ -prefix /usr
+ -libdir "/usr/$(get_libdir)/coq"
+ -mandir /usr/share/man
+ -docdir "/usr/share/doc/${PF}"
+ -datadir /usr/share/coq
+ -configdir "/etc/xdg/${PN}"
+ -native-compiler "$(usex ocamlopt yes no)"
+ )
+ use debug && myconf+=( -debug )
+ edo sh ./configure "${myconf[@]}"
+}
+
+src_compile() {
+ emake DUNEOPT="--display=short --profile release" VERBOSE=1 dunestrap
+
+ dune-compile "${DUNE_PACKAGES[@]}"
+
+ use doc && emake refman-html
+}
+
+src_install() {
+ dune-install "${DUNE_PACKAGES[@]}"
+
+ if use gui ; then
+ make_desktop_entry coqide "Coq IDE" "${EPREFIX}/usr/share/coq/coq.png"
+ fi
+
+ local ocamlc_where
+ ocamlc_where="$(ocamlc -where)"
+
+ # Dune installs into /usr/<libdir>/ocaml/<coq> but
+ # Coq wants /usr/<libdir>/<coq> ; symlink those directories
+ local sym
+ for sym in "${DUNE_PACKAGES[@]}" ; do
+ dosym "${ocamlc_where}/${sym}" "/usr/$(get_libdir)/${sym}"
+ done
+
+ einstalldocs
+}
diff --git a/sci-mathematics/coq/coq-8.20.0.ebuild b/sci-mathematics/coq/coq-8.20.0.ebuild
new file mode 100644
index 000000000000..7446a497d097
--- /dev/null
+++ b/sci-mathematics/coq/coq-8.20.0.ebuild
@@ -0,0 +1,139 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit check-reqs desktop dune edo
+
+DESCRIPTION="Proof assistant written in O'Caml"
+HOMEPAGE="https://coq.inria.fr/
+ https://github.com/coq/coq/"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/coq/coq.git"
+else
+ SRC_URI="https://github.com/coq/coq/archive/V${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0/${PV}"
+IUSE="debug doc gui +ocamlopt test"
+
+# TODO: Lots of failing tests. Maybe investigate later.
+# RESTRICT="!test? ( test )"
+RESTRICT="test"
+
+RDEPEND="
+ dev-ml/num:=
+ dev-ml/zarith:=
+ gui? (
+ >=dev-ml/lablgtk-3.1.2:3=[sourceview,ocamlopt?]
+ >=dev-ml/lablgtk-sourceview-3.1.2:3=[ocamlopt?]
+ )
+"
+DEPEND="
+ ${RDEPEND}
+"
+BDEPEND="
+ dev-ml/findlib
+ doc? (
+ >=dev-java/antlr-4.7:4
+ dev-python/antlr4-python3-runtime
+ dev-python/beautifulsoup4
+ dev-python/pexpect
+ dev-python/sphinx-rtd-theme
+ dev-python/sphinxcontrib-bibtex
+ dev-tex/latexmk
+ dev-texlive/texlive-fontsextra
+ dev-texlive/texlive-latexextra
+ dev-texlive/texlive-xetex
+ media-fonts/freefont
+ )
+ test? (
+ dev-ml/ounit2
+ )
+"
+
+CHECKREQS_DISK_BUILD="2G"
+
+DOCS=( CODE_OF_CONDUCT.md CONTRIBUTING.md CREDITS INSTALL.md README.md )
+DUNE_PACKAGES=()
+
+src_prepare() {
+ # Remove bad tests (recursive).
+ local -a bad_tests=(
+ coq-makefile/timing-aggregate
+ coq-makefile/timing-error
+ coq-makefile/timing-per-file
+ coq-makefile/timing-per-line
+ coq-makefile/timing-template
+ )
+ local bad_test=""
+ for bad_test in "${bad_tests[@]}" ; do
+ if [[ -e "test-suite/${bad_test}" ]] ; then
+ rm -r "test-suite/${bad_test}" || die "failed to remove test ${bad_test}"
+ else
+ ewarn "Test file ${bad_test} does not exist"
+ fi
+ done
+
+ default
+}
+
+src_configure() {
+ export CAML_LD_LIBRARY_PATH="${S}/kernel/byterun/"
+
+ DUNE_PACKAGES=(
+ coq-core
+ coq-stdlib
+ coqide-server
+ coq
+ )
+ use gui && DUNE_PACKAGES+=( coqide )
+
+ emake clean
+
+ local -a myconf=(
+ -prefix /usr
+ -libdir "/usr/$(get_libdir)/coq"
+ -mandir /usr/share/man
+ -docdir "/usr/share/doc/${PF}"
+ -datadir /usr/share/coq
+ -configdir "/etc/xdg/${PN}"
+ -native-compiler "$(usex ocamlopt yes no)"
+ )
+ use debug && myconf+=( -debug )
+ edo sh ./configure "${myconf[@]}"
+}
+
+src_compile() {
+ emake DUNEOPT="--display=short --profile release" VERBOSE="1" dunestrap
+
+ dune-compile "${DUNE_PACKAGES[@]}"
+
+ use doc && emake refman-html
+}
+
+src_install() {
+ dune-install "${DUNE_PACKAGES[@]}"
+
+ if use gui ; then
+ make_desktop_entry coqide "Coq IDE" "${EPREFIX}/usr/share/coq/coq.png"
+ fi
+
+ local ocamlc_where="$(ocamlc -where)"
+
+ # Dune installs into /usr/<libdir>/ocaml/<coq> but
+ # Coq wants /usr/<libdir>/<coq> ; symlink those directories
+ local sym=""
+ for sym in "${DUNE_PACKAGES[@]}" ; do
+ dosym "${ocamlc_where}/${sym}" "/usr/$(get_libdir)/${sym}"
+ done
+
+ einstalldocs
+}
diff --git a/sci-mathematics/cryptominisat/Manifest b/sci-mathematics/cryptominisat/Manifest
index b56b01b10cc6..0cb8eb22d717 100644
--- a/sci-mathematics/cryptominisat/Manifest
+++ b/sci-mathematics/cryptominisat/Manifest
@@ -1,5 +1,5 @@
-DIST cryptominisat-5.11.15.tar.gz 968163 BLAKE2B e14d7d42fa8391cbb16d887c90b3a4d272644895ec11cf134df8b9d8e46ef425afab3622cf109d4c1f2a16f6f24d3768110aff947df0070cd660b29da1cdc609 SHA512 a84e060e3fddbd19f1b35f61b0931c342cdb545d1135f33b5390446598b8d5743258e59975b71d62a25b86e0704d90b52072e97989f1b81e80e2bbba3118d3fb
+AUX cryptominisat-5.11.21-setup-py.patch 466 BLAKE2B 17cd196e3413ebe3d560b6839ca8ff4fc39a4505d009bbf511df183d1536d234e7358b9b87ae9319ec1a4cf95a52f5e7b09f099535f2552433cf35ed420283c7 SHA512 ed0d8c78b3baab0be6c934314152dbf0de7564f1e03504f66fd358d0b8283c488b84daf6fe0aa9f4af860cf5c208320ba2a34b590d3dddbc084bb44c4720983c
+AUX cryptominisat-5.11.21-unistd.patch 253 BLAKE2B 7b1d2bff8cf5ab2af33d91c0a680b2bdd3baf129d529a87c86cc6fab8f5d35ca0d202635c03c00a42786a896b1071c4fbfaa76cab970e625744d89c3b2c62140 SHA512 f7748158a7402d140c5e6ce1326862bead4d23587341a997c63e7947de685e9c2a366781af6c661feb2e21fb82f7e6feb2c3cc7ab4f25c361ed41f0bfcb3726d
DIST cryptominisat-5.11.21.tar.gz 975459 BLAKE2B c1a8e274a5221584c7245405f6b617951528a477ae36680da293acc9e7ee46692a0a37c057749a98c41b7bc302a3d0b9de176379b8c9aece339c2aaa6b6a3308 SHA512 5a1ac51b27cc692c793831aba83cc71188f9c46abdef809fae9c830a2801e1c45310cf5ada1ba4e10cb11aba5efef6407a9f7f0506474f30bdd4a58bfcbdbef7
-EBUILD cryptominisat-5.11.15.ebuild 752 BLAKE2B 6b1ec4218e34de0fcb98cb8e5877659a8f81feaba1d3bc9a92cfa7f7c004c3e655d45149ebbe92dca11ea180138eb15705aa8e550c5b7cb22ba3d739bf375505 SHA512 0c681051ab75b14a19b7c7405e6e0ae750b9243b0009a4608d39b88ad9ca79f91ddb8b4bbcf62530538e02588bb6df23efa5e53d80ddeb85bdfaafafbb771da0
-EBUILD cryptominisat-5.11.21.ebuild 763 BLAKE2B b4b79c03461f2b7f1e0e9d81286c0e4bc4144504d9b61c2a42016ca5990a092f5da5035bacebb8dbfbfe15384f81ba1e98ea10dddeff401d833f977c17c51a98 SHA512 6b696b6821909b0026c157dd282d32b3f949986f1a8097545a59c02627a823389c820aff43bed33b22fb0b35a03e0a764ac52d476526c3690effd5ce60ab1eba
+EBUILD cryptominisat-5.11.21-r1.ebuild 1543 BLAKE2B 5fc6caaeac2bebc9a7c3955cfd0775847494efb73036d2d76a7f556647868c4eaf4f7fa8c6d8de2e67d0caff0038fff8da08413085a791533129873c05b043c4 SHA512 f996ba638198328dccd8d1e2c944677a4698da21670e21c77eb582189ac4b740a60f384daff8c6361c360751c3519401731c063111f18f2bd57caf705603e44c
MISC metadata.xml 858 BLAKE2B 4543d51cedd7b5e5e8508c14dfae420360f9d76ada1b969d855ca2b17b2c967036b29a9f2769a2c78e736c1e449e2b079558cd7460a72d402e9f1ce029ba414a SHA512 e1b39d888ab6c09f8707a164c7f683831a908477b2c7f219f4c9f71161ba84c145836ca2b1665e200f15a6e2ff6ca6318bd16fc40d57ad9c64bd1a4e229fbabc
diff --git a/sci-mathematics/cryptominisat/cryptominisat-5.11.15.ebuild b/sci-mathematics/cryptominisat/cryptominisat-5.11.15.ebuild
deleted file mode 100644
index 8eb2f8619f84..000000000000
--- a/sci-mathematics/cryptominisat/cryptominisat-5.11.15.ebuild
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake
-
-DESCRIPTION="Advanced SAT solver with C++ and command-line interfaces"
-HOMEPAGE="https://github.com/msoos/cryptominisat/"
-
-if [[ "${PV}" == *9999* ]] ; then
- inherit git-r3
-
- EGIT_REPO_URI="https://github.com/msoos/${PN}.git"
-else
- SRC_URI="https://github.com/msoos/${PN}/archive/${PV}.tar.gz
- -> ${P}.tar.gz"
-
- KEYWORDS="~amd64 ~x86"
-fi
-
-SLOT="0/${PV}"
-LICENSE="GPL-2 MIT"
-RESTRICT="test" # Tests require many git modules.
-
-RDEPEND="
- dev-libs/boost:=
- sys-libs/zlib:=
-"
-DEPEND="${RDEPEND}"
-
-src_configure() {
- local -a mycmakeargs=(
- -DNOBREAKID=ON
- -DNOM4RI=ON
- -DENABLE_TESTING=OFF
- )
- cmake_src_configure
-}
diff --git a/sci-mathematics/cryptominisat/cryptominisat-5.11.21-r1.ebuild b/sci-mathematics/cryptominisat/cryptominisat-5.11.21-r1.ebuild
new file mode 100644
index 000000000000..db2ca950f559
--- /dev/null
+++ b/sci-mathematics/cryptominisat/cryptominisat-5.11.21-r1.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CMAKE_IN_SOURCE_BUILD="ON"
+
+PYTHON_COMPAT=( python3_{11..13} )
+
+DISTUTILS_EXT="1"
+DISTUTILS_OPTIONAL="1"
+DISTUTILS_USE_PEP517="setuptools"
+
+inherit cmake distutils-r1
+
+DESCRIPTION="Advanced SAT solver with C++ and command-line interfaces"
+HOMEPAGE="https://github.com/msoos/cryptominisat/"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/msoos/${PN}.git"
+else
+ SRC_URI="https://github.com/msoos/${PN}/archive/${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2 MIT"
+SLOT="0/${PV}"
+IUSE="python"
+RESTRICT="test" # Tests require some git modules.
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ dev-libs/boost:=
+ sys-libs/zlib:=
+ python? (
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep '
+ dev-python/tomli[${PYTHON_USEDEP}]
+ ')
+ )
+"
+DEPEND="
+ ${RDEPEND}
+"
+BDEPEND="
+ python? (
+ ${DISTUTILS_DEPS}
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-5.11.21-setup-py.patch"
+ "${FILESDIR}/${PN}-5.11.21-unistd.patch"
+)
+
+src_prepare() {
+ cmake_src_prepare
+
+ if use python ; then
+ distutils-r1_src_prepare
+ fi
+}
+
+src_configure() {
+ local -a mycmakeargs=(
+ -DNOBREAKID=ON
+ -DENABLE_TESTING=OFF
+ )
+ cmake_src_configure
+
+ if use python ; then
+ python_setup
+ fi
+}
+
+src_compile() {
+ cmake_src_compile
+
+ if use python ; then
+ distutils-r1_src_compile
+ fi
+}
+
+src_install() {
+ cmake_src_install
+
+ if use python ; then
+ distutils-r1_src_install
+ fi
+}
diff --git a/sci-mathematics/cryptominisat/cryptominisat-5.11.21.ebuild b/sci-mathematics/cryptominisat/cryptominisat-5.11.21.ebuild
deleted file mode 100644
index 4beb16299f8c..000000000000
--- a/sci-mathematics/cryptominisat/cryptominisat-5.11.21.ebuild
+++ /dev/null
@@ -1,40 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake
-
-DESCRIPTION="Advanced SAT solver with C++ and command-line interfaces"
-HOMEPAGE="https://github.com/msoos/cryptominisat/"
-
-if [[ "${PV}" == *9999* ]] ; then
- inherit git-r3
-
- EGIT_REPO_URI="https://github.com/msoos/${PN}.git"
-else
- SRC_URI="https://github.com/msoos/${PN}/archive/${PV}.tar.gz
- -> ${P}.tar.gz"
-
- KEYWORDS="~amd64 ~x86"
-fi
-
-LICENSE="GPL-2 MIT"
-SLOT="0/${PV}"
-RESTRICT="test" # Tests require some git modules.
-
-RDEPEND="
- dev-libs/boost:=
- sys-libs/zlib:=
-"
-DEPEND="
- ${RDEPEND}
-"
-
-src_configure() {
- local -a mycmakeargs=(
- -DNOBREAKID=ON
- -DENABLE_TESTING=OFF
- )
- cmake_src_configure
-}
diff --git a/sci-mathematics/cryptominisat/files/cryptominisat-5.11.21-setup-py.patch b/sci-mathematics/cryptominisat/files/cryptominisat-5.11.21-setup-py.patch
new file mode 100644
index 000000000000..6b13b3e05b26
--- /dev/null
+++ b/sci-mathematics/cryptominisat/files/cryptominisat-5.11.21-setup-py.patch
@@ -0,0 +1,18 @@
+--- a/setup.py
++++ b/setup.py
+@@ -27,13 +27,13 @@ import sys
+ import os
+ from setuptools import Extension, setup
+ import sysconfig
+-import toml
++import tomli
+ import pathlib
+ from sys import platform
+
+ def _parse_toml(pyproject_path):
+ pyproject_text = pyproject_path.read_text()
+- pyproject_data = toml.loads(pyproject_text)
++ pyproject_data = tomli.loads(pyproject_text)
+ return pyproject_data['project']['version']
+
+ picosatlib = ('picosatlib', {
diff --git a/sci-mathematics/cryptominisat/files/cryptominisat-5.11.21-unistd.patch b/sci-mathematics/cryptominisat/files/cryptominisat-5.11.21-unistd.patch
new file mode 100644
index 000000000000..c64228a17862
--- /dev/null
+++ b/sci-mathematics/cryptominisat/files/cryptominisat-5.11.21-unistd.patch
@@ -0,0 +1,12 @@
+index f0a9e33..85286be 100644
+--- a/src/picosat/picosat.c
++++ b/src/picosat/picosat.c
+@@ -8148,7 +8148,7 @@ picosat_stats (PS * ps)
+ #else
+ #include <sys/time.h>
+ #include <sys/resource.h>
+-#include <sys/unistd.h>
++#include <unistd.h>
+ #endif
+
+ double
diff --git a/sci-mathematics/cubicle/Manifest b/sci-mathematics/cubicle/Manifest
index 33678f503d2e..ce1ff349142d 100644
--- a/sci-mathematics/cubicle/Manifest
+++ b/sci-mathematics/cubicle/Manifest
@@ -1,4 +1,4 @@
AUX 50cubicle-gentoo.el 185 BLAKE2B 76ef002c52bd0d6ef8ce5474e5cf9032cffe861d273a88176c3a8eae17f6176896bc1a4cb099d1f793b63f1ad3e0b7fb6d4b066317f160a0a4fd586e0a61ec64 SHA512 c9a93fec3f1f12cbe326940a79dfe950b56c82e7bdd24a6bf5923d1c4fe6245b8fec4c399f3e60c16cc4757f290f9cbeab606a20b5844f4228a4f29b0ed669f4
DIST cubicle-1.2.0.tar.gz 866004 BLAKE2B 4fd944acb394165396344b7a9d4b29ffcb7b61571e1ac9cb90aacf1a5ddb0521d399f301a51af6b37461e5a47244fb095ad69ab0041440c240257522ba4de4a7 SHA512 e2815b4b7b4feda30df91eabebae741d14a2c822f5efea972676bc7a941454ea368e9dc003f754c2edb1c6b1db5a5c86a354b3612c2d47a9095f8fc348dfb692
-EBUILD cubicle-1.2.0-r2.ebuild 1322 BLAKE2B 7136d0adc33943f7ea5f5f5579988fe853b6060e2f495352aabc589ee51a01ed64cb7b7b70ebb153361462b5d98928e068967e83e2b3844f10e853d0dabe407c SHA512 a4947250719ef0e0428b4862ca2b47b8f50e6940988efd0c866885e83207ccb1d969c34a99dc5160917ed41fe61ff5f777e8ad9effad5c7ff90d546c5a9d7829
+EBUILD cubicle-1.2.0-r2.ebuild 1416 BLAKE2B 4d7d97bbbaf689efb9d1225208fe0d9aff446a74e4c71b5cbadd46c27f412f9a3ed8d66321cd425662d0512130bfa50fa3ca7fdcaad6c2aca785d8c13dda84c7 SHA512 519802055d8ff022ddd2e928ea365022eeebc13c676ac576f7b7a9c8f9204f4ed26df550cf200debddc4fc56ad0a7f6ac64d499de2ae27abbfa2cb8a5c9c0f66
MISC metadata.xml 1503 BLAKE2B d67f3f6524234cf3be4b0118aced6f4e3424a25754d91b13eb5c8250aedb6a57a6f7faabe6539875953874f48b2d8349fe3adfe431b72675fdd6723cb9ff3c52 SHA512 96540a56c6ef839924fa93f49e4ffdeb8a5eb3b83ef43bd62ccbed72dfa522f1b0acad4132650f67387915af5be8fe432fd6d01f8c9a76271c53f7f3a33f476d
diff --git a/sci-mathematics/cubicle/cubicle-1.2.0-r2.ebuild b/sci-mathematics/cubicle/cubicle-1.2.0-r2.ebuild
index 756eb6aab056..f7887394c08b 100644
--- a/sci-mathematics/cubicle/cubicle-1.2.0-r2.ebuild
+++ b/sci-mathematics/cubicle/cubicle-1.2.0-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -51,6 +51,10 @@ src_compile() {
}
src_install() {
+ # OCaml generates textrels on 32-bit arches
+ if use x86 ; then
+ export QA_TEXTRELS='.*'
+ fi
default
doman doc/${PN}.1
diff --git a/sci-mathematics/dunshire/Manifest b/sci-mathematics/dunshire/Manifest
index d3f7ef8147d7..c47b31611654 100644
--- a/sci-mathematics/dunshire/Manifest
+++ b/sci-mathematics/dunshire/Manifest
@@ -1,3 +1,3 @@
DIST dunshire-0.1.3.tar.gz 52450 BLAKE2B 047f732daa7f2a53b8d24ea0aafdad3234aa5ee151a66f776ba22746d58b4b91a5047ba615978d4017e56345ac608fd1f537adef06f38b5a429276e284a88d02 SHA512 227d142347ad7b7eb5b283aaa94f457b20b686f40aa86b2a74057eed00d3d90e87fb4a0f32071db3bd73412489794a0b398a557f8194931a6e7d51ff442aa2b0
-EBUILD dunshire-0.1.3.ebuild 629 BLAKE2B b8a5e9713be85e33598b6a46ebf0cf7218a6e78cc039c0ac385afa87147ee1663f3f66e7aba39f43e6f72f091e87b80591dcc370edabbebfe7166f0c856e42c4 SHA512 ac743d92df8d03b7a25b4585e6fdb7fcc97ead47895947c4c6e2ea6115d6ae7f2a43a92b230eb085f394ddc1bc08ce427609561d84d6850b56046800410fb449
-MISC metadata.xml 329 BLAKE2B e9cf64a4fd7f360e350a97ca0a9efe8e64ce485f2b025e456271c8e3d8bbf3f6950750a157eaa66e0639a800285351f84abd07789697acfbaf5422b9cb725ec6 SHA512 f8f757c9f662dfba3c0717720a7d2fe6e2c2bea517d6811cf9785d39cef92714c0ddddf3c56eecb6be37fc97fcd6ebdeba0412108b41ffc0c9cdde34c3e8a74a
+EBUILD dunshire-0.1.3-r1.ebuild 719 BLAKE2B 679250a87250bc36635f7df83d877af9d5726bed7b310fcc40aaf4e08ba236f5d76bb04451da248aaef1c79472e13d381a8c392e75a3a04dee254b2c6d69edcb SHA512 e85fb5dcd889e617269d54629a46c7f814e4c2e42c1986828a0a0af4cd520031159ba77c176589df30879b63aa9f83185e24c1ecfd9b40a4d6d1a8c67edce81c
+MISC metadata.xml 253 BLAKE2B 63a51cab94d3e978d2c7dd1d124efd1c9e11c5ae277806a1f12359b2db370c37382fc1947e85940f6b0a439e3d49eecdd8d9bfb96587352d6a83803d2fd40bb6 SHA512 8da7cfe0cd26a54c106f2c029bbde93abf77576835e4fa66bc538dcf12fd41160f7cc2dd843a221962bb9a6f965311c076a1557caa38d503f371569b84841e33
diff --git a/sci-mathematics/dunshire/dunshire-0.1.3.ebuild b/sci-mathematics/dunshire/dunshire-0.1.3-r1.ebuild
index ac63ace2d98f..348bf1942132 100644
--- a/sci-mathematics/dunshire/dunshire-0.1.3.ebuild
+++ b/sci-mathematics/dunshire/dunshire-0.1.3-r1.ebuild
@@ -5,22 +5,32 @@ EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_USE_PEP517=setuptools
+
inherit distutils-r1
DESCRIPTION="Python library to solve linear games over symmetric cones"
HOMEPAGE="https://michael.orlitzky.com/code/dunshire/"
SRC_URI="https://michael.orlitzky.com/code/releases/${P}.tar.gz"
+
LICENSE="AGPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="doc"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-python/cvxopt[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ ${RDEPEND}
+ )
+"
-RDEPEND="dev-python/cvxopt[${PYTHON_USEDEP}]"
DOCS=( doc/README.rst )
distutils_enable_sphinx doc/source
-distutils_enable_tests setup.py
python_test() {
- esetup.py test
+ PYTHONPATH="." "${EPYTHON}" test/__main__.py --verbose || die
}
diff --git a/sci-mathematics/dunshire/metadata.xml b/sci-mathematics/dunshire/metadata.xml
index 24ac776863fa..f2908ee10b59 100644
--- a/sci-mathematics/dunshire/metadata.xml
+++ b/sci-mathematics/dunshire/metadata.xml
@@ -5,8 +5,4 @@
<email>mjo@gentoo.org</email>
<name>Michael Orlitzky</name>
</maintainer>
-
- <upstream>
- <remote-id type="pypi">dunshire</remote-id>
- </upstream>
</pkgmetadata>
diff --git a/sci-mathematics/easycrypt/Manifest b/sci-mathematics/easycrypt/Manifest
index 4b5f47a0c95c..279ad2a412a8 100644
--- a/sci-mathematics/easycrypt/Manifest
+++ b/sci-mathematics/easycrypt/Manifest
@@ -1,5 +1,3 @@
-DIST easycrypt-2023.09.tar.gz 1317177 BLAKE2B 98e1c13b530f1cac6f3e166a01627cfb9cd0f1660f51187dac66397caad9cd71fe6b8923ac9757015a50ee479d3427d4906dcdf3bd36012559087657904489b8 SHA512 06fbd3993db951b620c946679566910c8f32035da6d0e8991c794edbc95a31acf3c60c5d3e909a60535ba0252dadf86ccfba2d1998a3929c4653e159d9a4dfac
DIST easycrypt-2024.01.tar.gz 1349695 BLAKE2B e9c43d43f2c07d75dcb5ee8edf46d1fcfc2a47497fd76c87ef13d52087144acbf3b80ae809c70164eebe046cfb5d585678811163a47cf30c3c55828c3278a4fc SHA512 331612b05f6c47b302f1ceb1d741f47476354bf2d4960c2f55e6bddf3187fea3d40aa687c278fc727bf8994fee95e7af444f109be9a0c9eb9ab455d5fcc7b97d
-EBUILD easycrypt-2023.09.ebuild 1006 BLAKE2B 115202937c5ee8094e83427e9cf4d9ca7f82f911cc119974abeff5c2d19b70cca1c0fe3a5c271b65e76c764a154685c923e3a1e62ad4c282753c92ede5a94375 SHA512 09994233f3eff6f1ff3d5c0a958d030ca737d1a6b9c795ad701ef898288c9f9846be11c42af6fe3fd6edb9809132fc8b3d543fd2371d36f03c59b02bfefe6ff8
-EBUILD easycrypt-2024.01.ebuild 971 BLAKE2B be516b79d48dce5a2158d24787ea170305ea9aded7989a5381cf602332f63c46e8aa58d5a8018add41e689987a7ce8d9b824d052acfb9f6f489de24932205b16 SHA512 d382533c7539e30c2948efdbdec5dd97ab833fc755f9d1be170a87353730e3118cb10dd71d9120c36aff6f64dc259ab5b2efc78344beb6b0b1458e66d86f965a
+EBUILD easycrypt-2024.01-r1.ebuild 990 BLAKE2B a7545b457ce9d8127c05e543dbc92931ffcef034eb590252eb7a0e24552b2067d4fa4daf498e02c2281e6aceec50f5eff647444873f376c476a04ecaa550657f SHA512 7ba58288c3f6229ec5a3c904a123017c516364696a9ffca2b88b1c00d4e8460999e7b53f6502ee523ae7c14cfc6aae1c99de61a921dfc5bcdc93b02480798cf2
MISC metadata.xml 799 BLAKE2B 967a758171a2fe87b648a29bf2663beaae7834119e55a7619c98518c96cfe459e59fe5dc72a9faea071c0b488dc8144f1c0e43677ac63646f1ba12cf831f4a88 SHA512 411ff1acad400c3e70e546fd59b20db13b0f1db121aca9f1af23da708cd82340114bc966f64cfb5a35e84967c1131c660ab260f867639932c67edf47c859c4ca
diff --git a/sci-mathematics/easycrypt/easycrypt-2023.09.ebuild b/sci-mathematics/easycrypt/easycrypt-2023.09.ebuild
deleted file mode 100644
index 938be55dac7e..000000000000
--- a/sci-mathematics/easycrypt/easycrypt-2023.09.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit dune
-
-DESCRIPTION="Computer-Aided Cryptographic Proofs"
-HOMEPAGE="https://github.com/EasyCrypt/easycrypt/"
-
-if [[ "${PV}" == *9999* ]] ; then
- inherit git-r3
-
- EGIT_REPO_URI="https://github.com/EasyCrypt/${PN}.git"
-else
- SRC_URI="https://github.com/EasyCrypt/${PN}/archive/r${PV}.tar.gz
- -> ${P}.tar.gz"
- S="${WORKDIR}/${PN}-r${PV}"
-
- KEYWORDS="~amd64"
-fi
-
-LICENSE="MIT"
-SLOT="0/${PV}"
-IUSE="+ocamlopt"
-
-RDEPEND="
- >=dev-lang/ocaml-4.08.0:=[ocamlopt?]
- >=sci-mathematics/why3-1.6:= <sci-mathematics/why3-1.7:=
-
- dev-ml/batteries:=
- dev-ml/camlp-streams:=
- dev-ml/camlzip:=
- dev-ml/dune-build-info:=
- dev-ml/dune-site:=
- dev-ml/ocaml-inifiles:=
- dev-ml/pcre-ocaml:=
- dev-ml/yojson:=
- dev-ml/zarith:=
-"
-DEPEND="
- ${RDEPEND}
-"
-
-src_prepare() {
- local theories="[\"$(ocamlc -where)/easycrypt/theories\"]"
- sed -i "s|EcRelocate\.Sites\.theories|${theories}|g" src/ec.ml || die
-
- default
-}
diff --git a/sci-mathematics/easycrypt/easycrypt-2024.01.ebuild b/sci-mathematics/easycrypt/easycrypt-2024.01-r1.ebuild
index 9be3ec43e207..80d57075fb07 100644
--- a/sci-mathematics/easycrypt/easycrypt-2024.01.ebuild
+++ b/sci-mathematics/easycrypt/easycrypt-2024.01-r1.ebuild
@@ -25,6 +25,7 @@ SLOT="0/${PV}"
IUSE="+ocamlopt"
RDEPEND="
+ <dev-ml/num-1.5:=
>=dev-lang/ocaml-4.08.0:=[ocamlopt?]
dev-ml/batteries:=
dev-ml/camlp-streams:=
diff --git a/sci-mathematics/eclib/Manifest b/sci-mathematics/eclib/Manifest
index f05cd1bd53cf..6a4e34a9ab55 100644
--- a/sci-mathematics/eclib/Manifest
+++ b/sci-mathematics/eclib/Manifest
@@ -1,3 +1,5 @@
DIST eclib-20231212.tar.bz2 926463 BLAKE2B 8105ac4014f9e44545d1d1e1cd5e18e36e467131b57a04a02d7e4f2390b0b0f78d0bac60dfbc0403a6681816a64a6e81c8d6a198f83bef991f697c2756a6d048 SHA512 692aa6bc2a52cd9496700990172b5a807abbd3f8bf8e931de14c48a401d1d383f95fa5def68bbf9a1aee08dfabac608604c0fd6f8bb49b813e6c6c909a2f27a7
+DIST eclib-20240408.tar.bz2 918771 BLAKE2B e9f4a37973b40e73a111330800fcfebae91251613902b35ff29a45bdf3e7cd8cc49b061af121eff6aaa657d28b24b20ec00b77bad468504e545b3810852a50d2 SHA512 d93c724fa5816ce45a661d50000309e148fdbd0e287fbdbbf30bd6b3c6a7225846d90f11bc4d86c4b96111cbe8429b174e7d81ea0be1eef1a8acaa43287c09cf
EBUILD eclib-20231212.ebuild 1392 BLAKE2B 6cd0aa487c046e92e0c6e09620d5e010fcff89ce747949c8a5ba6e33aed4c00bca39188195e31ec768312bd1e1f7ca3ccd75f87db4f038f6ee557a4c526dab71 SHA512 d902ea983a3acaab8f5ce4ba59d72de7e24016ac7ca8aab38bc64efc97867cfb40ed4158919c3212bf66091a0efe47c92ab4950831f37d83642da835d793a673
+EBUILD eclib-20240408.ebuild 1400 BLAKE2B 974a16648861d3520bfa5aefe3aa6276c8d9de701b2ba4ae3d7cc6ce16709ea590928120cabfac18906fd0fea46d4da5474cef0c5d85d77636cfadfc01d5a9d0 SHA512 1f4135e0951eb8a83decd9b9f4103811c8f82d5b4b047dbb90122e3eb195b4a8942c4e9b40802f1d6037f8e8e64d152658185135a49969a06d53eed5907449e4
MISC metadata.xml 1089 BLAKE2B d10f9af5634478f0f13595abd10d9eefc437c27955cd3f504165beb4219e55c3997f16271148c1c2fbb5c9ae71e08665000836658bb954b83db06aeffa2b4098 SHA512 7111f3231464624d356611372934d0604fdd7a05c3531342a372979292a068dfa2edf49c4de5840cbf07b6f4819c22b8d87d54d7cacefb28ce0f53576d4620fd
diff --git a/sci-mathematics/eclib/eclib-20240408.ebuild b/sci-mathematics/eclib/eclib-20240408.ebuild
new file mode 100644
index 000000000000..a8b4b73b14eb
--- /dev/null
+++ b/sci-mathematics/eclib/eclib-20240408.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Programs for elliptic curves defined over the rational numbers"
+HOMEPAGE="https://github.com/JohnCremona/eclib"
+SRC_URI="https://github.com/JohnCremona/${PN}/releases/download/v${PV}/${P}.tar.bz2"
+
+# COPYING is GPL-2 but the file headers say "or ... any later version"
+# LGPL-2.1+ is for bundled GetOpt.cc
+LICENSE="GPL-2+ LGPL-2.1+"
+
+# Subslot is from the soname, (LT_CURRENT - LT_AGE) in configure.ac.
+# (But for now, see src_prepare below.)
+SLOT="0/12"
+KEYWORDS="~amd64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+IUSE="boost flint minimal test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="sci-mathematics/pari:=
+ dev-libs/ntl:=
+ boost? ( dev-libs/boost:= )
+ flint? ( sci-mathematics/flint:= )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ default
+ # LT_CURRENT was bumped to 12 in the 20230424 release but LT_AGE was
+ # left at two despite an interface being removed. Subsequent releases
+ # have propagated the off-by-two error. This isn't strictly necessary
+ # but it's nice to have the soname match the subslot.
+ sed -e 's/LT_AGE=3/LT_AGE=1/' -i configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(usex minimal --disable-allprogs "" "" "") \
+ $(use_with boost) \
+ $(use_with flint)
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -delete || die
+}
diff --git a/sci-mathematics/flint/Manifest b/sci-mathematics/flint/Manifest
index bab60e95301a..bb704a69a211 100644
--- a/sci-mathematics/flint/Manifest
+++ b/sci-mathematics/flint/Manifest
@@ -1,10 +1,5 @@
-AUX flint-2.9.0-remove-hardcoded-CFLAGS.patch 2131 BLAKE2B f52fbcf321fd0f0beb302480c220b1f83e382ffe893e9b22a5eed839d02c2436ba101575c272cea0fbcbdd42110d5b9dde7cf6516403cb6dde1b0fa081dae63f SHA512 fa5c057cf664cd3ba83d3ec6b31a96c8a8e4a971a8f07b11a40150e22c1e55c7ad2d8b480f119213f867e502417c48741bb438b1724393b42da27d3577116fb5
AUX flint-3.0.1-find-cblas.patch 1755 BLAKE2B bdf73d282a98f11126271d1afb5dd27daa2242fbd4923558a720753db85fcc71474ab559822a3549d60c555ab72c8273350c9df3fea2ba4d134bd7a45ec4c089 SHA512 1dc9342031472e59a5ba68540f070dc410134be5d52d7545a780c5b2867fad3c84410c5719ada517a0f2780f384c02487d128e0264bdaa54e8cdf34d2a5b71df
-AUX flint-3.1.0-fix-pc-install.patch 1035 BLAKE2B 30f80d5a75353344c1dd2216395263adf13ca00545b019e1fe4f00f4cb2f92adab970092c2f237c8b9b15e60e0943b5b46d36f719c9a87f0039e50bd9db65e58 SHA512 859aaf547599fa7103de12020f569d13e7545cdcff09a3dcbbe05bd239daaa4d4f58780a4247910e115478117af8a7e266671104dec36d87feddce93255d9650
-DIST flint-2.9.0.tar.gz 5283894 BLAKE2B a790437ee142d8acb5cec1e6c7d21812f8d83f5d30d1e8c07e799713e96791d87792f25fbd4ce2d0d68f6a8ee2f0cde2b8d9f8db8ab26922a48485e0e90394aa SHA512 4494cba6a4e215e817d7c74ef6834c4e05a832488f4808bbd7bea8b02a4a35d47ef3c63a4f213230c712b32842f5588c503fc1cf23e5e2ddc4a4a5a1627a02ba
-DIST flint-3.0.1.tar.gz 7624944 BLAKE2B 0d94252075945f39af3dd2e49803cbe16aa65b108964dfc0c12bdfd9188748944c1e839401e17b974f8f6f8832e4da84d62a63f20b63cfff0ff5c2736bfd2d47 SHA512 4b5b432b962135cd708a0ce4242343f3226f0fdf73c3f541728ed4540e7ef6cb7812a48b6b46e65a8fcc1f5cae93d8bb59838d24728024cd9aa0f7b8e5c6f98f
-DIST flint-3.1.0.tar.gz 7585407 BLAKE2B 697be5bd88e7793eb160d5f0e2110a7b8371ef8d3ca82b576c4cc755983a660a884d35d3cbb442288caa074b7f41699f4c6bc3c244272d9e9f5755d8d209004d SHA512 1d33bb35853f4bdca047899ebb4ac9873748c6d57ad3b6aded32219261e95713fb26b394d8c86f6183b9f44db58697def07e6c565ac789461d5ccc4dca3e9ba7
-EBUILD flint-2.9.0.ebuild 1726 BLAKE2B dd2ef05aacb1642cc35807306af41237bb362662a8b7b50d5814f42212125d8a83aa716c7699d554e66e41a298bf5470b454d6e67ae9dd7fae6d8bb6cd503e82 SHA512 d40e144f5e2efeb72fe39b7c9948517ab6b59588a184e3b449932c914d8f85ba5db0cd2b1f4a56925288877705956b0ff2c175327dd24f385a12014e577e5506
-EBUILD flint-3.0.1.ebuild 1983 BLAKE2B bba189fe6f49d2991abc592b99cf725add9abb69f1d683432aa1954e46293afe3fc0b5a8afa7e77acb09455598c91388e29cde07dc845bd2bd66fc98ef9734d8 SHA512 0e68cb71137a24a696f49b21f1523d694af56fda47b9d1343aca9d9a58f55196a304bbb236125e7313429311e7b4ba36a88d365d55f1ac7ff8840e4da4d9ac68
-EBUILD flint-3.1.0.ebuild 2025 BLAKE2B 5e729f62cbcdfedb560dc110ed5f0a41007cedf72258571b5683c5c6ff5150af5fc3b5f125f92c5ed0da4d7386ca1011fd058545e4e14a766af1fe716215a0b5 SHA512 8dd2aefe961f8d2ffd541ef6bbb5a68971db2cf32ed4690dcc01f7a63141b72c8a5cb810f509124a13ecc75ca0338b55970d8ac6b103b6437f1d60131dcd6229
+AUX flint-3.1.3_p1-c99-I.patch 14288 BLAKE2B b0c030835fa6f239367fd169e428c09551893f4b7a7d525344d33ee8c9756f6652b570543af5bd0ffccc292753bde9dad4cbe933aa71187660fe96852f65fea5 SHA512 7698f3003cab0909a7a42d8c6701a3a4837325aa595ab171781faef482850b1c013dcf9f11e089fe860de7fa7aad0b9f62830b3f41a73343fb0663135f5067e3
+DIST flint-3.1.3_p1.tar.gz 7588734 BLAKE2B 87acf8778e21e37c01e12b198ff81e62ab113df3e0e9c6155ff7dd505828f79d5c49d85093e261ea96397e906350caa03477e3ecbdd1fc09d6ae5c984397a2be SHA512 1b16ff2fb9cb2ac4b75513278b8c14683e8d83db39985631df14d6ea74bee4d6ea818a200321d5f0de6f1af89898f7a99dc7088f712f4c6db1a2546199aefba7
+EBUILD flint-3.1.3_p1.ebuild 2091 BLAKE2B 58aef5504347696f5114385657e66f7e784f4e46e7cd39288bbc815f863978d9399c7009a9a30e67379d544d94bbe75091450f057e98a7fd5198f1367828cc74 SHA512 4f7c3760ef481d5e4f0bbda9d7b29c2ab8d0b098cff7191d23fd992d14dc92980a7c4b1143b2d638950ac1ab6681649a3cce091e1075ec47deac277dde39f0de
MISC metadata.xml 640 BLAKE2B b95d6f493564025e43604bffa340fffd88fcedf29c282fcc3c18e08ac089cdf1e10837787af664dd250a77a62237bf3665ff0a3045ca52680dd67aa0b39eeba7 SHA512 a9a64076e7f0df29e6a05a9d349c530a4ee4285b6a444425681eddf6ae1e8b41f610fda0bd7cc86b5177b36f34bc3072b67c7edac2cc8c0709a032b000576a14
diff --git a/sci-mathematics/flint/files/flint-2.9.0-remove-hardcoded-CFLAGS.patch b/sci-mathematics/flint/files/flint-2.9.0-remove-hardcoded-CFLAGS.patch
deleted file mode 100644
index b057ea207bbd..000000000000
--- a/sci-mathematics/flint/files/flint-2.9.0-remove-hardcoded-CFLAGS.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 9784633c4..641ab9ed4 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -1,6 +1,5 @@
- cmake_minimum_required(VERSION 3.9)
-
--include(CheckIPOSupported)
- include(CheckIncludeFiles)
- include(CheckFunctionExists)
- include(CheckPrototypeDefinition)
-@@ -126,13 +125,6 @@ with open(join('${CMAKE_SOURCE_DIR}','qadic', 'CPimport.txt')) as fin:
- )
- configure_file(${CMAKE_BINARY_DIR}/CPimport.h.in ${CMAKE_BINARY_DIR}/CPimport.h COPYONLY)
-
--# Setup for flint-config.h
--check_c_compiler_flag("-mpopcnt" HAS_FLAG_MPOPCNT)
--check_c_compiler_flag("-funroll-loops" HAS_FLAG_UNROLL_LOOPS)
--
--if(HAS_FLAG_MPOPCNT)
-- set(CMAKE_REQUIRED_FLAGS "-mpopcnt")
--endif()
- # Testing __builtin_popcountl...
- check_c_source_runs([[int main(int argc, char ** argv) {
- #if defined(_WIN64)
-@@ -141,7 +133,6 @@ check_c_source_runs([[int main(int argc, char ** argv) {
- return __builtin_popcountl(argc) == 100;
- #endif
- }]] FLINT_USES_POPCNT)
--unset(CMAKE_REQUIRED_FLAGS)
-
- # fenv configuration
- check_c_source_compiles([[#include <fenv.h>
-@@ -250,13 +241,6 @@ if(BUILD_SHARED_LIBS AND WIN32)
- target_compile_definitions(flint PUBLIC "MSC_USE_DLL")
- endif()
-
--if (HAS_FLAG_MPOPCNT)
-- target_compile_options(flint PUBLIC "-mpopcnt")
--endif()
--if (HAS_FLAG_UNROLL_LOOPS)
-- target_compile_options(flint PUBLIC "-funroll-loops")
--endif()
--
- # Versioning
-
- set_target_properties(flint PROPERTIES
-@@ -279,21 +263,6 @@ elseif (WIN32)
- set_target_properties(flint PROPERTIES RUNTIME_OUTPUT_NAME "flint-${FLINT_MAJOR}")
- endif()
-
--if(NOT DEFINED IPO_SUPPORTED)
-- message(STATUS "Checking for IPO")
-- check_ipo_supported(RESULT ipo_supported LANGUAGES C)
-- if(ipo_supported)
-- message(STATUS "Checking for IPO - found")
-- else()
-- message(STATUS "Checking for IPO - not found")
-- endif()
-- set(IPO_SUPPORTED ${ipo_supported} CACHE INTERNAL "Introprocedural Optimization" FORCE)
--endif()
--
--if(IPO_SUPPORTED)
-- set_target_properties(flint PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
--endif()
--
- if(NOT MSVC)
- target_link_libraries(flint PUBLIC m)
- endif()
diff --git a/sci-mathematics/flint/files/flint-3.1.0-fix-pc-install.patch b/sci-mathematics/flint/files/flint-3.1.0-fix-pc-install.patch
deleted file mode 100644
index 5e0145cb95e7..000000000000
--- a/sci-mathematics/flint/files/flint-3.1.0-fix-pc-install.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From f4e0dfda90f6574048578f112bea1013d54f0987 Mon Sep 17 00:00:00 2001
-From: Michael Orlitzky <michael@orlitzky.com>
-Date: Sun, 10 Mar 2024 21:48:51 -0400
-Subject: [PATCH 1/1] CMakeLists.txt: install the pkg-config file to the
- configured libdir
-
-Currently it installs to lib/pkgconfig, which can be incorrect on
-systems where (for example) the normal libdir is lib64 and "lib" is
-reserved for 32-bit libraries.
----
- CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 30935cef4..d8dfee38d 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -537,7 +537,7 @@ set(PACKAGE_NAME ${PROJECT_NAME})
- set(PACKAGE_VERSION ${PROJECT_VERSION})
- configure_file(flint.pc.in flint.pc @ONLY)
-
--install(FILES ${CMAKE_CURRENT_BINARY_DIR}/flint.pc DESTINATION lib/pkgconfig)
-+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/flint.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
-
- if(BUILD_TESTING)
- set(FLINT_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src) # To get src/test/main
---
-2.43.0
-
diff --git a/sci-mathematics/flint/files/flint-3.1.3_p1-c99-I.patch b/sci-mathematics/flint/files/flint-3.1.3_p1-c99-I.patch
new file mode 100644
index 000000000000..1ebe43d6243b
--- /dev/null
+++ b/sci-mathematics/flint/files/flint-3.1.3_p1-c99-I.patch
@@ -0,0 +1,320 @@
+From 1b93e73d00881be12e04b7f13e070214a3c9e1cc Mon Sep 17 00:00:00 2001
+From: Dima Pasechnik <dima@pasechnik.info>
+Date: Wed, 19 Jun 2024 22:16:34 +0100
+Subject: [PATCH] ensure C99 compliance in headers, as 'I' is reserved
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Note that the following code
+---- cut here: save as t.c
+---- cut here
+
+fails to compile with a suffciently new compiler, e.g. clang 16 or gcc 14.
+
+$ gcc -c t.c
+In file included from t.c:1:
+/usr/include/flint/mpoly.h:1319:43: error: expected ‘)’ before ‘__extension__’
+ 1319 | void mpoly_gcd_info_init(mpoly_gcd_info_t I, slong nvars);
+ | ^
+In file included from /usr/include/flint/fmpz_types.h:15,
+ from /usr/include/flint/fmpz_mod_types.h:15,
+ from /usr/include/flint/mpoly_types.h:15,
+ from /usr/include/flint/mpoly.h:23,
+ from t.c:2:
+/usr/include/flint/mpoly.h:1319:46: error: expected ‘;’, ‘,’ or ‘)’ before ‘mp_limb_signed_t’
+ 1319 | void mpoly_gcd_info_init(mpoly_gcd_info_t I, slong nvars);
+
+...
+---
+ src/fft_small.h | 6 +++---
+ src/fmpz_mod_mpoly_factor.h | 8 ++++----
+ src/fmpz_mpoly.h | 2 +-
+ src/fmpz_mpoly_factor.h | 18 +++++++++---------
+ src/fq_nmod_mpoly_factor.h | 6 +++---
+ src/fq_zech_mpoly_factor.h | 6 +++---
+ src/mpoly.h | 18 +++++++++---------
+ src/nmod_mpoly.h | 4 ++--
+ src/nmod_mpoly_factor.h | 6 +++---
+ 9 files changed, 37 insertions(+), 37 deletions(-)
+
+diff --git a/src/fft_small.h b/src/fft_small.h
+index 3f62f2e988..b7404f196d 100644
+--- a/src/fft_small.h
++++ b/src/fft_small.h
+@@ -242,10 +242,10 @@ FLINT_INLINE double sd_fft_ctx_get_fft_index(double* d, ulong i)
+ }
+
+ /* sd_fft.c */
+-void sd_fft_trunc(const sd_fft_lctx_t Q, ulong I, ulong S, ulong k, ulong j, ulong itrunc, ulong otrunc);
++void sd_fft_trunc(const sd_fft_lctx_t Q, ulong Iv, ulong S, ulong k, ulong j, ulong itrunc, ulong otrunc);
+
+ /* sd_ifft.c */
+-void sd_ifft_trunc(const sd_fft_lctx_t Q, ulong I, ulong S, ulong k, ulong j, ulong z, ulong n, int f);
++void sd_ifft_trunc(const sd_fft_lctx_t Q, ulong Iv, ulong S, ulong k, ulong j, ulong z, ulong n, int f);
+
+ /* sd_fft_ctx.c */
+ void sd_fft_ctx_clear(sd_fft_ctx_t Q);
+@@ -428,7 +428,7 @@ typedef struct {
+
+ typedef mpn_ctx_struct mpn_ctx_t[1];
+
+-void _convert_block(ulong* Xs, sd_fft_ctx_struct* Rffts, double* d, ulong dstride, ulong np, ulong I);
++void _convert_block(ulong* Xs, sd_fft_ctx_struct* Rffts, double* d, ulong dstride, ulong np, ulong Iv);
+ ulong flint_mpn_nbits(const ulong* a, ulong an);
+ int flint_mpn_cmp_ui_2exp(const ulong* a, ulong an, ulong b, ulong e);
+ unsigned char flint_mpn_add_inplace_c(ulong* z, ulong zn, ulong* a, ulong an, unsigned char cf);
+diff --git a/src/fmpz_mod_mpoly_factor.h b/src/fmpz_mod_mpoly_factor.h
+index 359fdd1e3d..460695dd23 100644
+--- a/src/fmpz_mod_mpoly_factor.h
++++ b/src/fmpz_mod_mpoly_factor.h
+@@ -1203,15 +1203,15 @@ typedef struct {
+ typedef fmpz_mod_mpoly_pfrac_struct fmpz_mod_mpoly_pfrac_t[1];
+
+
+-int fmpz_mod_mpoly_pfrac_init(fmpz_mod_mpoly_pfrac_t I,
++int fmpz_mod_mpoly_pfrac_init(fmpz_mod_mpoly_pfrac_t Iv,
+ flint_bitcnt_t bits, slong l, slong r, const fmpz_mod_mpoly_struct * betas,
+ const fmpz * alpha, const fmpz_mod_mpoly_ctx_t ctx);
+
+-void fmpz_mod_mpoly_pfrac_clear(fmpz_mod_mpoly_pfrac_t I,
++void fmpz_mod_mpoly_pfrac_clear(fmpz_mod_mpoly_pfrac_t Iv,
+ const fmpz_mod_mpoly_ctx_t ctx);
+
+ int fmpz_mod_mpoly_pfrac(slong r, fmpz_mod_mpoly_t t, const slong * deg,
+- fmpz_mod_mpoly_pfrac_t I, const fmpz_mod_mpoly_ctx_t ctx);
++ fmpz_mod_mpoly_pfrac_t Iv, const fmpz_mod_mpoly_ctx_t ctx);
+
+ int fmpz_mod_mpoly_hlift(slong m, fmpz_mod_mpoly_struct * f, slong r,
+ const fmpz * alpha, const fmpz_mod_mpoly_t A, const slong * degs,
+@@ -1290,7 +1290,7 @@ int fmpz_mod_mpolyn_gcd_brown_smprime(
+ fmpz_mod_mpolyn_t B,
+ slong var,
+ const fmpz_mod_mpoly_ctx_t ctx,
+- const mpoly_gcd_info_t I,
++ const mpoly_gcd_info_t Iv,
+ fmpz_mod_poly_polyun_mpolyn_stack_t St);
+
+ int fmpz_mod_mpolyl_gcdp_zippel(
+diff --git a/src/fmpz_mpoly.h b/src/fmpz_mpoly.h
+index b7c9677915..4be3d05c56 100644
+--- a/src/fmpz_mpoly.h
++++ b/src/fmpz_mpoly.h
+@@ -1084,7 +1084,7 @@ void fmpz_mpoly_vec_randtest_not_zero(fmpz_mpoly_vec_t vec, flint_rand_t state,
+
+ void fmpz_mpoly_spoly(fmpz_mpoly_t res, const fmpz_mpoly_t f, const fmpz_mpoly_t g, const fmpz_mpoly_ctx_t ctx);
+ void fmpz_mpoly_vec_set_primitive_unique(fmpz_mpoly_vec_t G, const fmpz_mpoly_vec_t F, const fmpz_mpoly_ctx_t ctx);
+-void fmpz_mpoly_reduction_primitive_part(fmpz_mpoly_t res, const fmpz_mpoly_t f, const fmpz_mpoly_vec_t I, const fmpz_mpoly_ctx_t ctx);
++void fmpz_mpoly_reduction_primitive_part(fmpz_mpoly_t res, const fmpz_mpoly_t f, const fmpz_mpoly_vec_t Iv, const fmpz_mpoly_ctx_t ctx);
+ int fmpz_mpoly_vec_is_groebner(const fmpz_mpoly_vec_t G, const fmpz_mpoly_vec_t F, const fmpz_mpoly_ctx_t ctx);
+ void fmpz_mpoly_buchberger_naive(fmpz_mpoly_vec_t G, const fmpz_mpoly_vec_t F, const fmpz_mpoly_ctx_t ctx);
+ int fmpz_mpoly_buchberger_naive_with_limits(fmpz_mpoly_vec_t G, const fmpz_mpoly_vec_t F,
+diff --git a/src/fmpz_mpoly_factor.h b/src/fmpz_mpoly_factor.h
+index 0da7c1052b..a04ef8021e 100644
+--- a/src/fmpz_mpoly_factor.h
++++ b/src/fmpz_mpoly_factor.h
+@@ -298,11 +298,11 @@ void fmpz_mpoly_from_mpolyl_perm_inflate(fmpz_mpoly_t A,
+
+ int fmpz_mpolyl_gcd_brown(fmpz_mpoly_t G,
+ fmpz_mpoly_t Abar, fmpz_mpoly_t Bbar, fmpz_mpoly_t A, fmpz_mpoly_t B,
+- const fmpz_mpoly_ctx_t ctx, const mpoly_gcd_info_t I);
++ const fmpz_mpoly_ctx_t ctx, const mpoly_gcd_info_t Iv);
+
+ int fmpz_mpolyl_gcd_brown_threaded_pool(fmpz_mpoly_t G,
+ fmpz_mpoly_t Abar, fmpz_mpoly_t Bbar, fmpz_mpoly_t A, fmpz_mpoly_t B,
+- const fmpz_mpoly_ctx_t ctx, const mpoly_gcd_info_t I,
++ const fmpz_mpoly_ctx_t ctx, const mpoly_gcd_info_t Iv,
+ const thread_pool_handle * handles, slong num_handles);
+
+ int fmpz_mpolyl_gcd_zippel(fmpz_mpoly_t G, fmpz_mpoly_t Abar,
+@@ -340,15 +340,15 @@ typedef struct {
+
+ typedef fmpz_poly_pfrac_struct fmpz_poly_pfrac_t[1];
+
+-void fmpz_poly_pfrac_init(fmpz_poly_pfrac_t I);
++void fmpz_poly_pfrac_init(fmpz_poly_pfrac_t Iv);
+
+-void fmpz_poly_pfrac_clear(fmpz_poly_pfrac_t I);
++void fmpz_poly_pfrac_clear(fmpz_poly_pfrac_t Iv);
+
+-int fmpz_poly_pfrac_precompute(fmpz_poly_pfrac_t I,
++int fmpz_poly_pfrac_precompute(fmpz_poly_pfrac_t Iv,
+ const fmpz_poly_struct * b, slong r);
+
+ int fmpz_poly_pfrac_precomp(fmpz_poly_struct * c,
+- const fmpz_poly_t A, fmpz_poly_pfrac_t I);
++ const fmpz_poly_t A, fmpz_poly_pfrac_t Iv);
+
+ typedef struct {
+ flint_bitcnt_t bits;
+@@ -372,15 +372,15 @@ typedef struct {
+
+ typedef fmpz_mpoly_pfrac_struct fmpz_mpoly_pfrac_t[1];
+
+-int fmpz_mpoly_pfrac_init(fmpz_mpoly_pfrac_t I, flint_bitcnt_t bits,
++int fmpz_mpoly_pfrac_init(fmpz_mpoly_pfrac_t Iv, flint_bitcnt_t bits,
+ slong r, slong w, const fmpz_mpoly_struct * betas,
+ const fmpz * alpha, const fmpz_mpoly_ctx_t ctx);
+
+-void fmpz_mpoly_pfrac_clear(fmpz_mpoly_pfrac_t I,
++void fmpz_mpoly_pfrac_clear(fmpz_mpoly_pfrac_t Iv,
+ const fmpz_mpoly_ctx_t ctx);
+
+ int fmpz_mpoly_pfrac(slong l, fmpz_mpoly_t t, const slong * degs,
+- fmpz_mpoly_pfrac_t I, const fmpz_mpoly_ctx_t ctx);
++ fmpz_mpoly_pfrac_t Iv, const fmpz_mpoly_ctx_t ctx);
+
+ int fmpz_mpoly_hlift(slong m, fmpz_mpoly_struct * f, slong r,
+ const fmpz * alpha, const fmpz_mpoly_t A, const slong * degs,
+diff --git a/src/fq_nmod_mpoly_factor.h b/src/fq_nmod_mpoly_factor.h
+index 6289d3f1c5..29caa99aa4 100644
+--- a/src/fq_nmod_mpoly_factor.h
++++ b/src/fq_nmod_mpoly_factor.h
+@@ -427,7 +427,7 @@ typedef fq_nmod_mpoly_pfrac_struct fq_nmod_mpoly_pfrac_t[1];
+
+
+ int fq_nmod_mpoly_pfrac_init(
+- fq_nmod_mpoly_pfrac_t I,
++ fq_nmod_mpoly_pfrac_t Iv,
+ flint_bitcnt_t bits,
+ slong l, slong r,
+ const fq_nmod_mpoly_struct * betas,
+@@ -435,14 +435,14 @@ int fq_nmod_mpoly_pfrac_init(
+ const fq_nmod_mpoly_ctx_t ctx);
+
+ void fq_nmod_mpoly_pfrac_clear(
+- fq_nmod_mpoly_pfrac_t I,
++ fq_nmod_mpoly_pfrac_t Iv,
+ const fq_nmod_mpoly_ctx_t ctx);
+
+ int fq_nmod_mpoly_pfrac(
+ slong r,
+ fq_nmod_mpoly_t t,
+ const slong * deg,
+- fq_nmod_mpoly_pfrac_t I,
++ fq_nmod_mpoly_pfrac_t Iv,
+ const fq_nmod_mpoly_ctx_t ctx);
+
+ int fq_nmod_mpoly_hlift(
+diff --git a/src/fq_zech_mpoly_factor.h b/src/fq_zech_mpoly_factor.h
+index 06f31369f9..3d3c51419f 100644
+--- a/src/fq_zech_mpoly_factor.h
++++ b/src/fq_zech_mpoly_factor.h
+@@ -652,7 +652,7 @@ typedef fq_zech_mpoly_pfrac_struct fq_zech_mpoly_pfrac_t[1];
+
+
+ int fq_zech_mpoly_pfrac_init(
+- fq_zech_mpoly_pfrac_t I,
++ fq_zech_mpoly_pfrac_t Iv,
+ flint_bitcnt_t bits,
+ slong l, slong r,
+ const fq_zech_mpoly_struct * betas,
+@@ -660,14 +660,14 @@ int fq_zech_mpoly_pfrac_init(
+ const fq_zech_mpoly_ctx_t ctx);
+
+ void fq_zech_mpoly_pfrac_clear(
+- fq_zech_mpoly_pfrac_t I,
++ fq_zech_mpoly_pfrac_t Iv,
+ const fq_zech_mpoly_ctx_t ctx);
+
+ int fq_zech_mpoly_pfrac(
+ slong r,
+ fq_zech_mpoly_t t,
+ const slong * deg,
+- fq_zech_mpoly_pfrac_t I,
++ fq_zech_mpoly_pfrac_t Iv,
+ const fq_zech_mpoly_ctx_t ctx);
+
+ int fq_zech_mpoly_hlift(
+diff --git a/src/mpoly.h b/src/mpoly.h
+index b0950e3a48..fe0ccbe7c4 100644
+--- a/src/mpoly.h
++++ b/src/mpoly.h
+@@ -1363,9 +1363,9 @@ typedef struct
+
+ typedef mpoly_gcd_info_struct mpoly_gcd_info_t[1];
+
+-void mpoly_gcd_info_init(mpoly_gcd_info_t I, slong nvars);
++void mpoly_gcd_info_init(mpoly_gcd_info_t Iv, slong nvars);
+
+-void mpoly_gcd_info_clear(mpoly_gcd_info_t I);
++void mpoly_gcd_info_clear(mpoly_gcd_info_t Iv);
+
+ void mpoly_gcd_info_limits(ulong * Amax_exp, ulong * Amin_exp,
+ slong * Amax_exp_count, slong * Amin_exp_count,
+@@ -1378,25 +1378,25 @@ void mpoly_gcd_info_stride(ulong * strides,
+ const ulong * Bmax_exp, const ulong * Bmin_exp,
+ const mpoly_ctx_t mctx);
+
+-void mpoly_gcd_info_set_perm(mpoly_gcd_info_t I,
++void mpoly_gcd_info_set_perm(mpoly_gcd_info_t Iv,
+ slong Alength, slong Blength, const mpoly_ctx_t mctx);
+
+-slong mpoly_gcd_info_get_brown_upper_limit(const mpoly_gcd_info_t I,
++slong mpoly_gcd_info_get_brown_upper_limit(const mpoly_gcd_info_t Iv,
+ slong var, slong bound);
+
+-void mpoly_gcd_info_measure_hensel(mpoly_gcd_info_t I,
++void mpoly_gcd_info_measure_hensel(mpoly_gcd_info_t Iv,
+ slong Alength, slong Blength, const mpoly_ctx_t mctx);
+
+-void mpoly_gcd_info_measure_brown(mpoly_gcd_info_t I,
++void mpoly_gcd_info_measure_brown(mpoly_gcd_info_t Iv,
+ slong Alength, slong Blength, const mpoly_ctx_t mctx);
+
+-void mpoly_gcd_info_measure_bma(mpoly_gcd_info_t I,
++void mpoly_gcd_info_measure_bma(mpoly_gcd_info_t Iv,
+ slong Alength, slong Blength, const mpoly_ctx_t mctx);
+
+-void mpoly_gcd_info_measure_zippel(mpoly_gcd_info_t I,
++void mpoly_gcd_info_measure_zippel(mpoly_gcd_info_t Iv,
+ slong Alength, slong Blength, const mpoly_ctx_t mctx);
+
+-void mpoly_gcd_info_measure_zippel2(mpoly_gcd_info_t I,
++void mpoly_gcd_info_measure_zippel2(mpoly_gcd_info_t Iv,
+ slong Alength, slong Blength, const mpoly_ctx_t mctx);
+
+ int mpoly_monomial_cofactors(fmpz * Abarexps, fmpz * Bbarexps,
+diff --git a/src/nmod_mpoly.h b/src/nmod_mpoly.h
+index 2a8136e6eb..716ac9669a 100644
+--- a/src/nmod_mpoly.h
++++ b/src/nmod_mpoly.h
+@@ -1619,13 +1619,13 @@ int nmod_mpolyn_gcd_brown_smprime_bivar(
+ int nmod_mpolyn_gcd_brown_smprime(nmod_mpolyn_t G,
+ nmod_mpolyn_t Abar, nmod_mpolyn_t Bbar,
+ nmod_mpolyn_t A, nmod_mpolyn_t B, slong var,
+- const nmod_mpoly_ctx_t ctx, const mpoly_gcd_info_t I,
++ const nmod_mpoly_ctx_t ctx, const mpoly_gcd_info_t Iv,
+ nmod_poly_stack_t Sp);
+
+ int nmod_mpolyn_gcd_brown_smprime_threaded_pool(nmod_mpolyn_t G,
+ nmod_mpolyn_t Abar, nmod_mpolyn_t Bbar,
+ nmod_mpolyn_t A, nmod_mpolyn_t B, slong var,
+- const nmod_mpoly_ctx_t ctx, const mpoly_gcd_info_t I,
++ const nmod_mpoly_ctx_t ctx, const mpoly_gcd_info_t Iv,
+ const thread_pool_handle * handles, slong num_workers);
+
+ int nmod_mpolyn_gcd_brown_lgprime(nmod_mpolyn_t G,
+diff --git a/src/nmod_mpoly_factor.h b/src/nmod_mpoly_factor.h
+index a46afc860f..b16c802b9b 100644
+--- a/src/nmod_mpoly_factor.h
++++ b/src/nmod_mpoly_factor.h
+@@ -362,15 +362,15 @@ typedef struct {
+ typedef nmod_mpoly_pfrac_struct nmod_mpoly_pfrac_t[1];
+
+
+-int nmod_mpoly_pfrac_init(nmod_mpoly_pfrac_t I, flint_bitcnt_t bits,
++int nmod_mpoly_pfrac_init(nmod_mpoly_pfrac_t Iv, flint_bitcnt_t bits,
+ slong l, slong r, const nmod_mpoly_struct * betas,
+ const mp_limb_t * alpha, const nmod_mpoly_ctx_t ctx);
+
+-void nmod_mpoly_pfrac_clear(nmod_mpoly_pfrac_t I,
++void nmod_mpoly_pfrac_clear(nmod_mpoly_pfrac_t Iv,
+ const nmod_mpoly_ctx_t ctx);
+
+ int nmod_mpoly_pfrac(slong r, nmod_mpoly_t t, const slong * deg,
+- nmod_mpoly_pfrac_t I, const nmod_mpoly_ctx_t ctx);
++ nmod_mpoly_pfrac_t Iv, const nmod_mpoly_ctx_t ctx);
+
+ int nmod_mpoly_hlift(slong m, nmod_mpoly_struct * f, slong r,
+ const mp_limb_t * alpha, const nmod_mpoly_t A, const slong * degs,
diff --git a/sci-mathematics/flint/flint-2.9.0.ebuild b/sci-mathematics/flint/flint-2.9.0.ebuild
deleted file mode 100644
index 8294eb140a41..000000000000
--- a/sci-mathematics/flint/flint-2.9.0.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# ninja doesn't like "-lcblas" so using make.
-CMAKE_MAKEFILE_GENERATOR="emake"
-PYTHON_COMPAT=( python3_{9..11} )
-inherit cmake python-any-r1
-
-DESCRIPTION="Fast Library for Number Theory"
-HOMEPAGE="http://www.flintlib.org/"
-
-# flintlib.org tarballs have been broken in the past, Bill Hart suggests
-# we get them from Github (which he has control over).
-SRC_URI="https://github.com/wbhart/flint2/archive/refs/tags/v${PV}.tar.gz
- -> ${P}.tar.gz"
-
-LICENSE="LGPL-2.1+"
-
-# Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
-SLOT="0/17"
-
-KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
-IUSE="doc ntl test"
-
-RESTRICT="!test? ( test )"
-
-BDEPEND="doc? (
- dev-python/sphinx
- app-text/texlive-core
- dev-texlive/texlive-latex
- dev-texlive/texlive-latexextra
- dev-tex/latexmk
- )
- ${PYTHON_DEPS}"
-DEPEND="dev-libs/gmp:=
- dev-libs/mpfr:=
- ntl? ( dev-libs/ntl:= )
- virtual/cblas"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/flint2-${PV}"
-PATCHES=( "${FILESDIR}/${PN}-2.9.0-remove-hardcoded-CFLAGS.patch" )
-
-src_prepare() {
- # https://github.com/wbhart/flint2/issues/1140
- rm test/t-sdiv_qrnnd.c || die
- cmake_src_prepare
-}
-
-src_configure() {
- local mycmakeargs=(
- -DWITH_NTL="$(usex ntl)"
- -DBUILD_TESTING="$(usex test)"
- -DBUILD_DOCS="$(usex doc)"
- -DCBLAS_INCLUDE_DIRS="${EPREFIX}/usr/include"
- -DCBLAS_LIBRARIES="-lcblas"
- )
-
- cmake_src_configure
-
- if use doc ; then
- HTML_DOCS="${BUILD_DIR}/html/*"
- DOCS=(
- "${S}"/README
- "${S}"/AUTHORS
- "${S}"/NEWS
- "${BUILD_DIR}"/latex/Flint.pdf
- )
- fi
-}
-
-src_compile() {
- cmake_src_compile
-
- if use doc ; then
- cmake_build html
- cmake_build pdf
- fi
-}
diff --git a/sci-mathematics/flint/flint-3.0.1.ebuild b/sci-mathematics/flint/flint-3.0.1.ebuild
deleted file mode 100644
index 7f24b83f5744..000000000000
--- a/sci-mathematics/flint/flint-3.0.1.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-inherit cmake flag-o-matic python-any-r1
-
-DESCRIPTION="Fast Library for Number Theory"
-HOMEPAGE="https://www.flintlib.org/"
-
-# flintlib.org tarballs have been broken in the past, Bill Hart suggests
-# we get them from Github (which he has control over).
-SRC_URI="https://github.com/flintlib/flint/archive/refs/tags/v${PV}.tar.gz
- -> ${P}.tar.gz"
-
-LICENSE="LGPL-2.1+"
-
-# Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
-SLOT="0/18"
-
-KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
-IUSE="doc ntl test"
-
-RESTRICT="!test? ( test )"
-
-BDEPEND="${PYTHON_DEPS}
- doc? (
- app-text/texlive-core
- dev-python/sphinx
- dev-tex/latexmk
- dev-texlive/texlive-latex
- dev-texlive/texlive-latexextra
- )
-"
-DEPEND="dev-libs/gmp:=
- dev-libs/mpfr:=
- ntl? ( dev-libs/ntl:= )
- virtual/cblas"
-# flint 3 includes arb and arb cannot use flint 3.
-RDEPEND="${DEPEND}
- !sci-mathematics/arb"
-
-# The rst files are API docs, but they're very low-effort compared to
-# the PDF and HTML docs, so we ship them unconditionally and hide only
-# the painful parts behind USE=doc.
-DOCS="AUTHORS README.md doc/source/*.rst"
-
-PATCHES=( "${FILESDIR}/flint-3.0.1-find-cblas.patch" )
-
-src_configure() {
- # https://github.com/flintlib/flint/issues/1683
- append-cflags -Wno-error=strict-prototypes
-
- local mycmakeargs=(
- -DWITH_NTL="$(usex ntl)"
- -DBUILD_TESTING="$(usex test)"
- -DBUILD_DOCS="$(usex doc)"
- )
-
- cmake_src_configure
-
- if use doc; then
- # Avoid the "html/_source" directory that will contain a copy of
- # the rst sources we've already installed, and also avoid
- # installing html/objects.inv.
- HTML_DOCS="${BUILD_DIR}/html/*.html
- ${BUILD_DIR}/html/*.js
- ${BUILD_DIR}/html/_static"
- DOCS+=" ${BUILD_DIR}/latex/Flint.pdf"
- fi
-}
-
-src_compile() {
- cmake_src_compile
-
- if use doc; then
- cmake_build html
- cmake_build pdf
- fi
-}
diff --git a/sci-mathematics/flint/flint-3.1.0.ebuild b/sci-mathematics/flint/flint-3.1.3_p1.ebuild
index f95e430165ae..4f60961ecba2 100644
--- a/sci-mathematics/flint/flint-3.1.0.ebuild
+++ b/sci-mathematics/flint/flint-3.1.3_p1.ebuild
@@ -9,17 +9,16 @@ inherit cmake flag-o-matic python-any-r1
DESCRIPTION="Fast Library for Number Theory"
HOMEPAGE="https://www.flintlib.org/"
-# flintlib.org tarballs have been broken in the past, Bill Hart suggests
-# we get them from Github (which he has control over).
-SRC_URI="https://github.com/flintlib/flint/archive/refs/tags/v${PV}.tar.gz
+MY_PV="${PV/_/-}"
+SRC_URI="https://github.com/flintlib/flint/archive/refs/tags/v${MY_PV}.tar.gz
-> ${P}.tar.gz"
-
+S="${WORKDIR}/${PN}-${MY_PV}"
LICENSE="LGPL-2.1+"
# Based off the soname, e.g. /usr/lib64/libflint.so -> libflint.so.15
SLOT="0/19"
-KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
+KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
IUSE="doc ntl test"
RESTRICT="!test? ( test )"
@@ -48,12 +47,18 @@ DOCS="AUTHORS README.md doc/source/*.rst"
PATCHES=(
"${FILESDIR}/flint-3.0.1-find-cblas.patch"
- "${FILESDIR}/${P}-fix-pc-install.patch"
+ "${FILESDIR}/flint-3.1.3_p1-c99-I.patch"
)
src_configure() {
- # https://github.com/flintlib/flint/issues/1683
- append-cflags -Wno-error=strict-prototypes
+ # Test failures:
+ # * https://bugs.gentoo.org/934463
+ # * https://github.com/flintlib/flint/issues/2029
+ filter-flags -floop-nest-optimize \
+ -ftree-loop-linear \
+ -floop-strip-mine \
+ -floop-block \
+ -fgraphite-identity
local mycmakeargs=(
-DWITH_NTL="$(usex ntl)"
diff --git a/sci-mathematics/fricas/Manifest b/sci-mathematics/fricas/Manifest
index 705c9cfb3a60..455bbbf9f50e 100644
--- a/sci-mathematics/fricas/Manifest
+++ b/sci-mathematics/fricas/Manifest
@@ -1,6 +1,6 @@
-AUX fricas-sbcl-2.3.9.patch 2339 BLAKE2B 484f46de176e5148d7a628551f70fe786f62716c30b20ec2db744e554fb06ceda8a9bc89e8ade987a34f9b92856492590497634886d46ab2917bb4b81a1905c1 SHA512 d16dc7bb46006bd50cf12b7758f58d22902a853a20b8febac2d96f151fe841181831f05a12f5fe88eb213ae9d71d8fe560ba078f214a7bfa961f7aa60ff74dcf
+AUX fricas-1.3.11-doc.patch 621 BLAKE2B 1e31762044f274ca1959bf822a57ba86b5dc4b9ceb8e0d78a70e45c57eb82f740fa1faa30c98557e98b099e80fdcbc8808ccf7abb01da25d3c82c7a4547f524a SHA512 d7e7133eaa90fbd8cbcdccacc82e7e1a12e1215f0af91ef1878c1e1b9f91cd340cadedacfa71cde78ee96ffc87c546a0e1a364e801c4adfa706bd997e754449b
DIST fricas-1.3.10-full.tar.bz2 10971513 BLAKE2B 0ea96cf1076dcd23f53ebdcd3ebf5c6e605915ce332093b83d62a5ed482d32f14833857e270865a4031d7bfc033d961c69007e936260e7d85e632b091d969e0d SHA512 de23c34a1e47b0a4ab2f85e1154e6fa5b0905427718e8c0ad4fe298bf6ebbb1abcc02426e528b7b34d15aebfc2ca1b06f73e39a24ec741d2d5c70f9b48b02665
-DIST fricas-1.3.9-full.tar.bz2 10949173 BLAKE2B c535d2a384fa55db53b6901d3ba5d1cc8eca35ccf67a2664f934da427a808b5adc7a5522b935f5dcff89795c0ca5816818d9cf37399b6f9bdc63cfe4d622a7c3 SHA512 9cfcb8bad52550a46216509154d5c06dac23625bc14d504a1febbea7ff771fd3172f91c2824df51375b8d85adc19959a5cbbfa2b77a0095ca37e8a4d4b8cc405
+DIST fricas-1.3.11-full.tar.bz2 10937641 BLAKE2B 52bb467468de83dfbb8a61717356d74c605efe1174168c35af50d15232c8441457415ca2c88fd19356caec9f9ee29af556104f421dc0479f3ae635144432be7a SHA512 6166661866829764fdf02e84c08f3afd8f631a40c8c5340648640b4fa388641c703021f5006e135ac32e671786b1a75bc290039e929ef322c60a0ba0cb0212ac
EBUILD fricas-1.3.10.ebuild 1936 BLAKE2B a2f13425f913969b6529574b630ac941569aa855636aad264ae03742bcc10f7d6296e46e09a944036075a6cf71c95eb07e82cec3df90f05d8c9008ae93dcf1ae SHA512 3265cd2127ca54df7118743a34dbe23ee32b8829a68083703ded4404c2aa691d58eaf9617eb8354d2a06fea4b43dba89f9f7268b3e39828ae6d7adf8cb8081f7
-EBUILD fricas-1.3.9-r3.ebuild 2001 BLAKE2B c67aff92ef892cdc51987cd26956ebba59cca9a014c03ebab954b0ff87ee5bf1b784bdf5f477561013cbd9a72dc870e596040404ec815d80adf92517c58c1bce SHA512 565b9b1eff76bf41be4d7689e6cbce2332142d562a7fb7117520cc64a29dfd22b6cc543f5295bf872a80420103bee024824ffb43b776592969b172ab21b2c320
+EBUILD fricas-1.3.11-r2.ebuild 2393 BLAKE2B 5a2e5c7b3e0929efb38c0f7d80cea0ffb83f609e256279a829acb821e7d0e0dd48ef9c67861fdde6a71022d2b5e9a76fe1129bdd36b076e841d5a7e0e8584911 SHA512 ba0fa17760289cbc915f0199f11fa9958ead7e857de45758f1216aed9efe016d35cf2f67b086152320bb166ffb4b504e92ae49150a656b393ca505fe65f637a8
MISC metadata.xml 1115 BLAKE2B dc1fcf98b2fb9df013ab256c4f81952ac5808f2761ae66479106482260b5328d337755fcb5208fa67ff7448c368d5db32a0c6c12537eaaa64d22a16cf32962ee SHA512 686316e67d08d27e48be2e544657c27ca20b8303b097b2154d18a2873ce39fe27c33be61a1922a3e61f89fadc9f4f6d204c9f591e670bcbf46ff2c71200f6660
diff --git a/sci-mathematics/fricas/files/fricas-1.3.11-doc.patch b/sci-mathematics/fricas/files/fricas-1.3.11-doc.patch
new file mode 100644
index 000000000000..fa38eef84dcc
--- /dev/null
+++ b/sci-mathematics/fricas/files/fricas-1.3.11-doc.patch
@@ -0,0 +1,12 @@
+diff '--color=auto' -r -U3 fricas-1.3.11.orig/src/doc/Makefile.in fricas-1.3.11/src/doc/Makefile.in
+--- fricas-1.3.11.orig/src/doc/Makefile.in 2024-06-30 04:17:46.000000000 +0700
++++ fricas-1.3.11/src/doc/Makefile.in 2024-06-30 22:46:39.519468947 +0700
+@@ -666,7 +666,7 @@
+ tmp/vp-knot3.input: knot3.input ${INPUT_EXTRA_INPUT}
+ cp $< $@
+
+-${HTEX_VIEWPORTS_STAMP}: tmp/stamp-%: tmp/vp-%.input
++${HTEX_VIEWPORTS_STAMP}: tmp/stamp-%: tmp/vp-%.input ${INPUT_EXTRA_INPUT}
+ unset DAASE; FRICAS=${FRICAS}; export FRICAS; \
+ echo ")read $<" | FRICAS_INITFILE='' ${XVFB} \
+ ${FRICAS}/bin/fricas -noht -noclef > /dev/null
diff --git a/sci-mathematics/fricas/files/fricas-sbcl-2.3.9.patch b/sci-mathematics/fricas/files/fricas-sbcl-2.3.9.patch
deleted file mode 100644
index f3a28ed57457..000000000000
--- a/sci-mathematics/fricas/files/fricas-sbcl-2.3.9.patch
+++ /dev/null
@@ -1,59 +0,0 @@
-diff --git a/src/lisp/num_gmp.lisp b/src/lisp/num_gmp.lisp
-index b58001e0b..f4a022ad4 100644
---- a/src/lisp/num_gmp.lisp
-+++ b/src/lisp/num_gmp.lisp
-@@ -646,14 +646,27 @@
- (setf (symbol-function 'orig-isqrt)
- (symbol-function 'common-lisp:isqrt)))
-
-+(defmacro negate_bignum(x)
-+ (let ((sym2
-+ (find-symbol "NEGATE-BIGNUM-NOT-FULLY-NORMALIZED" "SB-BIGNUM")))
-+ (if sym2
-+ `(,sym2 ,x)
-+ ;;; 'read-from-string' looks silly, but here we want error
-+ ;;; if NEGATE-BIGNUM is absent from SB-BIGNUM
-+ (let ((sym1 (read-from-string "SB-BIGNUM::NEGATE-BIGNUM")))
-+ `(,sym1 ,x nil))
-+ )
-+ )
-+)
-+
- (defun gmp-multiply-bignums0 (a b)
- ;;; (declare (type bignum-type a b))
- (let* ((a-plusp (sb-bignum::%bignum-0-or-plusp a
- (sb-bignum::%bignum-length a)))
- (b-plusp (sb-bignum::%bignum-0-or-plusp b
- (sb-bignum::%bignum-length b)))
-- (a (if a-plusp a (sb-bignum::negate-bignum a)))
-- (b (if b-plusp b (sb-bignum::negate-bignum b)))
-+ (a (if a-plusp a (negate_bignum a)))
-+ (b (if b-plusp b (negate_bignum b)))
- (len-a (sb-bignum::%bignum-length a))
- (len-b (sb-bignum::%bignum-length b))
- (len-res (+ len-a len-b))
-@@ -697,10 +710,10 @@
- (let* (
- (nx (if (sb-bignum::%bignum-0-or-plusp x (sb-bignum::%bignum-length x))
- (sb-bignum::copy-bignum x)
-- (sb-bignum::negate-bignum x nil)))
-+ (negate_bignum x)))
- (ny (if (sb-bignum::%bignum-0-or-plusp y (sb-bignum::%bignum-length y))
- (sb-bignum::copy-bignum y)
-- (sb-bignum::negate-bignum y nil)))
-+ (negate_bignum y)))
- (xl (sb-bignum::%bignum-length nx))
- (yl (sb-bignum::%bignum-length ny))
- (rl (if (< xl yl) xl yl))
-@@ -735,9 +748,9 @@
- (x-plusp (sb-bignum::%bignum-0-or-plusp x (sb-bignum::%bignum-length x)))
- (y-plusp (sb-bignum::%bignum-0-or-plusp y (sb-bignum::%bignum-length y)))
- (nx (if x-plusp x
-- (sb-bignum::negate-bignum x nil)))
-+ (negate_bignum x)))
- (ny (if y-plusp y
-- (sb-bignum::negate-bignum y nil)))
-+ (negate_bignum y)))
- (len-x (sb-bignum::%bignum-length nx))
- (len-y (sb-bignum::%bignum-length ny))
- (q nil)
diff --git a/sci-mathematics/fricas/fricas-1.3.9-r3.ebuild b/sci-mathematics/fricas/fricas-1.3.11-r2.ebuild
index 0fc1aceea768..f661206cab77 100644
--- a/sci-mathematics/fricas/fricas-1.3.9-r3.ebuild
+++ b/sci-mathematics/fricas/fricas-1.3.11-r2.ebuild
@@ -2,7 +2,8 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-inherit elisp-common
+VIRTUALX_REQUIRED="doc"
+inherit virtualx elisp-common
DESCRIPTION="FriCAS is a fork of Axiom computer algebra system"
HOMEPAGE="https://fricas.sourceforge.net/
@@ -14,7 +15,7 @@ LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="+sbcl cmucl gcl ecl clisp clozurecl X emacs gmp"
+IUSE="+sbcl cmucl gcl ecl clisp clozurecl X emacs gmp doc"
REQUIRED_USE="^^ ( sbcl cmucl gcl ecl clisp clozurecl )
gmp? ( ^^ ( sbcl clozurecl ) )"
RDEPEND="sbcl? ( dev-lisp/sbcl:= )
@@ -26,16 +27,22 @@ RDEPEND="sbcl? ( dev-lisp/sbcl:= )
X? ( x11-libs/libXpm x11-libs/libICE )
emacs? ( >=app-editors/emacs-23.1:* )
gmp? ( dev-libs/gmp:= )"
-DEPEND="${RDEPEND}"
-
-PATCHES=( "${FILESDIR}"/${PN}-sbcl-2.3.9.patch )
+DEPEND="${RDEPEND}
+ doc? ( dev-texlive/texlive-basic
+ dev-texlive/texlive-latex
+ dev-texlive/texlive-latexrecommended
+ dev-texlive/texlive-latexextra
+ dev-texlive/texlive-mathscience
+ dev-tex/pgf )"
# necessary for clisp and gcl
RESTRICT="strip"
+PATCHES=( "${FILESDIR}"/${P}-doc.patch )
+
src_configure() {
local LISP GMP
- use sbcl && LISP=sbcl
+ use sbcl && LISP="sbcl --dynamic-space-size 4096"
use cmucl && LISP=lisp
use gcl && LISP=gcl
use ecl && LISP=ecl
@@ -48,12 +55,16 @@ src_configure() {
fi
# aldor is not yet in portage
- econf --disable-aldor --with-lisp=${LISP} $(use_with X x) ${GMP}
+ econf --disable-aldor --with-lisp="${LISP}" $(use_with X x) ${GMP}
}
src_compile() {
- # bug #300132
- emake -j1
+ default
+ if use doc; then
+ pushd src/doc > /dev/null || die "pushd src/doc failed"
+ virtx emake book
+ popd > /dev/null
+ fi
}
src_test() {
@@ -74,6 +85,10 @@ src_install() {
rm "${D}"/usr/bin/efricas || die "rm efricas failed"
fi
rm -r "${D}"/usr/$(get_libdir)/${PN}/emacs || die "rm -r emacs failed"
+
+ if use doc; then
+ dodoc src/doc/book.pdf
+ fi
}
pkg_postinst() {
diff --git a/sci-mathematics/gap/Manifest b/sci-mathematics/gap/Manifest
index c6ec8f52a7cc..ddb4d6eae153 100644
--- a/sci-mathematics/gap/Manifest
+++ b/sci-mathematics/gap/Manifest
@@ -1,3 +1,3 @@
-DIST gap-4.13.0-core.tar.gz 38666910 BLAKE2B 42e6ccd4c7474efec6f9faab7bbc67c264df7f3a3b62945faa53150a00d6944aa8a2cc5e5c9f99440541211d5279bdaed458ce8351375f8e14f0380f612e8c89 SHA512 d7326dc49f1c646853e66a48b83c8053bb80625289fbaa54b12b8f88c016d41cbf78d67333def0c3ac36d93f602811d2cb4ee5d56c37aa7efd13ce8ce6808f3c
-EBUILD gap-4.13.0.ebuild 3944 BLAKE2B a6c26178337fc7c9454bf2f567491c420d3471b42763b98e33ca9093dce01fd32a1a33e6215701776976f9485938b99f448f06e4dfbba2cafa721360c272eb6d SHA512 18a786f24b34a16cfef3bccf0a5c4854980cb2f1e152b344bec0fae12430cfe032b9ad05deaaeaf2e53ba4a35a172c9c54f3ea0643a2d7a500fd81024b25ad9b
+DIST gap-4.13.1-core.tar.gz 38673913 BLAKE2B a63cbd2211430bfbf1bc9bb489a68a2ee7182858ccb326dfe5e6d3a7b8fb6a8c34b56a539c8b9cf3a22a1cc3a4ffe22d365b0e5229ba2c2b6d0ce6bacf0e645b SHA512 e3b74558c05e5963ea87aa77baba0edc068634072ff97b8ea0880289e53213eed82b01784db2675263d6f47547bfef259b80353ed2843ce90a77a0252c551919
+EBUILD gap-4.13.1.ebuild 3952 BLAKE2B 7799ab87b5facb7cbe4934c53108a85b96725add2e61dbe0cea6fa4f5d4ef013f3d2d496da86e0d2fda2b13f1e6601fd2755d5a0671306b7d80fe14c6d599389 SHA512 53a7f462e3f7c4601a96a95a199cddc0800b187100ada6a3046aa3f502bb65f881dfc524b07676817e83ab51923c90c16ae6b7fc74f6d06a57e18cdbb5d4b0b6
MISC metadata.xml 1582 BLAKE2B 9151244f139b0d675e327731c336c41d5d69c25856286c182944d57255fbb6d7b1f023195b3a01c829ff6f3ea1d5e6eb6edbcc796a30120deacde82b90b5f39c SHA512 f4490e9b13cee6604f14df39ea048d7578e080a8faa97b0bb22191a7dce56904416870ed64c289f91526087009f7488e8baed4e531c78f50a5b917e9e1684ce2
diff --git a/sci-mathematics/gap/gap-4.13.0.ebuild b/sci-mathematics/gap/gap-4.13.1.ebuild
index 9e533710c911..083b69e86f54 100644
--- a/sci-mathematics/gap/gap-4.13.0.ebuild
+++ b/sci-mathematics/gap/gap-4.13.1.ebuild
@@ -9,11 +9,14 @@ DESCRIPTION="System for computational discrete algebra. Core functionality."
HOMEPAGE="https://www.gap-system.org/"
SRC_URI="https://github.com/gap-system/gap/releases/download/v${PV/_/-}/${P/_/-}-core.tar.gz"
+S="${WORKDIR}/${P/_/-}"
+
LICENSE="GPL-2+"
SLOT="0/9" # soname
-KEYWORDS="amd64"
+KEYWORDS="amd64 ~riscv"
IUSE="cpu_flags_x86_popcnt debug memcheck minimal readline test valgrind"
REQUIRED_USE="?? ( memcheck valgrind )"
+
RESTRICT="!test? ( test )"
# The minimum set of packages needed for basic GAP operation. You can
@@ -62,8 +65,6 @@ RDEPEND="${DEPEND}"
# packages, use package.provided.
PDEPEND="${REQUIRED_PKGS} !minimal? ( ${AUTOLOADED_PKGS} )"
-S="${WORKDIR}/${P/_/-}"
-
pkg_setup() {
if use valgrind; then
elog "If you enable the use of valgrind during building"
diff --git a/sci-mathematics/gfan/Manifest b/sci-mathematics/gfan/Manifest
index c40d19f6e56f..eb4c57d1c9bf 100644
--- a/sci-mathematics/gfan/Manifest
+++ b/sci-mathematics/gfan/Manifest
@@ -1,6 +1,10 @@
AUX gfan-0.6.2-Makefile.patch 6603 BLAKE2B 48f9b4280418aef41d502d770c070ec1dcef947a39c6263d991be0f6f41147d06b78a4b07ca76e0fb4bc9780cb9469c98c637473789d857925df8d546ad35e92 SHA512 e1eef6f01c9942b38780f19b774fa3e99df4dbdba738cc2c6c69e2f1858e5e6294db72d7b679c5ff1313a76143bd611077731d360479f9375d6506e33a4a620a
+AUX gfan-0.6.2-find-name.patch 433 BLAKE2B 452e286223f4607f42e0895bba443c1534e491dc5e182f6f14c1d5d0d63c5992684b36ad0d028b68c286644e7ccc84786b0e49c311fcbe0fa6151a60ee3001d9 SHA512 f561189e887af930fa09ffa8870e9fbc4e5d5ed1b1a1b81c2001ea3d2a404b025a640eb7a4d504e448a60be4c58af3a3d00421abb48762bb2b32357e862252fc
+AUX gfan-0.6.2-fix-0602ResultantFanProjection.patch 689 BLAKE2B 4531bd59dc7a356b2907b043dc71a5e34e647dd15822d3e3846785bb27162ba607eea8492b972574c1f64a227d428b1db0b385a7a54624f5d33b3f4522bd7fe6 SHA512 0de03e0f40f7cde6ae8709a8c6f26cd39458752d1480c49635e58ce57c0b0ff1c03382bd41097af7609ee6320f98d83f600e7dde842fe545b758982e704e52eb
+AUX gfan-0.6.2-fix-spelling-errors.patch 2826 BLAKE2B 1a5b662dafd42834c9254d79cad84717d5b407c0fd14bf3f58320203b847953284597aa2add8dcb7eaa40700fa2a5c6e1c0ba99c2715d7fb0c6deedc45c44c8e SHA512 a30947bda62723f0d5a916d1a05de52fd67a2a3d4303b5774e7517407f531df67eb2968be255aab91634d46fdb61243e8b38ac355eef02c01c4ee95576e10159
AUX gfan-0.6.2-testsuite.patch 3223 BLAKE2B ddb94775a13bd503df5c9563750a6b4b68c9e72e1a19aaa0415c5484e07765dfd28ba02b3a0fab65a0b9cd5c61afafbc6a3d862a1de68ece57ef9d8bb2835c16 SHA512 d62e765a39ee1a8cb149fcae8afb538b19a91206dd0b8cf0ac2b681b28569e44f492b770b9e61d7573f2d52f265ad4cf25671197c204238a89075709753a83e6
AUX gfan-0.6.2-xcode9.3_compat.patch 367 BLAKE2B fb7c685a4dd811fed83e2734a16507b1792e3a97c666d0e7de1d2ed53a7b9b43c5319517f9eef829f47147dc725f2c4ead38968fa3868baa1d16630a8b844636 SHA512 129d2c35777f82bf2a1581450ecb12dd6811fb72b583748b30665c0f9b20d39646233d9b40fb64a3c7790360514a51b30e49c53d83c34d259f664bf820ae1ce2
DIST gfan0.6.2.tar.gz 1321059 BLAKE2B 1ed61e1e084a1ceb65dd21848440bc3a90486c0ce4012b3b64c8029e89636696d2b0e5446ea156d2cf050b5db179c7c2f25c97e683cecf6e9616e8553d8513bf SHA512 5961820750af2522fdc1a86c0254742c3b003607a8707df5d6cd5f0bc6461e4d3db3b1d3cb537979d57eb9dff387974a58aeb91d0b5246d7c701cadc5a2cf4cf
-EBUILD gfan-0.6.2-r4.ebuild 2000 BLAKE2B 366403868054bf49c770fbe70fdd5ca1bfd344d7297df630ce19741357822fd371050ce6d565f85320387d8d9670337fb3068d7a5839bbed1c43f03c79235cad SHA512 909394a61a288f30ecc9a6d077e19182bee84e7980c5d906d8adda1bda26bded7de4c48601d8d6d2bb455e8f99d6e6e1f2fb7037a3a3816539d7e44abc88fc71
+EBUILD gfan-0.6.2-r4.ebuild 2007 BLAKE2B 21d014cbabb76f661135ffc1c1ce72b016448511e0ec7cb71cffc6f68fec9328c140f268ae3dce2a7ed58ee5559f56c274fb9ce1f7edcc000a9f0606f013bd3d SHA512 76b1e4b63458d5992b5036a7fff2f0e9be5ec0269fcd8a3d2854db21a89f8efd54b9d043049e9e9ac969852f975a8774735c6c426ac03068078c75c1517d0f2a
+EBUILD gfan-0.6.2-r5.ebuild 1971 BLAKE2B b50e2c1bbcbd4269850575bd4f36bb42dcad534d3a55e4257bf3281e907dfe0730deb81fbb66373356ec474e9273b4c9b40ae227842edce682e68530be0de2f6 SHA512 5eed708f34f910390a024e45b9a613ab424729122f58bae8573832f4f217c3f6424309c7f068f162d797a0c19f8d56926b97054c4ece1d9d62094a8848a913e3
MISC metadata.xml 1344 BLAKE2B 1a1d24099e2338877b068dee2b9e17feb4063de3a681a3b8d6a707c863708d6f380bb4864eb2fd5fef8ed49d6b1a770a8d1b4c12ce722b4f7fe113876de0b792 SHA512 8d5c93337a82b132c66c8d7e64c97deedcfdc724e9874bf308e6d817f71e663bc2b281ea133ae15e30096f5c801f88116b11e4d36dd8dd8eec526b5bc16d5f54
diff --git a/sci-mathematics/gfan/files/gfan-0.6.2-find-name.patch b/sci-mathematics/gfan/files/gfan-0.6.2-find-name.patch
new file mode 100644
index 000000000000..5e6718e70ed2
--- /dev/null
+++ b/sci-mathematics/gfan/files/gfan-0.6.2-find-name.patch
@@ -0,0 +1,18 @@
+Description: Properly terminate while loop when finding application name.
+Author: Anders Nedergaard Jensen <jensen@math.au.dk>
+Origin: https://bugs.debian.org/950008#17
+Bug-Debian: https://bugs.debian.org/950008
+Forwarded: yes
+Last-Update: 2021-11-21
+
+--- a/src/application.cpp
++++ b/src/application.cpp
+@@ -26,7 +26,7 @@
+ {
+ l--;
+ }
+- while(p[l]!=0 && p[l]!='/');
++ while(l >= 0 && p[l]!='/');
+
+ return p+l+1;
+ }
diff --git a/sci-mathematics/gfan/files/gfan-0.6.2-fix-0602ResultantFanProjection.patch b/sci-mathematics/gfan/files/gfan-0.6.2-fix-0602ResultantFanProjection.patch
new file mode 100644
index 000000000000..99fe8167398e
--- /dev/null
+++ b/sci-mathematics/gfan/files/gfan-0.6.2-fix-0602ResultantFanProjection.patch
@@ -0,0 +1,27 @@
+Description: Use int64_t instead of signed long int for 64-bit integer typedef
+ On 32-bit architectures, longs are only 32 bits. The resulting overflow
+ was causing an infinite loop in the 0602ResultantFanProjection test.
+Bug-Debian: https://bugs.debian.org/905300
+Bug-Debian: https://bugs.debian.org/974558
+Author: Doug Torrance <dtorrance@piedmont.edu>
+Last-Update: 2020-11-12
+
+(mjo: added missing include)
+
+--- a/src/vektor.h
++++ b/src/vektor.h
+@@ -6,11 +6,12 @@
+ #include <assert.h>
+ #include <algorithm>
+ #include <complex>
++#include <cstdint>
+ #include <stdio.h>
+
+ using namespace std;
+
+-typedef signed long int int64;
++typedef int64_t int64;
+
+ void outOfRange(int i, int n);
+
+
diff --git a/sci-mathematics/gfan/files/gfan-0.6.2-fix-spelling-errors.patch b/sci-mathematics/gfan/files/gfan-0.6.2-fix-spelling-errors.patch
new file mode 100644
index 000000000000..08b78c6efcaa
--- /dev/null
+++ b/sci-mathematics/gfan/files/gfan-0.6.2-fix-spelling-errors.patch
@@ -0,0 +1,50 @@
+Descriptions: Fix some spelling errors in output text of the programs
+Author: Cédric Boutillier <boutil@debian.org>
+Author: Doug Torrance <dtorrance@piedmont.edu>
+Forwarded: yes
+Last-Update: 2020-11-13
+
+--- a/src/app_scarfisgeneric.cpp
++++ b/src/app_scarfisgeneric.cpp
+@@ -24,7 +24,7 @@
+ }
+ const char *helpText()
+ {
+- return "This program takes a matrix as input and checks if it satisfies Scarf's generality conditions. The rows of the matrix are listed on the input. The A1 condition is that there exists a strictly poistive vector in the co-kernel of the matrix. The A2 condition is that te maximal minors of the matrix are non-zero. A3\n";
++ return "This program takes a matrix as input and checks if it satisfies Scarf's generality conditions. The rows of the matrix are listed on the input. The A1 condition is that there exists a strictly poistive vector in the co-kernel of the matrix. The A2 condition is that the maximal minors of the matrix are non-zero. A3\n";
+ }
+ ScarfIsGenericApplication()
+ {
+--- a/src/app_symmetries.cpp
++++ b/src/app_symmetries.cpp
+@@ -35,7 +35,7 @@
+ }
+ SymmetriesApplication():
+ optionSymmetry("--symmetry","Specify subgroup to be searched for permutations keeping the ideal fixed."),
+- optionTorusSymmetry("--symsigns","Specify for each generator of the group specified wiht --symmetry an element of ${-1,+1}^n$ which by its multiplication on the variables together with the permutation is expected to keep the ideal fixed.")
++ optionTorusSymmetry("--symsigns","Specify for each generator of the group specified with --symmetry an element of ${-1,+1}^n$ which by its multiplication on the variables together with the permutation is expected to keep the ideal fixed.")
+ {
+ registerOptions();
+ }
+--- a/src/app_representatives.cpp
++++ b/src/app_representatives.cpp
+@@ -24,7 +24,7 @@
+ }
+ const char *helpText()
+ {
+- return "This program computes takes generaters for a subgroup of S_n and a list of n-dimensional integer vectors. The output is a list of vectors, one from each orbit of elements of the list. \n";
++ return "This program computes takes generators for a subgroup of S_n and a list of n-dimensional integer vectors. The output is a list of vectors, one from each orbit of elements of the list. \n";
+ }
+ RepresentativesApplication()
+ {
+--- a/src/tropical2.cpp
++++ b/src/tropical2.cpp
+@@ -271,7 +271,7 @@
+ PolynomialSet r(theRing);
+ if(theRing.getNumberOfVariables()!=weight.size())
+ {
+- cerr << "Error: Number of varaibles in polynomial ring "<<theRing.getNumberOfVariables()<< " length of weight vector " << weight.size() <<endl;
++ cerr << "Error: Number of variables in polynomial ring "<<theRing.getNumberOfVariables()<< " length of weight vector " << weight.size() <<endl;
+ assert(0);
+ }
+
diff --git a/sci-mathematics/gfan/gfan-0.6.2-r4.ebuild b/sci-mathematics/gfan/gfan-0.6.2-r4.ebuild
index 29b330866f46..fe1b428750be 100644
--- a/sci-mathematics/gfan/gfan-0.6.2-r4.ebuild
+++ b/sci-mathematics/gfan/gfan-0.6.2-r4.ebuild
@@ -9,9 +9,11 @@ DESCRIPTION="Compute Groebner fans and tropical varieties"
HOMEPAGE="https://users-math.au.dk/~jensen/software/gfan/gfan.html"
SRC_URI="https://users-math.au.dk/~jensen/software/${PN}/${PN}${PV}.tar.gz"
+S="${WORKDIR}/${PN}${PV}"
+
LICENSE="GPL-2+"
SLOT="0"
-KEYWORDS="amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 ~arm ~riscv ~x86 ~amd64-linux ~x86-linux"
IUSE="doc"
BDEPEND="doc? ( virtual/latex-base )"
@@ -19,8 +21,6 @@ DEPEND="dev-libs/gmp:0=[cxx(+)]
sci-libs/cddlib:0="
RDEPEND="${DEPEND}"
-S="${WORKDIR}/${PN}${PV}"
-
PATCHES=(
"${FILESDIR}/${PN}-0.6.2-xcode9.3_compat.patch"
"${FILESDIR}/${PN}-0.6.2-testsuite.patch"
diff --git a/sci-mathematics/gfan/gfan-0.6.2-r5.ebuild b/sci-mathematics/gfan/gfan-0.6.2-r5.ebuild
new file mode 100644
index 000000000000..47fbcc3b8e1d
--- /dev/null
+++ b/sci-mathematics/gfan/gfan-0.6.2-r5.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Compute Groebner fans and tropical varieties"
+HOMEPAGE="https://users-math.au.dk/~jensen/software/gfan/gfan.html"
+SRC_URI="https://users-math.au.dk/~jensen/software/${PN}/${PN}${PV}.tar.gz"
+
+S="${WORKDIR}/${PN}${PV}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~riscv ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+BDEPEND="doc? ( virtual/latex-base )"
+DEPEND="dev-libs/gmp:0=[cxx(+)]
+ sci-libs/cddlib:0="
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.6.2-testsuite.patch"
+ "${FILESDIR}/${PN}-0.6.2-Makefile.patch"
+ "${FILESDIR}/${PN}-0.6.2-fix-0602ResultantFanProjection.patch"
+ "${FILESDIR}/${PN}-0.6.2-fix-spelling-errors.patch"
+ "${FILESDIR}/${PN}-0.6.2-find-name.patch"
+)
+
+pkg_setup() {
+ tc-export CC CXX
+
+ # This should really go in cppflags, but that doesn't work with
+ # gfan's hand-written Makefile.
+ append-cxxflags -DNOCDDPREFIX -I"${EPREFIX}"/usr/include/cddlib
+}
+
+src_prepare() {
+ default
+
+ # And this one fails (harmlessly) on x86, bug 818397.
+ rm -r testsuite/0009RenderStairCase || \
+ die "unable to disable test 0009RenderStairCase"
+}
+
+src_configure() {
+ # -Werror=odr
+ # https://bugs.gentoo.org/863044
+ # Only contact method is email. I have sent one detailing the issue.
+ filter-lto
+
+ # The upstream Makefile says that GCC produces bad code with -O3.
+ replace-flags "-O3" "-O2"
+ default
+}
+
+src_compile() {
+ default
+ if use doc; then
+ pushd doc > /dev/null || die
+ # The LaTeX build commands need to be repeated until the
+ # document "stops changing," which is not as easy as it
+ # sounds to detect. Running it twice seems to work here.
+ for iteration in 1 2; do
+ latex manual.tex && \
+ bibtex manual && \
+ dvipdf manual.dvi manual.pdf || die
+ done
+ popd > /dev/null || die
+ fi
+}
+
+src_install() {
+ emake PREFIX="${ED}/usr" install
+ use doc && dodoc doc/manual.pdf
+}
diff --git a/sci-mathematics/giac/Manifest b/sci-mathematics/giac/Manifest
index 7300d4cfb300..7522d0598a7d 100644
--- a/sci-mathematics/giac/Manifest
+++ b/sci-mathematics/giac/Manifest
@@ -2,10 +2,10 @@ AUX giac-1.6.0-pari-2.11.patch 783 BLAKE2B f173015006fef4a9f8176965f923664f11b0b
AUX giac-1.7.0.1-gsl_lapack.patch 2912 BLAKE2B b0f9f05126316b9b76d5f1a5ad737cc88ecbc71dc450ef714f6da323128d9c945ada9d658c73647987f84638498aa4d3bbef49062424ab63b53c76defc127902 SHA512 14bfcb04e5a23933cfa4635789bf02f6d6e6a528c167504678b3d2ecb38f135d0c05583712005fe53afd7696cc9ebee5dc3ab90cac056d75bd43be786075b011
AUX giac-1.9.0.21-pari-2.15.patch 298 BLAKE2B 99329cfd473ec3b580caf8f9700501e8b5dca9143cd04d883729880109d4e1962d19dce19aaf51e5d26ab09dc399a45a3a052847837f53a60c1b21087ebeabb8 SHA512 f9335dd47ee43ca10b784c8302422efcd5a835b1fe13fa134f5d36e453327e96624e77e086710f9d556352b1d62e6e693b3308fe8af329492e11d68cc9451b5b
AUX giac-1.9.0.67-system-gl2ps.patch 2283 BLAKE2B 6c98e3ea09f0f8b0e34e2634218595d576e7eee85234e56436db24fe0aa276288f58049bcfb374ae42d7f104b44f0d51b3e81acc6e2e9af1cecc4e4adadfada8 SHA512 88dae722242b81ee22b7d377e4fd4b98d1e687307aaf3091ab17ffc720678bedb93c30bc0fd92c0388b7994945b820f31dd57e831736b6dd29e5d8285320d4e6
-AUX giac-1.9.0.93-glibcxx-assertions.patch 1135 BLAKE2B 5dc1f882f0832f305dbc24789e1ec3fde79ac6f203fef013d330f6cc268fe5366dd938cf6f141d7f3dad7aff6d012d65693d9daea20745d8bc87f15dc55453d1 SHA512 cd882c469a7af89dad475cd77f9a3625f914a6b522eba8eb12275535552da5d98bab63e6b84ba730766976ee3fe70bd414143febb3b5de55727e7da854c0cad9
-AUX giac-1.9.0.93-no-fltk-buildfix.patch 1690 BLAKE2B 7ff97352ebe164107700ed0a45cfe25df7685ac69684cdfe6811235db2d2020322791868ef2b503281095120083ac8c63f0982c1eec9baac009c8642dca2229d SHA512 4a739550164d0555ddfaec7a02e2fe43f5dcdbc752d7d785ae8c4d1bad7b3e18d15ff2c5670129fc99b9680e6198f87b1517255a03b390bfcadfa0a02f28752f
+AUX giac-1.9.0.995-fix-undefined-behavior.patch 1296 BLAKE2B f181960feaa2ef42a0d5bb8a3d060fd3e3f62416135d6204c6d4682f58c727b4a734b538b9be52b4e6750d6415e2c08812196f50acf99e147b8f4215f0e37280 SHA512 7d394a3f60b977d5cbc6afded350fb1296823d85adc73b9c215f0882e500660d2c4eefb79c0f451eb60009e86430f8cf10566ef6e8a9cdeca087e489c14fd7d6
+AUX giac-1.9.0.995-glibcxx-assertions.patch 1292 BLAKE2B 640dca5b736c151aedd5ed5bed7c49a468bf70978f2b671b2d67d5bc1248b9921b876fdb097ffa5b1b701f5337dbb601c7217307173d322a376a61f35508c742 SHA512 39b2d553bc3e0dedf53acca38e80b8ca76f4f0308603f0f67d881430e635f008ea618d1a7478e6c215c960b189c6d4fd83073ee2171fb2d2b3921095de53db23
DIST giac_1.9.0-29.tar.gz 115441843 BLAKE2B 9114db489be0c51d67c87b0a0c187fecf9eca84d7cb3117e72793290c8e606e76c3d9bc8a2d573fc2de2f2d885fb34d18583302a5902d69045976114ac02b95e SHA512 57b58aa35c724eae7df36229cb3d45d1b724a8a88acb1d1dd0711be64dd7c891850e7242662e448ce955e76b856973f9065628b65ce0826c60e277cb944b21b7
-DIST giac_1.9.0-93.tar.gz 115117442 BLAKE2B 397c64c5587fadca37b3298fef8c15c2977ded30849af2f3d3ee8a083d26f8db4645ac6a0db2fce4e254144cdc70b88d3313de58a502510e21a22927e1af3505 SHA512 b8c7d7070218afdfdb8f9a94911407860ab81ead9a60adf7f0c0cec3c50cec5fad3a439269192a01ef4d55ed822a4a619b123b6938ba76f9aba3537d14bc4680
+DIST giac_1.9.0-995.tar.gz 128346387 BLAKE2B c275d2cad511b906a3822156bd05f83cd77265cf489da82b111973b0a80de7abd1875d0cf0116e34610aa20b5ea2cc36550950dbf1eb1a321db8c7145c789137 SHA512 7111a21df5efe1ef5f14dc744277e18f3e4701842d827da0f8d745e1bcec4c06b45e3306b7ed3c4affee59c5df2454643900eefe32d46019771e6bb07bc971d9
EBUILD giac-1.9.0.29-r1.ebuild 4542 BLAKE2B dce03818ac9af080b4416b6546563e4be99617b220c4661a540f77e0127760582cfe0a3df8c6a2f94da676b8a0e9fa967be59748184b86eb8934481c607d7500 SHA512 6915110b6964d2e79d7da01cee85ee3b51b944f9879e5659447f0cba5d74bda8c4113ee9290203510fdb57ad1ba60eae52639b134ed74eec01b04a97d75cf066
-EBUILD giac-1.9.0.93.ebuild 5112 BLAKE2B c9de1431f29cc2d4c75c0584887bceb7856e5e1277d3238cc442a786fe52ed46ca27b21fc4202a0707d958a7a8b0440208917e8ea9c72aa2d9f3fefb28827c66 SHA512 93faf00338c23b2893be12b630d5de460c921cb23f70822f17f3017f91416783f93b2984f01e12a66f0b4b546e20d70a5896f6af439749c6a2fb84ae68df1ce0
+EBUILD giac-1.9.0.995-r1.ebuild 5505 BLAKE2B 68dec9bdc7b5245c7768379f0ad59c0ab88694cf934f09f628835034cde12c765d9407ccb90a6f03bc1afa5ace636a24c23f268a38f95442ce0848ed9ef96ad9 SHA512 0fef66cfc86e1cb92cd71fbd3ee5e3e71b5ab13cd084ed7fe4e0db46dce310d64cb5b9e93bdb02940dba57d945b65bb8e73b89dfe8f9dc599107722cbc40fc8a
MISC metadata.xml 1315 BLAKE2B a461d359b33617422f5863466bdbec9ddf56db03467b992c887bce9967d434913489602fd684edc893303078f89cf94d01b44cfdc0ccff33db9b42c5e686cfa8 SHA512 eaeb480010c9dbdfd75516e45e97e3226d2b2812c44e217b318c5a1d86dc40820bac0de69686d7b502775b14a6f1ed3bc11d2372b891c46a37080b4e84da9a1c
diff --git a/sci-mathematics/giac/files/giac-1.9.0.93-glibcxx-assertions.patch b/sci-mathematics/giac/files/giac-1.9.0.93-glibcxx-assertions.patch
deleted file mode 100644
index d11eaf9ab01d..000000000000
--- a/sci-mathematics/giac/files/giac-1.9.0.93-glibcxx-assertions.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 77a08fddd1687e245f9f7567376f858607a76db0 Mon Sep 17 00:00:00 2001
-From: Michael Orlitzky <michael@orlitzky.com>
-Date: Mon, 4 Mar 2024 10:58:21 -0500
-Subject: [PATCH] configure.ac: delete _GLIBCXX_ASSERTIONS override
-
-This was added upstream when it was pointed out that the codebase
-contains undefined behavior that triggers glibcxx's assertions.
-Disabling the assertions without fixing the undefined behavior is not
-a satisfactory solution, so we drop the override.
----
- configure.ac | 3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 62b63fb..3e4909f 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -46,9 +46,8 @@ AC_CHECK_HEADERS(regex)
- AC_CHECK_FUNCS(tgammaf)
-
- dnl CXXFLAGS="$CXXFLAGS -std=c++0x"
--dnl avoid "security" checks for vectors
- dnl -DUSE_OBJET_BIDON added because xcas::localisation() does not load locales correctly for modules loaded before main() is executed
--CXXFLAGS="$CXXFLAGS -U_GLIBCXX_ASSERTIONS -DUSE_OBJET_BIDON"
-+CXXFLAGS="$CXXFLAGS -DUSE_OBJET_BIDON"
-
- dnl Define DOUBLEVAL if bigendian
- if test "x$ac_cv_c_bigendian" = "xyes"; then
---
-2.43.0
-
diff --git a/sci-mathematics/giac/files/giac-1.9.0.93-no-fltk-buildfix.patch b/sci-mathematics/giac/files/giac-1.9.0.93-no-fltk-buildfix.patch
deleted file mode 100644
index 970ba22c6cca..000000000000
--- a/sci-mathematics/giac/files/giac-1.9.0.93-no-fltk-buildfix.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-diff --git a/src/Editeur.cc b/src/Editeur.cc
-index d69dce2..f7725bb 100644
---- a/src/Editeur.cc
-+++ b/src/Editeur.cc
-@@ -3,7 +3,6 @@
- #include "Input.h"
- #include "Tableur.h"
- #include "Python.h"
--Fl_Tabs * xcas_main_tab=0;
- #ifdef HAVE_LIBMICROPYTHON
- extern "C" int mp_token(const char * line);
- #endif
-@@ -27,6 +26,7 @@ extern "C" int mp_token(const char * line);
-
-
- #ifdef HAVE_LIBFLTK
-+Fl_Tabs * xcas_main_tab=0;
- #include <FL/fl_ask.H>
- #include <FL/fl_ask.H>
- #include <FL/Fl_Return_Button.H>
-diff --git a/src/icas.cc b/src/icas.cc
-index a5e3711..44ec905 100644
---- a/src/icas.cc
-+++ b/src/icas.cc
-@@ -2166,11 +2166,13 @@ int main(int ARGC, char *ARGV[]){
- printf("%s\n","Running ./xcas");
- continue;
- }
-+#ifdef HAVE_LIBFLTK
- if (s=="xcas"){
- giac::gen ge; std::string filename;
- xcas::fltk_view(0,ge,"session.xws",filename,5,contextptr);
- continue;
- }
-+#endif
- if (s=="giac"){
- python_compat(python_compat(contextptr)&3,contextptr);
- printf("%s\n","Switching to giac interpreter");
-@@ -2251,7 +2253,9 @@ int main(int ARGC, char *ARGV[]){
- #else
- start=clock();
- #endif
-+#ifdef HAVE_LIBFLTK
- xcas::icas_eval(gq,ge,reading_file,filename,contextptr);
-+#endif
- #ifdef __APPLE_
- startc=clock()-startc;
- #endif
-@@ -2265,9 +2269,11 @@ int main(int ARGC, char *ARGV[]){
- // 2-d plot?
- int graph_output=graph_output_type(ge);
- if (reading_file>=2 || graph_output || (giac::ckmatrix(ge,true) &&ge.subtype==giac::_SPREAD__VECT) ){
-+#ifdef HAVE_LIBFLTK
- if (xcas::fltk_view(gq,ge,"",filename,reading_file,contextptr))
- cout << "Done";
- else
-+#endif
- cout << "Plot cancelled or unable to plot";
- }
- else {
diff --git a/sci-mathematics/giac/files/giac-1.9.0.995-fix-undefined-behavior.patch b/sci-mathematics/giac/files/giac-1.9.0.995-fix-undefined-behavior.patch
new file mode 100644
index 000000000000..92d37ae93fa8
--- /dev/null
+++ b/sci-mathematics/giac/files/giac-1.9.0.995-fix-undefined-behavior.patch
@@ -0,0 +1,43 @@
+From 864ecde569ce9fad636abe1135de33fdc94e6981 Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Thu, 5 Sep 2024 19:49:07 -0400
+Subject: [PATCH 1/1] src/vecteur.cc: skip undefined behavior with a bounds
+ check
+
+---
+ src/vecteur.cc | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/src/vecteur.cc b/src/vecteur.cc
+index de10197..119d454 100644
+--- a/src/vecteur.cc
++++ b/src/vecteur.cc
+@@ -8490,6 +8490,17 @@ namespace giac {
+ }
+ else {
+ int C=col+1;
++ // mjo: C can be equal to cmax here, which makes buffer[C]
++ // illegal. In that case, however, nothing will happen
++ // below:
++ //
++ // 1. C = cmax ==> C >= (cmax-4), so the "for" loop is skipped
++ // 2. After the "for" loop, C += ptr-&buffer[C] sets C to zero
++ // 3. Now C = cmax means that the second "for" loop is skipped
++ //
++ // As a result, we can comment out this whole thing when
++ // C = cmax to avoid a crash.
++ if (C < cmax) {
+ longlong * ptr= &buffer[C],*ptrend=&buffer[0]+cmax-4;
+ const int *ptrN=&Nline[C];
+ for (;ptr<ptrend;ptrN+=4,ptr+=4){
+@@ -8502,6 +8513,7 @@ namespace giac {
+ for (;C<cmax;++C){
+ buffer[C] -= coeff*Nline[C];
+ }
++ }
+ }
+ }
+ // copy back buffer to N[l]
+--
+2.44.2
+
diff --git a/sci-mathematics/giac/files/giac-1.9.0.995-glibcxx-assertions.patch b/sci-mathematics/giac/files/giac-1.9.0.995-glibcxx-assertions.patch
new file mode 100644
index 000000000000..4c0d6d7d8d0a
--- /dev/null
+++ b/sci-mathematics/giac/files/giac-1.9.0.995-glibcxx-assertions.patch
@@ -0,0 +1,38 @@
+From Michael Orlitzky <michael@orlitzky.com> in the original version
+of the patch:
+
+This was added upstream when it was pointed out that the codebase
+contains undefined behavior that triggers glibcxx's assertions.
+Disabling the assertions without fixing the undefined behavior is not
+a satisfactory solution, so we drop the override.
+
+diff --git a/configure.ac b/configure.ac
+index 96b0223..cdc5618 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -48,7 +48,7 @@ AC_CHECK_FUNCS(tgammaf)
+ dnl avoid "security" checks for vectors is also included in first.h
+ dnl use -std=c++17 -march=native for vectorclass v2 optimizations
+ dnl -DUSE_OBJET_BIDON added because xcas::localisation() does not load locales correctly for modules loaded before main() is executed
+-CXXFLAGS="$CXXFLAGS -U_GLIBCXX_ASSERTIONS -DUSE_OBJET_BIDON"
++CXXFLAGS="$CXXFLAGS -DUSE_OBJET_BIDON"
+
+ dnl Define DOUBLEVAL if bigendian
+ if test "x$ac_cv_c_bigendian" = "xyes"; then
+diff --git a/src/first.h b/src/first.h
+index 7852c73..21e15b9 100644
+--- a/src/first.h
++++ b/src/first.h
+@@ -25,9 +25,9 @@
+ #define register
+
+
+-#ifdef _GLIBCXX_ASSERTIONS
+-#undef _GLIBCXX_ASSERTIONS
+-#endif
++// #ifdef _GLIBCXX_ASSERTIONS
++// #undef _GLIBCXX_ASSERTIONS
++// #endif
+
+ #if defined NUMWORKS && !defined SDL_KHICAS
+ #define KHICAS 1
diff --git a/sci-mathematics/giac/giac-1.9.0.93.ebuild b/sci-mathematics/giac/giac-1.9.0.995-r1.ebuild
index 9f42bdacc1a7..6a9a85a14f05 100644
--- a/sci-mathematics/giac/giac-1.9.0.93.ebuild
+++ b/sci-mathematics/giac/giac-1.9.0.995-r1.ebuild
@@ -10,6 +10,7 @@ MY_PV=$(ver_cut 1-3)
DESCRIPTION="A free C++ Computer Algebra System library and its interfaces"
HOMEPAGE="https://www-fourier.ujf-grenoble.fr/~parisse/giac.html"
SRC_URI="https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/${FETCH_P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}"
# The licensing is explained in README. We disable or delete several
# bundled features (MicroPytho, QuickJS, FLTK, gl2ps) that are
@@ -58,7 +59,7 @@ PATCHES=(
"${FILESDIR}/${PN}-1.9.0.21-pari-2.15.patch"
"${FILESDIR}/${PN}-1.9.0.67-system-gl2ps.patch"
"${FILESDIR}/${P}-glibcxx-assertions.patch"
- "${FILESDIR}/${P}-no-fltk-buildfix.patch"
+ "${FILESDIR}/${P}-fix-undefined-behavior.patch"
)
REQUIRED_USE="test? ( gui )"
@@ -68,8 +69,6 @@ REQUIRED_USE="test? ( gui )"
# holder."
RESTRICT="!test? ( test ) mirror"
-S="${WORKDIR}/${PN}-${MY_PV}"
-
src_prepare() {
# giac-1.9.0.55 tries to compile a bundled version of FLTK for you
# if you pass --enable-fltk but the system version isn't detected.
@@ -79,12 +78,22 @@ src_prepare() {
# similar deal with gl2ps
rm src/gl2ps.[ch] || die
+ # These are executable (ARM) build artifacts that should not have
+ # been shipped. We remove them so they can be rebuilt properly.
+ rm src/mkjs doc/khicas.nwa || die
+
+ # Don't waste time eautoreconfing the bundled micropython that we
+ # never use.
+ sed -e 's/micropython-1.12//g' -i Makefile.am || die
+ sed -e '/micropython-1.12/d' -i configure.ac || die
+ rm -r micropython-1.12 || die
+
default
eautoreconf
}
src_configure() {
- append-cxxflags -std=c++14 # bug 788283
+ append-cxxflags -std=c++17 # bug 788283
if use gui; then
append-cppflags -I$(fltk-config --includedir)
diff --git a/sci-mathematics/gimps/Manifest b/sci-mathematics/gimps/Manifest
index dc4ff1264f3e..5303aa9330c0 100644
--- a/sci-mathematics/gimps/Manifest
+++ b/sci-mathematics/gimps/Manifest
@@ -5,10 +5,13 @@ AUX gimps.service 283 BLAKE2B db6c0c777d514aa0216c1af087418ead25561ffa950752e237
AUX gimps.tmpfiles 38 BLAKE2B c306d739ed0a0cc8bb4c80c7051ad93326cf0054d3f7fd61c4ed8a7d518356d521f7d3c3202d0b8b69723b8e7178457a34c65e92732eb15e8e64c3dff468ae2a SHA512 61c5eda13289175cdf55704442ceab4d5391d24cfa49f04155799fc2798e5ad5f1e624802e1c04b99685b1560f9898d1b0fc0c15c82251d1a765dd5de93024d8
DIST gimps-30.19.14.linux32.tar.gz 4695497 BLAKE2B 41067b8ed04d9d8aa00c3ac54ab70089acd4900eed16c9217f81d488438e731ae4c27dd87c462efbef8950e79d9268a74273d68e333df9c64bb166ad1b52b72d SHA512 78c2074225d63b1139601f0b352cc6ab77b840ffaf23385d5e0ded76f4b19cdd422d41dc931799ceb13e592a83cd2032c01e1950d41e81a76802ecf2de4b321c
DIST gimps-30.19.14.linux64.tar.gz 5912298 BLAKE2B 75f0c0cdd02a8d3ddc83cad8cabc48ed5b33fcdf5e94606cfde500da47848cdb3e49e227a5386d62b8b76ac4461ed96c4c315e38ba614cfe1a9d3c0ee59bca29 SHA512 87995b17d6721a4f17b3770531a8361fccc5a073dc11bd922420d387bfff1cc9b5675f9ce6cd4b9efa0f210c962c879339203b0149b49f7e04f590102c73a547
+DIST gimps-30.19.20.linux32.tar.gz 4697820 BLAKE2B bd00aba43e69a8b72e0841849a52f5aa31c4b0640991a141ce73009ba40f6348dbfdfc2b20a5000b070b40988ca27d1de0a633c1986aad8715f086cb0e3b3e04 SHA512 9ce532a4411895fa3c8e3451f3ff180699954ff7e39715d26a7fdb3cbb1c8d227fa949e62351580c664e81fd365580a82d2f3f96e45a90bd975248306aa214ec
+DIST gimps-30.19.20.linux64.tar.gz 5912959 BLAKE2B 52bcc27d34bff75aca89208ede35668183e1707d80ecf3704e0478c91913f10c717973976f95eae7a9caedd0efb2643039dfdb84790b715955772dc6d2ad4b6d SHA512 535d1057d39e71b0ec3d8cff8b0d60b8379219c5483e0bd5229558696f7a60790f0478d584e5141169a63956078c1f8209abde35119bbc777149fdbec118bd7f
DIST gimps-30.8.15.linux32.tar.gz 6029035 BLAKE2B 4b84ebd89d45d5f0d0de28539ea8bc5bfb0f7383f39bb02ac00d51ba46897bba222db6215578e38fb939f541dae2569f431547caa51825dcdc6845e7e62f028b SHA512 b0a30d2d629d0f08dd2838be9dbe669c7f8f3d9f50ccfedc94c453a994cba9972440182e05d8e3b74b258e6e60cff53f6521e73a7ebdb34a45701a81d8b3f671
DIST gimps-30.8.15.linux64.tar.gz 7211031 BLAKE2B 1d0291adb255099b9c8b44e2f650831755822ab850c2ebaa86dbe9728da619a4f9c22e3e5736a70ca3657818e2748caf32a23243347c048b9d57ecc8f7b3cf42 SHA512 6034dca7644bab85da3fdb194755a076778b37dfaa0a944ee5e64915e1196b61bd5f0a291a40118648c3a81faef3ac3026230709312d2de154260c3cf736a166
DIST gimps-30.8.17.linux64.tar.gz 7222132 BLAKE2B 14e0e75fbb4784fdfe27e29535eb162071f04d63456f09bb98beb2a03af2b7d9eeac8357dc8d53e9591f9035351bedde40825b7eb8f6d85035e87b317a7aa50b SHA512 988c7a387b4d39af55bd04793bdc1c64acf67b13ab905bcc19fbd17575a7ef65d3a33ac06c2290f0457a6ebe4bf92451b43bc47d0b6d913bb03eb5f67ab823d1
EBUILD gimps-30.19.14.ebuild 1984 BLAKE2B 7567d7bb575f5f4fa60c4eda5cc6fdea61f40a879a3c85387254c4a8e656110359e819f6e67987c4299e5648c927a5433ff13e9319f098d979bfda0714565499 SHA512 4c00d8e560ee3f62256d8e5d8b7b32ed79fe240386c25d80017d5d27d0635a0e7665eadcaf7100ac808a3d1c8547e590ecc6f71391ef7cbe87d13e04f49f7eb6
+EBUILD gimps-30.19.20.ebuild 1983 BLAKE2B 661593a7ea26463cdf1d6dfe9ad70060842739d4abe1becc837c8f24eaa091e1f6af55410ee7b02b5a5f968f4c5b1fb1ac27630abb9d632fc0fa8634959144ac SHA512 7620e9ce6f5fdae79ad95dafd25ade0736240b24ecf6b5bc8c59ff4ba8c00e1d668ccdad87958990c16cfe94348c7fd2cd832d26f94ee17ac706eb389d891b84
EBUILD gimps-30.8.15.ebuild 1929 BLAKE2B c975f7a77545fc614da23cf2482189b4c9b1a5f0f2f9cd950c1cb7edafc29572ccc5458289a0b2e065188e25686f13e9fa57a51a95aad4261b5d89639135e1fa SHA512 fbf3c88184a6fa23872365e84906b9d01dd089e9a8b28caad37cd34cdade00f6d0981fed9b05561178a8a48c0643111fbf98d2a0826307b1e6578249393fe90a
EBUILD gimps-30.8.17.ebuild 1805 BLAKE2B 934a32857e42f983a84ecd0051233f2b379bd5fc80ffb67fba2e08cbf507ee99937c33e941ac77014c60c7e8a374561e488e705a96f91af70fe23052388506a1 SHA512 8e4a9d57dee3e849fd99e150bd87de2a9216f16efdaf1ba0e195afdbb5c73e7e217933f3f05376933c38fabb24791e12870c1648f8417d3cf65c34f6a6deb0db
MISC metadata.xml 560 BLAKE2B 01b265f54acd4ad1c9e1d23043d4ce2020fd41843a0efb09003046ea835989393df9935edcc3320eff43d552e47c2bb5afc688ddb96e9e6088c1e1c3a38fca64 SHA512 ba744b0b86d81acf54ed31c70e19be7ee315b6976b29cf0a40e79a7a227b8f68f4262ac2eecd696ddf051dd13de2019dae5df43706ca629bceca738e0e501175
diff --git a/sci-mathematics/gimps/gimps-30.19.20.ebuild b/sci-mathematics/gimps/gimps-30.19.20.ebuild
new file mode 100644
index 000000000000..ec86e2265e58
--- /dev/null
+++ b/sci-mathematics/gimps/gimps-30.19.20.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit pax-utils readme.gentoo-r1 systemd tmpfiles
+
+DESCRIPTION="The Great Internet Mersenne Prime Search"
+HOMEPAGE="https://www.mersenne.org/"
+
+# The author has finally caved in to the pressure of putting the build
+# number in the package name. Some dark magic necessary to get to the
+# package name
+
+MY_PV=$(ver_rs 2 'b' )
+
+SRC_URI="
+ amd64? ( https://www.mersenne.org/download/software/v$(ver_cut 1)/$(ver_cut 1-2)/p95v${MY_PV/./}.linux64.tar.gz -> ${P}.linux64.tar.gz )
+ x86? ( https://www.mersenne.org/download/software/v$(ver_cut 1)/$(ver_cut 1-2)/p95v${MY_PV/./}.linux32.tar.gz -> ${P}.linux32.tar.gz )
+ "
+
+S="${WORKDIR}"
+SLOT="0"
+LICENSE="GIMPS"
+RESTRICT="mirror bindist"
+KEYWORDS="-* amd64 ~x86"
+
+# Since there are no statically linked binaries for this version of mprime,
+# and no static binaries for amd64 in general, we use the dynamically linked
+# ones and try to cover the .so deps with the packages listed in RDEPEND.
+# libgmp.so.10.4.1 is bundled within the .tar.gz, but we use the system one.
+
+RDEPEND="net-misc/curl
+ >=dev-libs/gmp-6.1.2"
+
+OPTINSTALLDIR="/opt/gimps"
+
+QA_PREBUILT="opt/gimps/mprime"
+
+DOCS=( license.txt readme.txt stress.txt undoc.txt whatsnew.txt )
+
+src_install() {
+ dodir ${OPTINSTALLDIR}
+ keepdir /var/lib/gimps
+ pax-mark m mprime
+ cp mprime "${D}/${OPTINSTALLDIR}" || die
+ fperms a-w "${OPTINSTALLDIR}/mprime"
+ fowners root:0 "${OPTINSTALLDIR}"
+ fowners root:0 "${OPTINSTALLDIR}/mprime"
+
+ einstalldocs
+
+ readme.gentoo_create_doc
+
+ newinitd "${FILESDIR}/${PN}-28.9-init.d" gimps
+ newconfd "${FILESDIR}/${PN}-25.6-conf.d" gimps
+
+ systemd_dounit "${FILESDIR}/${PN}.service"
+ newtmpfiles "${FILESDIR}/${PN}.tmpfiles" "${PN}.conf"
+}
+
+pkg_postinst() {
+ tmpfiles_process "${PN}.conf"
+
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ echo
+ einfo "GIMPS data files were not removed."
+ einfo "Remove them manually from /var/lib/gimps/"
+ echo
+}
diff --git a/sci-mathematics/ginac/Manifest b/sci-mathematics/ginac/Manifest
index f7d4675f2c60..8091530dcc00 100644
--- a/sci-mathematics/ginac/Manifest
+++ b/sci-mathematics/ginac/Manifest
@@ -2,4 +2,5 @@ AUX ginac-1.8.2-pkgconfig.patch 340 BLAKE2B 1f405dea9cc0a68fec86a65765247e93959a
DIST ginac-1.8.7.tar.bz2 1153952 BLAKE2B 272a9603741d43d4ba4f7ac3478aac405490cf747e20a5f77d7d6c672c6aee972ab77ddf4cd68daa3c432ea0b02a46ba295311967c2c5a2135bf34070a25f272 SHA512 29a5dbe1fa8a40668a32eb0065d1f676b074222d76ed70a05c5841a4be92c4b1a019ae3fc820e1c7007e641ef8ef94d00adab901f89673df0d372a4c8af8e51a
EBUILD ginac-1.8.7-r1.ebuild 1520 BLAKE2B 7c999ade6c88ee0815f3bb508ec2054dae9f3911f2ad7ef01af36dbbf52f341d1765121f4f0c65beb3b694763e62f7f7e28c9a05d5baa33251969e3bc785eb9b SHA512 0a976b1092d4738e2dce36bb251778c9fce7d696b5b4a37ff050cfd60be5664a85f4d3304d5f2737623fa6d78a2d2febd1a29719572c9f87dd9b2803edf67b06
EBUILD ginac-1.8.7-r2.ebuild 1511 BLAKE2B 877ef797f014448bcd918e11b5d4f3bba8dba1c4d5c9c630fc5194b4aa42efe32967f6a0376593c04c2ccba4e1e403bc209605dbd4ac14e6fd18dbf21e1419bd SHA512 c0f7482332ab7e1b8f9d6e5146d2edc7013956328ae9fbc02fd9eeba4cc8df2e08fc9624d67122102d2056eb8da5e5b5b539ed93a0648369ef65cba3e5be7640
+EBUILD ginac-1.8.7-r3.ebuild 1533 BLAKE2B af1cb196aaf3263c1c1cd3e2f874331dd7d228379cd5b52fccedf5b7b27fac04ee1cacb05ee34de65e8fc1f9d80ba6b9852de021340add0b365a1cc0c4f6acd0 SHA512 a21786f99b26e10d6824abbffef0aeebbeb7d83bc781e7db8a93ab16e9e8408b3e63f949f512311acd2d49e95c60e87b885a4afd62662492bea04d2164dcfa1f
MISC metadata.xml 793 BLAKE2B e657f7bb74f228c2a4be58dc2fee5dced4002195d0a33d153a354a962552a8c49395cfb92a9b0de0b5090d8009de29e13c001301b041dce149dbb9fec9799b95 SHA512 c8da993984bc0313f9586aad8899ce1fd43c304da66486aa68a1c33bb1c75aac63e129eddeda925081f624c38064634187fc24ce39c5c337b64f2889443befad
diff --git a/sci-mathematics/ginac/ginac-1.8.7-r3.ebuild b/sci-mathematics/ginac/ginac-1.8.7-r3.ebuild
new file mode 100644
index 000000000000..eb3c8da6394d
--- /dev/null
+++ b/sci-mathematics/ginac/ginac-1.8.7-r3.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..12} )
+
+inherit python-any-r1
+
+DESCRIPTION="C++ library and tools for symbolic calculations"
+HOMEPAGE="https://www.ginac.de/"
+SRC_URI="http://www.ginac.de/${P}.tar.bz2"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples"
+
+RDEPEND=">=sci-libs/cln-1.2.2"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ ${PYTHON_DEPS}
+ virtual/pkgconfig
+ doc? (
+ app-text/doxygen
+ dev-texlive/texlive-fontsrecommended
+ >=media-gfx/fig2dev-3.2.9-r3[ghostscript]
+ dev-texlive/texlive-latexextra
+ virtual/texi2dvi
+ )"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.8.2-pkgconfig.patch )
+
+src_configure() {
+ econf \
+ --disable-rpath \
+ --disable-static
+}
+
+src_compile() {
+ emake
+
+ if use doc; then
+ local -x VARTEXFONTS="${T}"/fonts
+ emake -C doc/reference html pdf
+ emake -C doc/tutorial ginac.pdf ginac.html
+ fi
+}
+
+src_install() {
+ default
+
+ if use doc; then
+ pushd doc >/dev/null || die
+ newdoc tutorial/ginac.pdf tutorial.pdf
+ newdoc reference/reference.pdf reference.pdf
+
+ docinto html/reference
+ dodoc -r reference/html_files/.
+
+ docinto html
+ newdoc tutorial/ginac.html tutorial.html
+ popd >/dev/null || die
+ fi
+
+ if use examples; then
+ pushd doc >/dev/null || die
+ docinto examples
+ dodoc examples/*.cpp examples/ginac-examples.*
+ docompress -x /usr/share/doc/${PF}/examples
+ popd >/dev/null || die
+ fi
+
+ # no static archives
+ find "${ED}" -name '*.la' -delete || die
+}
diff --git a/sci-mathematics/glpk/Manifest b/sci-mathematics/glpk/Manifest
index 4def1f31c27d..55e19035dfbb 100644
--- a/sci-mathematics/glpk/Manifest
+++ b/sci-mathematics/glpk/Manifest
@@ -1,6 +1,6 @@
AUX glpk-4.65-debundle-system-libs.patch 1930 BLAKE2B 0c265afe9338e75bb3d6536e9e0b2f473e15b4b524b29244bd6bce44a1f77e48c122a463a3800a246435b47d240e799fd16a21ef5c66eb00643759774c47ef73 SHA512 940c2d3dc12efd8df90c17277630a60ea6682eff0323ea82eeb8b81377db612103c29fb44bbe8ff936d96a436548be3e4c772f55f8412adaad546a6381be6333
AUX glpk-4.65-fix-mysql-include-prefix.patch 1837 BLAKE2B ecd90024e07f29e8ebb6af80b520c8f192cfea21c90d8c247001389f2ccfcf24ad487981a0cc719d1ca99e266dd2a9d66f6416d4f2d5e7c80bdf807b9bb7b74e SHA512 c74281bf3e03e136d183b562b8f682a3e1957019a36ec0c6a048049f0d5f55361107a62e36eaa9e3306a1f13df10adf55c2f54f096b6e353108856e05d9ce799
DIST glpk-5.0.tar.gz 4132649 BLAKE2B f8204f66a97af950c13ee72ee9541f305745741d1231325670ede14663cb6c28ec6fbc44b3625973f1924ca078183d1d43f494ad43a7b48b45be131882b00001 SHA512 4e92195fa058c707146f2690f3a38b46c33add948c852f67659ca005a6aa980bbf97be96528b0f8391690facb880ac2126cd60198c6c175e7f3f06cca7e29f9d
-EBUILD glpk-5.0-r1.ebuild 2579 BLAKE2B 8cfb73bd99f4cb926bd61948dce95d0c9b400b3da74ca03822dd17184f4047d0b878f6d775ed566ed6b9f793c97dd2eaa9ea58d0023b0564a6317c3a2b773550 SHA512 c40681370fc4bfd01ad670fd14b78a8ba963cbc1ae9f1263f5b02781e1bac3db816263ba255d35739df3115ff8baef4eff51152e1bd59f30336e262e91158baa
-EBUILD glpk-5.0-r2.ebuild 2626 BLAKE2B 1dfd54b3e9d8776cef2ed4bafc6601be15e6182f5f31200d30076c996bc665ac2e528f73f06ecfd47cacba378545f41063b11247d4d41e3880a00eab47735f61 SHA512 866e82e6819280d4da6fad9b97f7f569c7bf183303a59511a6878e0308d484c9f8b259fe14a51f88ff9b0effaab62c0283188418d9bc5ddc5f624afb89d3139a
+EBUILD glpk-5.0-r1.ebuild 2573 BLAKE2B 86b24b612643deb53ad466534cb640831549eb1412cf379bae02307a9957c693716050cb35770ec891d50d91ffbf3fa218ec7fc43400d9234c49637ae6a4064f SHA512 c20ba1c1eb265a9667979cdf286bb69e9e032454ffdfade04d5700806c6473313efe428c6321ee9db43751a19ff11520315aae7b4e9b41ab921c0fabe1c08355
+EBUILD glpk-5.0-r2.ebuild 2620 BLAKE2B b65947de1a0a49f93c07f0bcf2d339f54ef49e8d346a165c12f4c50664e327e0c552d80bedc27e069c3bc17b417c6879dec41d06c041aed180a6b7b70671124e SHA512 fff33967acc1bfecee4bcd76fd7b8d99dc8aec984b06f7732df64db87957abb478e089b7c6ab67e88f239e81254e35fa77aae21a1c33890cd6ebac781200ade9
MISC metadata.xml 1104 BLAKE2B f22121178a0e7f3ab097558b05cb084a7dc787cc1530859d6182aea61abee220e135ad695f517419053bb805cecef9c3555fcdb2688d6b6d17cdd8b3ce2dbb21 SHA512 965c2c6c322c488736cb9743f1e076fdf2733976502b2b2668717534f7a1505f36b84f453f23f4ff5972f7a25883d253e345caef727bab8abed4c638f5a0dc5a
diff --git a/sci-mathematics/glpk/glpk-5.0-r1.ebuild b/sci-mathematics/glpk/glpk-5.0-r1.ebuild
index cdfbef93af93..a0db9eee70b6 100644
--- a/sci-mathematics/glpk/glpk-5.0-r1.ebuild
+++ b/sci-mathematics/glpk/glpk-5.0-r1.ebuild
@@ -11,7 +11,7 @@ SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0/40"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux"
IUSE="doc examples gmp odbc mysql"
BDEPEND="virtual/pkgconfig"
diff --git a/sci-mathematics/glpk/glpk-5.0-r2.ebuild b/sci-mathematics/glpk/glpk-5.0-r2.ebuild
index af7007591862..ec74e25882a4 100644
--- a/sci-mathematics/glpk/glpk-5.0-r2.ebuild
+++ b/sci-mathematics/glpk/glpk-5.0-r2.ebuild
@@ -11,7 +11,7 @@ SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0/40"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
IUSE="doc examples gmp odbc mysql"
BDEPEND="virtual/pkgconfig"
diff --git a/sci-mathematics/gsl-shell/Manifest b/sci-mathematics/gsl-shell/Manifest
index 0a33cf452514..6ac44e34350b 100644
--- a/sci-mathematics/gsl-shell/Manifest
+++ b/sci-mathematics/gsl-shell/Manifest
@@ -1,8 +1,4 @@
-AUX gsl-shell-2.3.2-no-compile-in-install.patch 920 BLAKE2B e47e66c14d67cbbc8267ea690565d642f8e38177913730aee21e64f9bee9edb8700dfa8a673d2da7deaeb2d21fe72cdf4a5dfbe489ab57f9821b8da200ceb2a8 SHA512 7e9c46719d29202a0cf9fb48b025c8a108e73e4694a07511e711ab083e8db1a67469161261741666cdb9d78897d2bbaf73b63440128554b1298816366701befc
-AUX gsl-shell-2.3.2-sphinx-extmath-to-imgmath.patch 571 BLAKE2B efb254f4c6ab8ecea7adf4405cd7ddad22a7d7641eb108af11897987757bc313ab128127f1bf793dc7849758f5397888555bbbf6646e43990f059ad1bfacb896 SHA512 0247eafc4450951a914240bc5180cb5ac2620b24e5fbc70c67f297910eb6a35a040c15cb9d8bbdd794dffa77f90a791921ce7f150f86228b6e0d7d8b162b1821
AUX gsl-shell-2.3.5-no-fetching.patch 2724 BLAKE2B bea4e68899a0c01508a0fd99c4e161e1ea163b6023df7a7375e1e5c5bba8679c22d1bef2a187b6efdeffd6c7b604a76cd12240a8699a26024139f68e6202e0ea SHA512 2d68573cd20603c6d7187ee42663c28e7eb47073430f0e1031a474f871d14bed5e129214fe1206224b49f2fc15343ebc7adb3c2e5cfd5a596d25dcdca4f34e7f
-DIST gsl-shell-2.3.2.tar.gz 3400376 BLAKE2B 8218b4d3232048fe7575631c7acc66d313520ee4d41a1dd2c267f021c8271a427673a575cc00f8f55a4868b8ec5e9626c0cbaa6ea9fa76662a726e436a527cf3 SHA512 6379380ab15a7ec477d67d36305ce76c551d32e88d8611447eeb6deaf9877c362392bce45599a2b2988331064c22626260c41f8548624c23e2c4e3c59c87c291
DIST gsl-shell-2.3.5.tar.gz 2533145 BLAKE2B 9eec5ee0676429a08b628766450f366b6998c4fc14e6b3108c49a9bf2ef4019c9b7671edbb0def295849155676df6c2bc8975aacb4ff906befc243bed147d80c SHA512 9712714a6cce249b007e475916d870eb2ce8bbc4ab2f0e49b8644378243723c9a386c285eacf5a8c54e27e22bab63fb0cd74d4641652230a8682c201b7e63da8
-EBUILD gsl-shell-2.3.2.ebuild 1622 BLAKE2B 02b6b9e3938bba91a885ccf92470bc92fbeeefb06799346ed79b938a1e6ae1098a00f8994e63f6da175396b980ded82de2f0ba145918129d67993dde3f898c9e SHA512 bdffe0fd4f205b5d2c3c7020a6c4cb1ff32a2f48f2c184d30fd747ec2c4dc8301ed8ffcf01edf2d1d6e05080aaaeca77d56855132431a3fe11f8318ab00fc30a
-EBUILD gsl-shell-2.3.5.ebuild 977 BLAKE2B 95f33dfc4c9d5b29960f1eab0f3d55a08efd446a45837cfbd2ea54b776f1ad4c606a96d924c3777b6da1499d5cbbefeba22a95df6890c42a527348c2649c277f SHA512 6513b79adbc0c3d7d132eb3ed9787abab085afa623abc51ead2481affd1e632e398db27ed1b8cea59bad38f49e65e103d54bd2feb4a0e0bc2c0962687e295a19
-MISC metadata.xml 937 BLAKE2B 502844c8dcbcd92853cac23a10d508e59cd6212344bd507958c71d5149edf71ce5e7916e4bd010320ed1a83796ebdd054a9407f1df0219a747d5f51419d6e69a SHA512 b9711d403f615c87c7ed0d1d8b4ba58d9193f6a01740f08c421d01cff4c6eaadd21ec3f1022c928d0fb965774a8f90c0e12a166edd96ebaa620d77eaf15f68e3
+EBUILD gsl-shell-2.3.5.ebuild 978 BLAKE2B cebed75f5b57f1e2d7e975b07aeef59cd08ed72a565468d9aaae89c965480d8cf30f3d4337acee3ce8aa27fa78ddbc72903afd4cdf5d788d390138b347a9dc9c SHA512 5ac005e55ee6aff2b87fc71314a2daf12b8ae77d2f19de95f682224b3699f680c7f34b426a739f1bc0ad6a968889d00178a7afdbe64cb7756345931af83294ac
+MISC metadata.xml 856 BLAKE2B e6f416ef2e39e64cc1d363b450bea0596f3569682efa9296b572f0bb469fabf8c787a1c5f68b62e6d68419084afc370aeda67eb10e0f98618e0e3f79d1f641a5 SHA512 0206d6bb70abc9e0ca76fcc4966587b2e33f2598a591150da00d859766a982ce7a4f908790f67222ee78bdee4d85c7c280795ab75d9428a87126f5763bcf8f4b
diff --git a/sci-mathematics/gsl-shell/files/gsl-shell-2.3.2-no-compile-in-install.patch b/sci-mathematics/gsl-shell/files/gsl-shell-2.3.2-no-compile-in-install.patch
deleted file mode 100644
index d8cdaa02a2c5..000000000000
--- a/sci-mathematics/gsl-shell/files/gsl-shell-2.3.2-no-compile-in-install.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-diff --git a/Makefile b/Makefile
-index 39b4872..4c04865 100644
---- a/Makefile
-+++ b/Makefile
-@@ -154,8 +154,8 @@ mkdir -p $1$(PREFIX)/bin
- mkdir -p $1$(PREFIX)/share/applications
- mkdir -p $1$(PREFIX)/share/icons/hicolor/128x128/apps
- mkdir -p $1$(PREFIX)/share/$(PACKAGE_NAME)/$(PACKAGE_VERSION)
--cp $(GSL_SHELL_GUI) $(GSL_SHELL) $1$(PREFIX)/bin
--strip $1$(PREFIX)/bin/$(GSL_SHELL) $1$(PREFIX)/bin/$(GSL_SHELL_GUI)
-+test -f $(GSL_SHELL_GUI) && cp $(GSL_SHELL_GUI) $1$(PREFIX)/bin || :
-+test -f $(GSL_SHELL) && cp $(GSL_SHELL) $1$(PREFIX)/bin || :
- test -f $(LUAJIT_SO) && \
- mkdir -p $1$(PREFIX)/lib && \
- cp $(LUAJIT_SO) $1$(PREFIX)/lib && \
-@@ -168,7 +168,7 @@ $(CP_REL) $(LUA_BASE_FILES) $1$(PREFIX)/share/$(PACKAGE_NAME)/$(PACKAGE_VERSION)
- $(CP_REL) $(EXAMPLES_FILES) $1$(PREFIX)/bin
- endef
-
--install: $(GSL_SHELL) $(GSL_SHELL_GUI)
-+install:
- $(call install-to-dir,$(DESTDIR))
-
- debian: $(DEBIAN_PACKAGE)
diff --git a/sci-mathematics/gsl-shell/files/gsl-shell-2.3.2-sphinx-extmath-to-imgmath.patch b/sci-mathematics/gsl-shell/files/gsl-shell-2.3.2-sphinx-extmath-to-imgmath.patch
deleted file mode 100644
index 29ddaf2fd710..000000000000
--- a/sci-mathematics/gsl-shell/files/gsl-shell-2.3.2-sphinx-extmath-to-imgmath.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/doc/user-manual/conf.py b/doc/user-manual/conf.py
-index 899f5d6..9475d85 100644
---- a/doc/user-manual/conf.py
-+++ b/doc/user-manual/conf.py
-@@ -25,7 +25,7 @@ import sys, os
-
- # Add any Sphinx extension module names here, as strings. They can be extensions
- # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
--extensions = ['sphinx.ext.intersphinx', 'sphinx.ext.pngmath']
-+extensions = ['sphinx.ext.intersphinx', 'sphinx.ext.imgmath']
-
- # Add any paths that contain templates here, relative to this directory.
- templates_path = ['_templates']
diff --git a/sci-mathematics/gsl-shell/gsl-shell-2.3.2.ebuild b/sci-mathematics/gsl-shell/gsl-shell-2.3.2.ebuild
deleted file mode 100644
index 1531e0e47cb0..000000000000
--- a/sci-mathematics/gsl-shell/gsl-shell-2.3.2.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{9..10} )
-DOCS_BUILDER="sphinx"
-DOCS_DIR="doc/user-manual"
-DOCS_AUTODOC=0
-inherit toolchain-funcs python-any-r1 docs
-
-MY_P=${P/_/-}
-DESCRIPTION="Lua interactive shell for sci-libs/gsl"
-HOMEPAGE="https://www.nongnu.org/gsl-shell/"
-SRC_URI="https://github.com/franko/gsl-shell/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
-S="${WORKDIR}/${MY_P}"
-
-SLOT="0"
-LICENSE="GPL-3"
-KEYWORDS="~amd64 ~x86"
-IUSE="fox"
-
-RDEPEND="
- >=sci-libs/gsl-1.14:=
- virtual/blas
- >=x11-libs/agg-2.5
- >=media-libs/freetype-2.4.10
- sys-libs/readline:0=
- || ( media-fonts/ubuntu-font-family media-fonts/freefont media-fonts/dejavu )
- fox? ( x11-libs/fox:1.6 )
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
- dev-lang/luajit
- virtual/pkgconfig
- doc? ( virtual/latex-base )
-"
-
-PATCHES=(
- "${FILESDIR}/${P}-no-compile-in-install.patch"
- "${FILESDIR}/${P}-sphinx-extmath-to-imgmath.patch"
-)
-
-src_prepare() {
- tc-export PKG_CONFIG
- default
-}
-
-src_compile() {
- local BLAS=$($(tc-getPKG_CONFIG) --libs blas)
- local GSL=$($(tc-getPKG_CONFIG) --libs gsl)
- emake -j1 gsl-shell CC="$(tc-getCC)" CXX="$(tc-getCXX)" CFLAGS="${CFLAGS}" \
- GSL_LIBS="$($(tc-getPKG_CONFIG) --libs gsl) ${BLAS}"
- if use fox; then
- local FOX_INCLUDES="$(WANT_FOX=1.6 fox-config --cflags)"
- local FOX_LIBS="$(WANT_FOX=1.6 fox-config --libs)"
- emake -j1 gsl-shell-gui CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
- CFLAGS="${CFLAGS}" FOX_INCLUDES="${FOX_INCLUDES}" FOX_LIBS="${FOX_LIBS}" \
- GSL_LIBS="$($(tc-getPKG_CONFIG) --libs gsl) ${BLAS}"
- fi
- docs_compile
-}
diff --git a/sci-mathematics/gsl-shell/gsl-shell-2.3.5.ebuild b/sci-mathematics/gsl-shell/gsl-shell-2.3.5.ebuild
index aaa1e8873371..63e0f643d685 100644
--- a/sci-mathematics/gsl-shell/gsl-shell-2.3.5.ebuild
+++ b/sci-mathematics/gsl-shell/gsl-shell-2.3.5.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{10..12} )
DOCS_BUILDER="sphinx"
DOCS_DIR="doc/user-manual"
DOCS_AUTODOC=0
diff --git a/sci-mathematics/gsl-shell/metadata.xml b/sci-mathematics/gsl-shell/metadata.xml
index 74456c83ce16..90658fa611c8 100644
--- a/sci-mathematics/gsl-shell/metadata.xml
+++ b/sci-mathematics/gsl-shell/metadata.xml
@@ -14,9 +14,6 @@ but does offer much more simple and expressive way to use GSL.
The objective of GSL shell is to give the user the power
of easily access GSL functions without having to write a complete C application.
</longdescription>
- <use>
- <flag name="fox">Build a <pkg>x11-libs/fox</pkg> GUI</flag>
- </use>
<upstream>
<remote-id type="github">franko/gsl-shell</remote-id>
</upstream>
diff --git a/sci-mathematics/jags/Manifest b/sci-mathematics/jags/Manifest
index ed48ad817f31..dd97c33d2f7d 100644
--- a/sci-mathematics/jags/Manifest
+++ b/sci-mathematics/jags/Manifest
@@ -1,5 +1,5 @@
DIST JAGS-4.3.0.tar.gz 2057409 BLAKE2B 5820c66dd10cc90343d53b901b7dbc1acf85dca0f5f80280864190882f0af865edad877eb2cfd421ec2035d3ae843373da1facee8a10b6735e2fc0387d452949 SHA512 d0564c73ff45484afad532ed788353f9c0945cd9667030eed5be674492bf97524d05903b22d4995c1de8a331dba7b04425d009e114d98a38b4bfce5214518b36
DIST JAGS-4.3.1.tar.gz 2019687 BLAKE2B dd464675f1aab59d007ffb29844b50ddcc26320cf8159b5ca108bf0e6db9878499aa40e090250b84ff4c8733100149037b2b3cee00b3ff2ec4fb23769157b944 SHA512 dceb97c92ad3ce3ebf62e1e68e822857f170f797f81a79fe5a56d8a81f8ea619e6e06356335e44def8f50ff82af55b2f9f7a880b84e092262a2d78e46c43acf2
EBUILD jags-4.3.0.ebuild 931 BLAKE2B 0304a6bb39fd1b8803aba33b27b794e100bd14047a5ce8e8d44dc377808709d6974432c4d6705b5d4b8b71fb92971d2772b6ebdd8f916387913e6481a38e7d19 SHA512 4d466632cc27a97291f38a4974e6dfbd4f1c1ffc883573f6ba812332197406ac30842a31d6119e881da45e016755398f5f8b6e23db7cd54090311eb2f2bf159b
-EBUILD jags-4.3.1.ebuild 928 BLAKE2B 533b15142bf0b8ee2329a63fd8397bef17508e345193a50c626c13231f9223acbae93d96076f707a768e277e4620b31482aecc1678857ab8563fb5631c949a41 SHA512 43855db8daa31482b0573d5dd2c072cccbe84e1599d5e3ab140fbcc08aa036f43f921c32138ef749eed510be1f933d31b78966895c72e1886c0a2d288da684e0
+EBUILD jags-4.3.1-r1.ebuild 995 BLAKE2B 7aff6dbeb97a38eac18bb4121c7daeb656ca564bc2137bb180ea69c9ed54837e3dad33da21e4acf3d3b189c5e815157df7759856b0b5e1c61a1527ec5790aa9c SHA512 2cbea1071a8813810e1b8167c7c66f2cf37938b8bf985953f85b784dd3909a6348258d7f62b193a12fdab5aa384c0c005cdd88a8c0e94b3e0fd62a0c2064b014
MISC metadata.xml 865 BLAKE2B 6a997d33faa0e84c6bacead33c91a63048cca029df407566730b77f615357230154f9a6ff790190a2547b33311a6a7f23135c354ed25f1eff1d7ceba9a146f94 SHA512 7e38978f65eac37716d885e6e5519c45f2c9c6b1f2616225abab4a6f9b4112cc02a47219c2db48458de2c998864023f10487456ae549829a8449a56cf49181c1
diff --git a/sci-mathematics/jags/jags-4.3.1.ebuild b/sci-mathematics/jags/jags-4.3.1-r1.ebuild
index 24618ca40553..6ee9e9025d55 100644
--- a/sci-mathematics/jags/jags-4.3.1.ebuild
+++ b/sci-mathematics/jags/jags-4.3.1-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit toolchain-funcs
+inherit libtool toolchain-funcs
MYP="JAGS-${PV}"
@@ -18,6 +18,7 @@ KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc"
RDEPEND="
+ dev-libs/libltdl
virtual/blas
virtual/lapack
"
@@ -30,6 +31,11 @@ BDEPEND="
)
"
+src_prepare() {
+ default
+ elibtoolize
+}
+
src_configure() {
econf \
--with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
diff --git a/sci-mathematics/lcalc/Manifest b/sci-mathematics/lcalc/Manifest
index e6a67cab3303..a29321bfb4a3 100644
--- a/sci-mathematics/lcalc/Manifest
+++ b/sci-mathematics/lcalc/Manifest
@@ -1,3 +1,3 @@
DIST lcalc-2.0.5.tar.xz 830360 BLAKE2B 4a282de8548bc0b3d95fe079362ea98dd1397a1f0f7c4c61c6d2df8c5f95b9638aa628a25b138e6037520c69e56bfab635872115139caf3270d473e01276b980 SHA512 d3b7fa25dd3c2a8f88671076dfb5ab5e933be7feff24bbd160c92a476953f5553f9fb58f72c36b9c668929385084918fc3396e1a0bcc55de12ea8cb647c53929
-EBUILD lcalc-2.0.5-r2.ebuild 1003 BLAKE2B b900a458372ed5b34ec5bf4e1f11c046e95f29b33932c97891faf80583a12c7238ae48c6571ec6c25dd93da24a1693d2e7a5394bd64ce358b2ea3ca6344668f2 SHA512 c30aec4f6970c3086df43ca7c68de71544fc01d2005220711520b6416e6ac625cceafe5effab150760c4a61a0f74b5c6f4b9eaee5779158c656579219441494d
+EBUILD lcalc-2.0.5-r2.ebuild 1010 BLAKE2B 60e5e26b9a7601229eb54439ff3a61513ce5236c2766fb09feb29f7e0e06495e9713c8017037736518c89254d25deafb4640f3d87cc61341eeb01741c74fd112 SHA512 d70f132f0a604bbe59d4a3f9e1a03e27148023978cb21a7b7b771a4363b3cb4c5c7670bf4f2c5e79f0af0fc42276797aeed7741a1fd67ef3c3d73e9f9b0ca459
MISC metadata.xml 1165 BLAKE2B 77544a05687fad32c18cb8d840d8de4291cae4135976bd741bbfd57a015956d5104026b99b1aec934d6a260501d89cd947e052a2ac85e35d2c93f7fc08224ac1 SHA512 cce822c8b50d97a7f8405634f565c3fbe147732db57bd66cccbaad2c2eda23076b76d0dfa442d462d55625a5dff06dde9bdf5e6ab4a9c9417d2f69972cc87add
diff --git a/sci-mathematics/lcalc/lcalc-2.0.5-r2.ebuild b/sci-mathematics/lcalc/lcalc-2.0.5-r2.ebuild
index 27c1bc7592fc..f844bccde0e3 100644
--- a/sci-mathematics/lcalc/lcalc-2.0.5-r2.ebuild
+++ b/sci-mathematics/lcalc/lcalc-2.0.5-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -10,7 +10,7 @@ SRC_URI="https://gitlab.com/sagemath/lcalc/uploads/25f029f3c02fcb6c3174972e0ac0e
LICENSE="GPL-2+"
# The subslot is the libLfunction soname major version
SLOT="0/1"
-KEYWORDS="amd64"
+KEYWORDS="amd64 ~riscv"
# Omit USE=mpfr for now because it's broken upstream:
#
diff --git a/sci-mathematics/lean/Manifest b/sci-mathematics/lean/Manifest
index 445f68901a02..44e2599da84c 100644
--- a/sci-mathematics/lean/Manifest
+++ b/sci-mathematics/lean/Manifest
@@ -1,7 +1,9 @@
AUX lean-3.50.3-gcc-13.patch 263 BLAKE2B cf589616f4612319bbe1d21e798787a72da3d0f319cef3ef0042b8baa89d87066867311fd804862d43599a262c64e2b747a6c21415bb69137a3e8e59dd332155 SHA512 013fe4ec983c8ca612621319fad5fe66e081516979e4dace71f24ec72cac8d7fe2a021e701b2bcae1e87209783330c02b799cdb6c1274f7f8d3dc51efaf130b6
AUX lean-CMakeLists-fix_flags.patch 1285 BLAKE2B 0507e553c1acf2a53c5267932127117d5ae5ba9015a08c88748b3d82c041f8d904d15cd033dd7934ac55c474fa75a5d4a46f680cc887fee37c05c3f5f3832839 SHA512 11a5918847e45aac7bf79e48d8f881ef5cd3e6b09dbb0979f3f0b88fd36458be21ebeb530158da801399a0cdc8fe382444ff338cd793cd9f1bfced90c5d5a71b
DIST lean-3.51.1.tar.gz 1918894 BLAKE2B 9a240fe73193794a57001582c0623052cfc1c08ef3b155cac2d9dfc029202cb79b85e844fdf068e454498a35522ec3e18330da8c644bba3c6f708cbde04816f7 SHA512 dccdf6c3fbcd98115e62b9944645af6a2ce21412d63baa9565871807862e8d83cc6f29d1fb687f19b802240a5f9c019443caa00412ecfabe621744dff900e3ee
+DIST lean-4.11.0.tar.gz 25790812 BLAKE2B d9a4eb15199f81c6757acf35fb17c795bb9d69158c7e7deb11d98a45bebf569dcda5f7733b2effd2be0eea879a6c7c24b270d97159e5898215e82e853320918c SHA512 2314659910b4d872c4ae0dda648a9cab9e1cc44cd4c55486a494b65b20fdae236ab9db99a42d7fb1a80030e300e95606065ee7dd27578b12a4c47fc8c102e2bb
DIST lean-4.2.0.tar.gz 16382466 BLAKE2B 3a8770d92ae89041f3e12089c3bb9171a993e8a1c702162925b569e13ed8d8819b3e9aa3c00e314a80a118ff8e4b18fb6df8b8a0e85a21fcb1daa5c0bfc29d4f SHA512 b0bd91f39319c1c6fd6851732d9dcb8758734500abc8faf0648c03582a81d51f2d942fa5deecedf81116b894d0b65e93eccab557bf155e69d65bda83eccaf7bb
EBUILD lean-3.51.1.ebuild 1815 BLAKE2B 767ff4cc188049e3b54d903ff3a314012997369beadf7335a33e01193b0da69707e4b845946afde25a617e9e344df479adb70c8937e84dc1854fe2db9b0d979b SHA512 630f5690c1a4321e56d640186b894623fa5551de17af21793b4a66c32ccfb66697b4144ada36742262e5bd037d094b0448511433e73affdac36ad7e06874635d
-EBUILD lean-4.2.0.ebuild 1319 BLAKE2B 2638f62e66e939ddcdbffc9742c3fefdb3dbaa4a9fa3a84be68d37236259703dd1276faf4a82969b28cfd2cafbe5b97f4da5b00f587cda2842cbb97b4fc4bcb5 SHA512 1f08f9be37ca1502a816b21c31e0de69f2d28d60c16cc86bc24690003ccff4234967a282082cd840e8732d8ccb909c265ac4b9e08b7640a385530df5d7abbc9c
+EBUILD lean-4.11.0.ebuild 1396 BLAKE2B 290329acafb3a31c70e65b271d3221dde9b9d70cdfc38c3db68e108fe1d7cf55bf0791aaf37c2e6860ca7c2e11744203e739b6365c4f488f23d54f5b90b046b5 SHA512 b8f07890e09f4c8a4b7e810d0c34b9f49476c18a6962c6a2c38167a0935bd68fe113f76f856c1c2625d4a789e3210a187acdc23f9e1ae2283608efc4f6625bf1
+EBUILD lean-4.2.0.ebuild 1314 BLAKE2B 5d4bf0f35c2935eedec2da03e93eef5ae03e5d3520b6addb8682083782deab721d1f2aa3f1bc958887b7110bb4f5c031cc200780cf9c5dabccd1d4918617a043 SHA512 ce464635431381a814c8ef8823c06477992b2c3691c09421a9d068d3cabe40e775f999020dde5e53f7100082e304658c4d52e62372e1f21185fd3195774c0dc2
MISC metadata.xml 606 BLAKE2B 6478d84a762a59082fdea0a11a95b27c093782228c48dba58dc490ea9ac2cecef54cc3101dc98e385f3a29f85d84af21b7d2ae1a9f089ee0313158ecb44eb0e7 SHA512 02d2ac07b155c7a04c857d397d476a39864d02b10dd81c5830db5e21eb86c6dcff26da552a04717f5f587b326ddf8e2e8d27f1a138f88b391f0199d8004d8cb7
diff --git a/sci-mathematics/lean/lean-4.11.0.ebuild b/sci-mathematics/lean/lean-4.11.0.ebuild
new file mode 100644
index 000000000000..88456a89f156
--- /dev/null
+++ b/sci-mathematics/lean/lean-4.11.0.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MAJOR="$(ver_cut 1)"
+
+CMAKE_MAKEFILE_GENERATOR="emake"
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit cmake flag-o-matic python-any-r1
+
+DESCRIPTION="The Lean Theorem Prover"
+HOMEPAGE="https://leanprover-community.github.io/"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/leanprover/${PN}${MAJOR}.git"
+else
+ SRC_URI="https://github.com/leanprover/${PN}${MAJOR}/archive/refs/tags/v${PV/_/-}.tar.gz
+ -> ${P}.tar.gz"
+ S="${WORKDIR}/${PN}${MAJOR}-${PV/_/-}"
+
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="Apache-2.0"
+SLOT="0/${MAJOR}"
+IUSE="debug source"
+
+RDEPEND="
+ dev-libs/gmp:=
+"
+DEPEND="
+ ${RDEPEND}
+"
+BDEPEND="
+ ${PYTHON_DEPS}
+"
+
+# Built by lean's build tool.
+QA_FLAGS_IGNORED="usr/lib/lean/libInit_shared.so"
+
+pkg_setup() {
+ python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ filter-lto
+
+ sed -e "s|-O[23]|${CFLAGS}|g" -i src/CMakeLists.txt || die
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ local CMAKE_BUILD_TYPE
+
+ if use debug ; then
+ CMAKE_BUILD_TYPE="Debug"
+ else
+ CMAKE_BUILD_TYPE="Release"
+ fi
+
+ local -a mycmakeargs=(
+ -DLEAN_EXTRA_CXX_FLAGS="${CXXFLAGS}"
+ -DLEAN_EXTRA_LINKER_FLAGS="${LDFLAGS}"
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ rm "${ED}/usr/LICENSE"* || die
+
+ if ! use source ; then
+ rm -r "${ED}/usr/src" || die
+ fi
+}
diff --git a/sci-mathematics/lean/lean-4.2.0.ebuild b/sci-mathematics/lean/lean-4.2.0.ebuild
index a19134fbaf2e..4f9f3b199ff1 100644
--- a/sci-mathematics/lean/lean-4.2.0.ebuild
+++ b/sci-mathematics/lean/lean-4.2.0.ebuild
@@ -22,7 +22,7 @@ else
-> ${P}.tar.gz"
S="${WORKDIR}/${PN}${MAJOR}-${PV/_/-}"
- KEYWORDS="amd64 ~x86"
+ KEYWORDS="amd64"
fi
LICENSE="Apache-2.0"
diff --git a/sci-mathematics/libpoly/Manifest b/sci-mathematics/libpoly/Manifest
index 714ee03cb2c2..5a80cc07e07e 100644
--- a/sci-mathematics/libpoly/Manifest
+++ b/sci-mathematics/libpoly/Manifest
@@ -1,3 +1,3 @@
DIST libpoly-0.1.11.tar.gz 614216 BLAKE2B 42a2510a6a9f94e7170b5df97ec8f2b7b29cb9c95bd13c8c7abebc9e7db7fedcbeb7a928f22d173e154180acc199e081323d2f1cb23264bf31ac1bfc88494dc8 SHA512 df08a6bab33e27023316972e2496801cea4959faf403b5df8314fa45b4541cd1352583a44084bea130c1e3ca4ed86de032f7f96eeb915599f178e80976a68f7a
-EBUILD libpoly-0.1.11.ebuild 1420 BLAKE2B a06e8d45e5885b9f13d3cae64dbb4f0e8ce2b5b41c4168473e936109eddb5619baa41707be07ef7a8af0e4da178fba7de4840a1afdf498e51db3c4194c848ede SHA512 f61dda49c1f0a05e62cb4008d5b34b8ae6cdd0ec07be557cf76140e64350b88cacf12fc33494e7017d9064490ecb0049eb54dc4f94418328f0d7eb85a972e971
+EBUILD libpoly-0.1.11.ebuild 1421 BLAKE2B e051ed4f1cb76dd319f455e54f06c1603afe3fabf6de22c74b6d263b1bff63bc6c571dab755de7a50e7ce054bc56ea0e80b1b467cd48ae65bfe2386727ad593b SHA512 c482b290c9235643fc8e67a67d2ffd570b6c14cc5a4ad17c7ca366e0391556d5bfb06c4904cde7be4817faaee9f8ff2f11a47097cff5548433f21522c53fbd7d
MISC metadata.xml 757 BLAKE2B baf8c7cb139dff0a4fd382eee7583f5f921209ffcddcac77a85086bb5214bc24bc875343f4f4f363e3e72e8077361e2864419c05c28338df4e9dd80b5dc4ce97 SHA512 0d9b28c2900d806f2b4df86eb69e9a3c1491a564559d80fdf78fa77673634a1735a391beb89599caea26f3af1a22880cb91e0611297e9fa811e85495eb12ff02
diff --git a/sci-mathematics/libpoly/libpoly-0.1.11.ebuild b/sci-mathematics/libpoly/libpoly-0.1.11.ebuild
index f83360e390fa..53f135b36c03 100644
--- a/sci-mathematics/libpoly/libpoly-0.1.11.ebuild
+++ b/sci-mathematics/libpoly/libpoly-0.1.11.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{10..12} )
inherit python-single-r1 cmake
diff --git a/sci-mathematics/lrcalc/Manifest b/sci-mathematics/lrcalc/Manifest
index 868dd8aa8279..4a92b7173e1c 100644
--- a/sci-mathematics/lrcalc/Manifest
+++ b/sci-mathematics/lrcalc/Manifest
@@ -2,5 +2,5 @@ AUX lrcalc-1.2-includes.patch 1939 BLAKE2B 37dc25d9219899cf9cd6268038715b927af29
DIST lrcalc-1.2.tar.gz 363120 BLAKE2B d3f652abfe38e81331dcbac7068d087b198445bf02dc5ccb5bcbd76b9bbc329687209e6ccf40ecd09f166e7d2da054edd0e5c2b18503d8e4d961ae4ad91b5152 SHA512 699f4c2ddabe5879542d5c11f3df3979a4e009ad37741711a70fb48b4a0d4a7969e5bb110adb63d4473f3c2b61d1efdb7228a6b74c5dd7e1b5aea8cf1d170fab
DIST lrcalc-2.1.tar.gz 425484 BLAKE2B 3c9d33942f44f8f6cf29e1da36ad5072b49ea3dd949f8c3e96a2fd55deec566828736ccc1da0ef32e528b8f4967bedbd46ca84f144e022a6916451c02befccc3 SHA512 76db29af51fb97e582d37b92a426cacf85fd61b8e7c2a70dc99dec23b396d62d996f0c66b5bbbd8b6928b46fa1186c9bb3c28aa91646cdccd38bd9b783af44d7
EBUILD lrcalc-1.2.ebuild 593 BLAKE2B 33456aaa57db869fe0cd00927fd0211d92e16fa217c96e3ccd45b44a5d7e46ef7dc60745374a0a121e68d21c0dcca52b5a5106a1d4e6536a8dafb652187ba746 SHA512 e4a3fdee7cad675379290ff92a70ed6eab3b010e152cab96e637592af5d4d2d0af0b3de7984d42c1c870b2205cfad49ecaf81666e077a50e74473f52221b545f
-EBUILD lrcalc-2.1.ebuild 541 BLAKE2B 111b36945f1082eb9ec873d2e808f74dd01bc6825867b13a645782d9cef19fb35d29427e2f672608ab71a6b6b57dd7417d04ed1764be0ab25d21a7cae54b5d92 SHA512 2c85be357925bb4ec8be96f1d57f785a86a9769c6762dc7a3b1050416c3200635bc7224d923f91bb4f4c4e99ecbdf441ff9958a68f31e04fd24857110dce6c3c
+EBUILD lrcalc-2.1.ebuild 548 BLAKE2B 16f6c9c4ce8c559c79d184e5bc6f2b8fc6269697f97f0516ea874f89f67eec702121b8adec8a822762e032350cd6eb9aa4e8ec7e4660f6907661db9a0eb8c3b9 SHA512 4076ab442e8b1f2d94112935c33086103981fd39a4fabe069dd0a9f7e8643a5fba9f396bb91a7bc58c046c1521ae36da95a9f1e5ec51b1803e6f4d27e263226d
MISC metadata.xml 865 BLAKE2B 59342f149f6ceb01b00073fa2714c268337bffe50d01b81ea8cf10b865d8c51112714932c92ed18373efc18d81ebf4d75446a0ec26b8cf5c6188eeffcdd79aab SHA512 3198cfa61428c86100f0e646f21460600afef73f83343799a903d6d43d1084eae08b135d74c302daf6d37eabb686d2413016c11b0b7c1e15a3907dd2b58f5146
diff --git a/sci-mathematics/lrcalc/lrcalc-2.1.ebuild b/sci-mathematics/lrcalc/lrcalc-2.1.ebuild
index b4cdd85c2350..28d4099dfbe3 100644
--- a/sci-mathematics/lrcalc/lrcalc-2.1.ebuild
+++ b/sci-mathematics/lrcalc/lrcalc-2.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -9,7 +9,7 @@ SRC_URI="https://sites.math.rutgers.edu/~asbuch/lrcalc/${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0/2"
-KEYWORDS="amd64 ~x86 ~ppc-macos ~x64-macos"
+KEYWORDS="amd64 ~riscv ~x86 ~ppc-macos ~x64-macos"
IUSE="static-libs test"
RESTRICT="!test? ( test )"
diff --git a/sci-mathematics/mathematica/Manifest b/sci-mathematics/mathematica/Manifest
index b6ebbdab6d16..63594b61404d 100644
--- a/sci-mathematics/mathematica/Manifest
+++ b/sci-mathematics/mathematica/Manifest
@@ -8,6 +8,8 @@ DIST Mathematica_13.1.0_LINUX.sh 2032362325 BLAKE2B d044fe1ed3c71e6ebc2357c440af
DIST Mathematica_13.2.1_BNDL_LINUX.sh 5512713048 BLAKE2B 266a6979faab891c6fc10a1bc690ee21ad3af01413a2af29d81c27dffc92d8a10a2947aefe978dfcf16378e8f8f0d33145f99930840eeb2843d73270d2ad0de9 SHA512 2062b2ce7f6e7f33b8623607ef71475091b877112f03ffbc32671f513b71925aad8489f25e1b01ec75b5d4d7bee03bb2dc8b2627f767633de578ecae1d86b7f6
DIST Mathematica_13.3.1_BNDL_LINUX.sh 6072605531 BLAKE2B f9e6c218bef266fd9cb86905299f4074377c29270379cee24ad473bedc628bb30739ea2b00b333d3c7546775c9c9fbf95ebd2ff1fa075d9cce447a20279a0a6c SHA512 b40f4301d928fb760e0f1421df2dee78118edb9360afbf117049c93b3ee1a84975c3987bbef4483ff4f67c3f8d63c66081df71f6800dd259f8735ca062723d3f
DIST Mathematica_13.3.1_LINUX.sh 2057562969 BLAKE2B 9b76652135330b0b44027faad3703c1bf0dae3913416d2839e90582323291415fcbc7a59ca0bed152717a2e323d1b0f2ed2f46d700477b9574dec128ccaa8843 SHA512 cd470e1d171ab2df56b4d59fc9f156544217ea11c5e2d67683ca38c6a579cfebf4271bca7a52675fdab1d1d2d34a9b22410a93d95069a9008b2a377aae279201
+DIST Mathematica_14.0.0_BNDL_LINUX.sh 6362499931 BLAKE2B d5c4df6e556c970103f0736c72fb0b4419d41c19eb8c3887412c84c39446436279b3c1a2b8b5eb76158ddc4ae55d0131b90ef9f769f2350fdec4b93a1c44f69c SHA512 1c16369501a9a7e5e7864438a766ac89bbe5f20100eda6da2bb03120ab112acd55dda63b0c68a056c7899db0a1c8881e97bf31b7d58fa75a095b3b979347b4d5
+DIST Mathematica_14.0.0_LINUX.sh 2175783771 BLAKE2B ceb6e0d9ee8ef5c548c5dcf5d426ff1678c039a66da3936e69cadb91c24102163be253a63af528fedc37ce87f9fd2617958934479ed570955a14a2b2980d5a0e SHA512 83c02183e892a3a5a9b2b6db4010b763b50b30ac8d9417ceb1256b3dd7d78ecbad132b7fcd7c797a64536b64e5894f54341379c4c599420faff5857bd0f22390
DIST WLDocs_13.1.0_LINUX.sh 3546448755 BLAKE2B e5dbf6bf9cd60a313329df8591c281215039d7efa7c83a53f3b2d4e176765b62efae3ff04628ecf6905e76bbaf6867e87c96bd6188d13df2b981bea5a633335a SHA512 2107b37b30fc76974d040e746ca26ddb5df23bbacb9d8fabcd546a7cf789f1daaf70179c53890bed2385430665f601fbbc1f9829bf64f61068909ea8774f91d2
EBUILD mathematica-10.3.1-r1.ebuild 2821 BLAKE2B 958869840413f275d50272636693c776ac399cc14401d21d8709aab81ec23f396b0407618b787a4c04fe5a70327c604bef81735f6fcdeb8cbbaf6b74cf387172 SHA512 ac52970098b31e2e1a72d50dffc0db3cfe67c68eed8272b1d78febe5e47eb514b333c23a9c5f7030bb606f937106b5a237818d9ab829779533e33f5459d2aeb2
EBUILD mathematica-12.1.0.ebuild 3134 BLAKE2B 4a8f269cfb1d77dd941dfab8c56dc310306aea75fd6d676f2e79a1208420c25161afef7e253c101763d57a441480403580dbb62b31b420f6dbce3f7cfa786fc8 SHA512 cf14b8567a9dc6bd7f19447cb9d277c929084abf20bf073c4d9aa049e1795ddba0862f43340bfbb37d2633d84e7b5adfe4a3123554fd62bc55c018394177a2ee
@@ -18,4 +20,5 @@ EBUILD mathematica-13.0.1.ebuild 5421 BLAKE2B 27b1943495659b3bf64097f9f3c7ce7ab6
EBUILD mathematica-13.1.0.ebuild 7044 BLAKE2B 6411bceb04e19d939c7ac4287f37ecaf20add4cfb49edb4f4caac3ea1cd8eb706a59e42a60640002024f511036ab0f12b5ffd0caf02c9bf5627bb2c653e559ad SHA512 296c74dc0c2be909a1b029eae0a1fdab89f541443417d9e85a35d5623ae366300491c25f0a62208291870b540257d9ad7c8768b0aa6df9b8f7a4301ef3940d02
EBUILD mathematica-13.2.1.ebuild 6345 BLAKE2B bf34cf285d0bd5a60c4aa5987736f95a1b441f059a2d8f042a0245ed1265ef925e36cae9090d5c0d9e414ea2f573094f764f67c6657136541a4ace17666877c5 SHA512 2fe35f26f4c4066913088aec96b42cc4fb3a63b4cf101adea1fc191bd6ea9ed0cfa3d240be5a5750d348900dd4ba5efef752362c7b10808b612056b03ca6e951
EBUILD mathematica-13.3.1.ebuild 6888 BLAKE2B 7f5c1476cd54977b9adc085c3ac6a3d3220bf59ce9414b90a51e21bd616369725b97d6afd50d78f496b023ce52b18800bf1449995e8291f823f12f969a0fdece SHA512 d01c16ef26c730dda363df266f245a8e4b7c0897a9362ce565cfe7d90b088735df916a3bc214048da5fd1dc6fb036e8ef0c00d52168663cb99a121eb51c47d0b
+EBUILD mathematica-14.0.0.ebuild 6883 BLAKE2B 8051af45347c97e35a62d460c9afcca750de86166e7883694b36d5c9ae2fcd972bec27f3b6f5c2b6cae6747ccac213c9c8713980ff6a0d9cf5902b0a9e6c6391 SHA512 fb46fc9b0eb7ecf1f8a9b30035433a5ff1ee5e68f6c0790b364bc17f061fb2570644f22d342b84e39989c937a72e2e952583516db2df30796d402ac47e60c87a
MISC metadata.xml 1224 BLAKE2B 45915419ad562bc26b980e184cc74e04a092c00b38fe17ec81f6a62c7d0ac9616b844fbd8fc4eaa61eb7a2b62e920b482532956c45e18878ad357f435699e367 SHA512 7ebd5fd0f09a4468b5031d21085f7f1ea6fe1d0fc81ac942dbb11a0c62b7c4ff918636f53ea77e6fbe0c53733056b30c97409532955bddda0a93bb1a82d963c7
diff --git a/sci-mathematics/mathematica/mathematica-14.0.0.ebuild b/sci-mathematics/mathematica/mathematica-14.0.0.ebuild
new file mode 100644
index 000000000000..f75781884235
--- /dev/null
+++ b/sci-mathematics/mathematica/mathematica-14.0.0.ebuild
@@ -0,0 +1,191 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHECKREQS_DISK_BUILD=20G
+inherit check-reqs desktop unpacker xdg
+
+DESCRIPTION="Wolfram Mathematica"
+HOMEPAGE="https://www.wolfram.com/mathematica/"
+SRC_URI="
+ bundle? ( Mathematica_${PV}_BNDL_LINUX.sh )
+ !bundle? ( Mathematica_${PV}_LINUX.sh )
+"
+S="${WORKDIR}"
+
+LICENSE="all-rights-reserved"
+KEYWORDS="-* ~amd64"
+SLOT="0"
+IUSE="bundle cuda doc ffmpeg R"
+
+RESTRICT="strip mirror bindist fetch"
+
+# Mathematica comes with a lot of bundled stuff. We should place here only what we
+# explicitly override with LD_PRELOAD.
+# RLink (libjri.so) requires dev-lang/R
+# FFmpegTools (FFmpegToolsSystem-6.0.so) requires media-video/ffmpeg-6.0
+# FFmpegTools (FFmpegToolsSystem-4.4.so) requires media-video/ffmpeg-4.4
+RDEPEND="
+ dev-qt/qt5compat:6
+ dev-qt/qtbase:6[eglfs,wayland]
+ dev-qt/qtsvg:6
+ dev-qt/qtwayland:6[compositor]
+ media-libs/freetype
+ virtual/libcrypt
+ cuda? (
+ >=dev-util/nvidia-cuda-toolkit-11
+ <dev-util/nvidia-cuda-toolkit-13
+ )
+ ffmpeg? ( || (
+ media-video/ffmpeg:0/56.58.58
+ media-video/ffmpeg:0/58.60.60
+ ) )
+ R? ( dev-lang/R )
+"
+
+DEPEND="
+ ${RDEPEND}
+"
+
+BDEPEND="
+ dev-util/patchelf
+"
+
+# we need this a few times
+MPN="Mathematica"
+MPV=$(ver_cut 1-2)
+M_BINARIES="MathKernel Mathematica WolframKernel wolframscript math mathematica mcc wolfram"
+M_TARGET="opt/Wolfram/${MPN}/${MPV}"
+
+# we might as well list all files in all QA variables...
+QA_PREBUILT="opt/*"
+
+src_unpack() {
+ /bin/sh "${DISTDIR}/${A}" --nox11 --keep --target "${S}/unpack_app" -- "-help" || die
+}
+
+src_install() {
+ local ARCH='-x86-64'
+
+ pushd "${S}/unpack_app" > /dev/null || die
+ # fix ACCESS DENIED issue when installer generate desktop files
+ sed -e "s|xdg-desktop-icon|xdg-dummy-command|g" -i "Unix/Installer/MathInstaller" || die
+ sed -e "s|xdg-desktop-menu|xdg-dummy-command|g" -i "Unix/Installer/MathInstaller" || die
+ sed -e "s|xdg-icon-resource|xdg-dummy-command|g" -i "Unix/Installer/MathInstaller" || die
+ sed -e "s|xdg-mime|xdg-dummy-command|g" -i "Unix/Installer/MathInstaller" || die
+ # fix ACCESS DENIED issue when installer check the avahi-daemon
+ sed -e "s|avahi-daemon -c|true|g" -i "Unix/Installer/MathInstaller" || die
+ # fix ACCESS DENIED issue when installing documentation
+ sed -e "s|\(exec ./MathInstaller\) -noprompt|\1 -auto -targetdir=${S}/${M_TARGET}/Documentation -noexec|" -i "Unix/Installer/MathInstaller" || die
+
+ /bin/sh "Unix/Installer/MathInstaller" -auto "-targetdir=${S}/${M_TARGET}" "-execdir=${S}/opt/bin" || die
+ popd > /dev/null || die
+
+ if ! use doc; then
+ einfo "Removing documentation"
+ rm -r "${S}/${M_TARGET}/Documentation" || die
+ fi
+
+ # fix world writable file QA problem for files
+ while IFS= read -r -d '' i; do
+ chmod o-w "${i}" || die
+ done < <(find "${S}/${M_TARGET}" -type f -print0)
+
+ einfo 'Removing MacOS- and Windows-specific files'
+ find "${S}/${M_TARGET}" -type d -\( -name Windows -o -name Windows-x86-64 \
+ -o -name MacOSX -o -name MacOSX-x86-64 -o -name Macintosh -\) \
+ -exec rm -rv {} + || die
+
+ if ! use cuda; then
+ einfo 'Removing cuda support'
+ rm -r "${S}/${M_TARGET}/SystemFiles/Components/CUDACompileTools/LibraryResources/Linux-x86-64/CUDAExtensions"*.so || die
+ fi
+
+ # Linux-x86-64/AllVersions is the supported version, other versions remove
+ einfo 'Removing unsupported RLink versions'
+ rm -r "${S}/${M_TARGET}/SystemFiles/Links/RLink/SystemFiles/Libraries/Linux-x86-64/3.5.0" || die
+ rm -r "${S}/${M_TARGET}/SystemFiles/Links/RLink/SystemFiles/Libraries/Linux-x86-64/3.6.0" || die
+ rm -r "${S}/${M_TARGET}/SystemFiles/Links/RLink/SystemFiles/Libraries/MacOSX-ARM64" || die
+ # RLink can't use if R not used
+ if ! use R; then
+ einfo 'Removing RLink support'
+ rm -r "${S}/${M_TARGET}/SystemFiles/Links/RLink/SystemFiles/Libraries/Linux-x86-64/AllVersions/libjri.so" || die
+ fi
+ # FFmpegTools can't use if ffmpeg not used
+ if ! use ffmpeg; then
+ einfo 'Removing FFmpegTools support'
+ rm -r "${S}/${M_TARGET}/SystemFiles/Links/FFmpegTools/LibraryResources/Linux-x86-64/FFmpegToolsSystem"*.so || die
+ fi
+
+ # fix RPATH
+ while IFS= read -r -d '' i; do
+ # Use \x7fELF header to separate ELF executables and libraries
+ # Skip .o files and static files to avoid surprises
+ [[ $(od -t x1 -N 4 "${i}") == *"7f 45 4c 46"* ]] || continue
+ [[ -f "${i}" && "${i: -2}" != ".o" ]] || continue
+ [[ "$(file "${i}")" == *"dynamically"* ]] || continue
+ einfo "Fixing RPATH of ${i}"
+ patchelf --set-rpath \
+'/'"${M_TARGET}"'/SystemFiles/Libraries/Linux-x86-64:'\
+'/'"${M_TARGET}"'/SystemFiles/Libraries/Linux-x86-64/Qt/lib:'\
+'/'"${M_TARGET}"'/SystemFiles/Java/Linux-x86-64/lib:'\
+'/'"${M_TARGET}"'/SystemFiles/Java/Linux-x86-64/lib/jli:'\
+'$ORIGIN' "${i}" || \
+ die "patchelf failed on ${i}"
+ done < <(find "${S}/${M_TARGET}" -type f -print0)
+
+ # fix broken symbolic link
+ ln -sf "/${M_TARGET}/SystemFiles/Kernel/Binaries/Linux-x86-64/wolframscript" "${S}/${M_TARGET}/Executables/wolframscript" || die
+
+ # move all over
+ mv "${S}"/opt "${ED}"/opt || die
+
+ # the autogenerated symlinks point into sandbox, remove
+ rm "${ED}"/opt/bin/* || die
+
+ # install wrappers instead
+ for name in ${M_BINARIES} ; do
+ einfo "Generating wrapper for ${name}"
+ echo '#!/bin/sh' >> "${T}/${name}" || die
+ echo 'QT_QPA_PLATFORM="wayland;xcb"' >> "${T}/${name}" || die
+ echo "LD_PRELOAD=/usr/$(get_libdir)/libfreetype.so.6:/$(get_libdir)/libz.so.1:/$(get_libdir)/libcrypt.so.1 /${M_TARGET}/Executables/${name} \$*" \
+ >> "${T}/${name}" || die
+ dobin "${T}/${name}"
+ done
+ for name in ${M_BINARIES} ; do
+ einfo "Symlinking ${name} to /opt/bin"
+ dosym ../../usr/bin/${name} /opt/bin/${name}
+ done
+
+ # fix some embedded paths and install desktop files
+ for filename in $(find "${ED}/${M_TARGET}/SystemFiles/Installation" -name "wolfram-mathematica*.desktop") ; do
+ einfo "Fixing ${filename}"
+ sed -e "s|${S}||g" -e 's|^\t\t||g' -i "${filename}" || die
+ echo "Categories=Physics;Science;Engineering;2DGraphics;Graphics;" >> "${filename}" || die
+ domenu "${filename}"
+ done
+
+ # install icons
+ for iconsize in 16 32 64 128 256; do
+ local iconfile="${ED}/${M_TARGET}/SystemFiles/FrontEnd/SystemResources/X/App-${iconsize}.png"
+ if [ -e "${iconfile}" ]; then
+ newicon -s "${iconsize}" "${iconfile}" wolfram-mathematica.png
+ fi
+ done
+
+ # install mime types
+ insinto /usr/share/mime/application
+ for filename in $(find "${ED}/${M_TARGET}/SystemFiles/Installation" -name "application-*.xml"); do
+ basefilename=$(basename "${filename}")
+ mv "${filename}" "${T}/${basefilename#application-}" || die
+ doins "${T}/${basefilename#application-}"
+ done
+}
+
+pkg_nofetch() {
+ einfo "Please place the Wolfram Mathematica installation file ${SRC_URI}"
+ einfo "in your \$\{DISTDIR\}."
+ einfo "Note that to actually run and use Mathematica you need a valid license."
+ einfo "Wolfram provides time-limited evaluation licenses at ${HOMEPAGE}"
+}
diff --git a/sci-mathematics/mathlib-tools/Manifest b/sci-mathematics/mathlib-tools/Manifest
index 2f965035121e..2d6173c9e5fe 100644
--- a/sci-mathematics/mathlib-tools/Manifest
+++ b/sci-mathematics/mathlib-tools/Manifest
@@ -1,4 +1,4 @@
AUX mathlib-tools-1.3.2-pull-131.patch 3637 BLAKE2B bf7128554dc0727c80a754081aca5fe75e5df33e1429b9b94243884209049cab57f32139c8149732a4e6bf6eb4c58b60d7adcbd100fa4d65de7c265a9d54eaee SHA512 d222078b011f3169f0fbdbc6a05a7d9593209ded23a407b9998b5f572b308d9064fec1767a26013997ca882d4f51bae9938661efd548270efdbbe8099d770151
DIST mathlib-tools-1.3.2_p1.gh.tar.gz 36686 BLAKE2B 0120e64821c183e368a4ca7d7122146637b933c9f56279c15716c825ac6e0e20d19f8ece731ee5c4114b7c221e84b53d3b89fcc0268529cbd1f2ad3328ac7847 SHA512 7b3c5a8aea19a4c7df366c71baa19e3d8ab6a0a6b387973ed37aecf3003361f298b85a4deecc8a4fcb6a2003f666c503fd66cde986e412003d439d48345afbc7
-EBUILD mathlib-tools-1.3.2_p1.ebuild 1404 BLAKE2B a3a1309621fb82e4eb394febf917ff9aae42c1ef2d428dc62d1e3dae10c1f0085af5533571168d53066584b011c6b1efcb1b8c8ac525c6f97f23db87183f6fa4 SHA512 cc011704fba9ed8a1dba3756148a2823ba263e28c10cc3877411512dc2d7c70e18f1dbba1a791de9176d8ffac13eea713b2baa5a4caa76fdd40a2a71b4fd2bc5
+EBUILD mathlib-tools-1.3.2_p1.ebuild 1404 BLAKE2B e70a07ce21baa1be145fa50a4cbad0a133863a44c6301f043d0af248d5c20baf616fdd2a38fb5cdcf78ab21443b219dc47a9de93362e73ef3f468457d7bf75f2 SHA512 570eeebd326f46eb4fb17e39126f038f2da7fc2567fa537db2b3da65cf0fc72e54600a5015aeb555d3a1845480c59143d6ce0611dece30987d1ce2077bdcd81b
MISC metadata.xml 845 BLAKE2B 8d01442128f49f1c8c0c29cf4469d775936149cdde77d7e96a6825bc631119a4e83932bc67f9e60781128f0c179ef7e622edcc9836d7fb3f4240b356e92caf8b SHA512 8add0a2a70e219d5581ef7fdcd0125ab1375c65d631093df02559e462974b07cef0bf1fe75919707be026b91e77131b24d3b197a5c332961c6a573ddf899c939
diff --git a/sci-mathematics/mathlib-tools/mathlib-tools-1.3.2_p1.ebuild b/sci-mathematics/mathlib-tools/mathlib-tools-1.3.2_p1.ebuild
index c18adafa5977..ff507d91bc0b 100644
--- a/sci-mathematics/mathlib-tools/mathlib-tools-1.3.2_p1.ebuild
+++ b/sci-mathematics/mathlib-tools/mathlib-tools-1.3.2_p1.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
diff --git a/sci-mathematics/mathmod/Manifest b/sci-mathematics/mathmod/Manifest
index 4b80cbee8f93..9e9461e3d287 100644
--- a/sci-mathematics/mathmod/Manifest
+++ b/sci-mathematics/mathmod/Manifest
@@ -1,3 +1,3 @@
-DIST mathmod-4.1.src.zip 974709 BLAKE2B f7fa5579b670b2512eab4fd7b706a0ca2282fb63356ea44ea2ddc6204b73ae2b7cd6f837d7622ebf0e51ba2b0127437b1836b59780df6c4b8e704fcb92e8680e SHA512 e7a170f5b57384cca4e755a0bb3691ec3fe29e9b22027534f1e84ed656905495c70eea8c69262f31a937ca508c34177d33adc23f5a8a3c91db1eceb2aa283a6d
-EBUILD mathmod-4.1-r1.ebuild 1075 BLAKE2B 6158857a1a07f9c95d7739fda3af1e49c6e2a9d54a1d1f8f1c2f377e36f66d320b90585e7920cb5b56cc48e2444fb0aeabe36d5c8cecc1a5ac0c614281d129a2 SHA512 9f65d0014e99e6fd3b0bcd56ba07c8b060b433f09a5390ac23ea7e3af1baf211d7eb71a5dcaa95e875ca93c28ecbd24918b1520a8896e71793eacb6d8703e7f2
-MISC metadata.xml 684 BLAKE2B e50783402f79d0390edd2d617e006a31174c889231e16445baa80beaaa68e3bd3e97cbade9f1e5a9e7f6f4cc11e6118608eb948241abf01e518ae9beb0017710 SHA512 298c94aeb31d7a6c8fe4498337af9aaf2ea12f53149577b93077c032a17b7c1c67e70ad3a9f3ec53d4338f472c2e16610fdf1f633009503ef1069993ca3f9958
+DIST mathmod-11.1.tar.gz 7934535 BLAKE2B ccb5ba1ee74b0e6f2d605bf76f107ce43f695f2dc81fe0ef8498fdb29978f3da214178ed433eea9536f3ee801c24887988e0c1064833a6a1069e0349fb209a05 SHA512 50485094a5c0f08077a27215d4189ba28085ad9d6cc3323043955d63723271adf80ba2c8a75afd0b50ea7443a55f5d4efd8f8d5eae32a9c0718450784ff728ab
+EBUILD mathmod-11.1.ebuild 987 BLAKE2B 8a268805b9c413c0b30016636d76b6027ee4062fd7e05b25971bac1c4c1c087031dbb4032e1867dfa83d21e0fd4ebedb8513dd8135adec30da35aa455bbaef81 SHA512 61e29fcea7f87dd831de30bfc9afc496dc007ba9bcca9645d3aa671ebeaffc0322aadd71d6f6bfa73e82912fe656d396bf77b848065bbecf1984943a1706b582
+MISC metadata.xml 741 BLAKE2B a4c1d87fbd5b528cd93a9b3d0ce7464ff635965d6a981dfd65421e3407110c10bf9211293a2494329ad281f9f3672df96096b9adab73c8187665dd270032b3d6 SHA512 a904fbfac085f23da922b771c775206aae44a0d78e0fb4aa91812c9643b0ac22c9b9cb7458e6cdaa6a10311d3c8b179aa091dead0474129839a535fb6c8e28de
diff --git a/sci-mathematics/mathmod/mathmod-11.1.ebuild b/sci-mathematics/mathmod/mathmod-11.1.ebuild
new file mode 100644
index 000000000000..54833f046640
--- /dev/null
+++ b/sci-mathematics/mathmod/mathmod-11.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop qmake-utils xdg
+
+DESCRIPTION="Plot parametric and implicit surfaces"
+HOMEPAGE="https://github.com/parisolab/mathmod
+ https://sourceforge.net/projects/mathmod/
+ https://www.facebook.com/parisolab"
+SRC_URI="https://github.com/parisolab/mathmod/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+ GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtopengl:5
+ dev-qt/qtwidgets:5"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ eqmake5 MathMod.pro
+}
+
+src_install() {
+ exeinto /usr/bin
+ doexe MathMod
+ insinto /usr/share/${P}
+ doins mathmodconfig.js mathmodcollection.js advancedmodels.js
+ newicon -s 16 images/icon/catenoid_mini_16x16.png catenoid.png
+ newicon -s 32 images/icon/catenoid_mini_32x32.png catenoid.png
+ newicon -s 64 images/icon/catenoid_mini_64x64.png catenoid.png
+ make_desktop_entry MathMod MathMod catenoid
+}
diff --git a/sci-mathematics/mathmod/mathmod-4.1-r1.ebuild b/sci-mathematics/mathmod/mathmod-4.1-r1.ebuild
deleted file mode 100644
index bd7f4940e4e2..000000000000
--- a/sci-mathematics/mathmod/mathmod-4.1-r1.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit desktop qmake-utils xdg-utils
-
-DESCRIPTION="Plot parametric and implicit surfaces"
-HOMEPAGE="https://www.facebook.com/pages/MathMod/529510253833102"
-SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.src.zip"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-RDEPEND="
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- dev-qt/qtopengl:5
- dev-qt/qtwidgets:5"
-DEPEND="${RDEPEND}"
-
-S="${WORKDIR}"/${PN}-branches-274-trunk
-
-src_configure() {
- eqmake5 MathMod.pro
-}
-
-src_install() {
- exeinto /usr/bin
- doexe MathMod
- insinto /usr/share/${P}
- doins mathmodconfig.js mathmodcollection.js advancedmodels.js
- newicon -s 16 icon/catenoid_mini_16x16.png catenoid.png
- newicon -s 32 icon/catenoid_mini_32x32.png catenoid.png
- newicon -s 64 icon/catenoid_mini_64x64.png catenoid.png
- make_desktop_entry MathMod MathMod catenoid
-}
-
-pkg_postinst() {
- xdg_icon_cache_update
- xdg_desktop_database_update
-}
-
-pkg_postrm() {
- xdg_icon_cache_update
- xdg_desktop_database_update
-}
diff --git a/sci-mathematics/mathmod/metadata.xml b/sci-mathematics/mathmod/metadata.xml
index 15e285da2df2..2198e5722238 100644
--- a/sci-mathematics/mathmod/metadata.xml
+++ b/sci-mathematics/mathmod/metadata.xml
@@ -14,5 +14,6 @@
</longdescription>
<upstream>
<remote-id type="sourceforge">mathmod</remote-id>
+ <remote-id type="github">parisolab/mathmod</remote-id>
</upstream>
</pkgmetadata>
diff --git a/sci-mathematics/maxima/Manifest b/sci-mathematics/maxima/Manifest
index b6c05774ad55..c2ab55e11ffa 100644
--- a/sci-mathematics/maxima/Manifest
+++ b/sci-mathematics/maxima/Manifest
@@ -11,5 +11,6 @@ AUX xdg-utils-1.patch 1313 BLAKE2B 35d6f88c505c5b1bb5ecf5691e17522b427a3f035f64d
DIST maxima-5.46.0.tar.gz 47492457 BLAKE2B 3d709c1647357477ef8c92ce1f3b0789664fcd86ebe16cf68a89b84c019cb30bc4896409fbe5236bb4dbb25cf972c17cf612c602e57c4c6100b2d86737715f48 SHA512 6c76292ac270b9d8e91d13035733d12038a69ef3510e70a28793b6116208eccd7bf6387e246e9e8c0a22a2e793b948f1233a56fc863ad8712a35e5b1b92fbeef
DIST maxima-5.47.0.tar.gz 47939891 BLAKE2B 46f97c81ff8fd227d04759103ac683c034820e29b7ecd78ad76e3a43a8911d29d1a20007fe4ccb37da88eaa3888d71c8b98a55bc4e692cf72b154391e91a4533 SHA512 953b98336eb086069edaa917981372450ce165dedd7a7b39b181d3f2d8b089551eea943e0084148eaa3ded395dcba9135509d3d11d9132ab7a3ad8bb800d3a11
EBUILD maxima-5.46.0-r1.ebuild 5974 BLAKE2B 9aef857cef47f34df04e8f7e71a54794b639702f26eb821cf135c069fb675e698f52964481d3110ce9f32f942b5471ca15af70291c7b88abc967b3245151b031 SHA512 3bd2bf13c89c947adf73affa5d81fefae8b159acdd53cfe20ac500e59b5c1e98e14e395fc5bdb4a41771ace0eea5ac3f00b96b223a9b549ed58a32dd0a263570
+EBUILD maxima-5.47.0-r1.ebuild 6338 BLAKE2B d47663de5c741caccc40537a007e7f34ad37470a00418fa41e00b79c15d2be85e2df7bc70b0dc14c1794575c3410abe98b7baacf5c7c13b0ed13b1418f6763fd SHA512 b3b5d3348adef965166a60834b1df0fcf6fbfc1946dd155667e9a0f3481f58007bbf3ed864a69f8ef9396a029ae26f14d223bcdd09fec6e6b6998080fbdc4e70
EBUILD maxima-5.47.0.ebuild 6331 BLAKE2B 4ad1b4e3e7b221aac27e14f0181fb808c76fe3c2b1d3074edd33859966fd52c7af45273dfb84970f54737b389657fa7bf76312e2bd8719cf3eea6a0768a68161 SHA512 acb2aa6e17801e0b42a19abe980f5a2b80556140023a5a338fcea6e957da3ac2a6f31458ebfe8e471dcf761abd327c926d65f8885e510978c05364f940aa6643
MISC metadata.xml 1841 BLAKE2B 278e5b8e1485d3b955649fffb8ff97ba0e7ad20ab9175308313e601891a3e4c99a7d28f79dfbc8d135647056b456eb20b2035b4de3f34f5fb865a80ce4bb0e99 SHA512 f3ef4ffbfb2b200bd8567407974010de112f0fb82395cb07d7f82b4970bc9d52d91aedd8ee190706b6e9611f8d69d76ff12f89806579ab9436c51155781d88d0
diff --git a/sci-mathematics/maxima/maxima-5.47.0-r1.ebuild b/sci-mathematics/maxima/maxima-5.47.0-r1.ebuild
new file mode 100644
index 000000000000..21d00f97a4f7
--- /dev/null
+++ b/sci-mathematics/maxima/maxima-5.47.0-r1.ebuild
@@ -0,0 +1,233 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+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 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
+
+ # 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/nauty/Manifest b/sci-mathematics/nauty/Manifest
index 010d0cd72d61..1ad9a2eaf2c3 100644
--- a/sci-mathematics/nauty/Manifest
+++ b/sci-mathematics/nauty/Manifest
@@ -2,6 +2,5 @@ AUX nauty-2.8.8-autoconf-2.72.patch 1714 BLAKE2B 5ed587d4f8f5f30b1d07e318ffd8364
DIST nauty-includes.patch 2530 BLAKE2B 8789bc2f65b89aa3bbf27e517f1c56340f9bde089ef54aa28757c66c3954b5c54e8a09b6989ad8d57098970240dd1838baa0003766fe10c7f6c32041abf461e3 SHA512 d11f530fecb86edc9e95f0b4d91240778047c0e84d6259c80490358baf0a3eeaa112acfe1fcdb594da6c6e17855f5e21cb75c88446b8d6d9e96402be0e5e6af2
DIST nauty2_8_8.tar.gz 2302360 BLAKE2B 4a37b345b239de11948d180f306e984dfec4aa26eb2720d0f0f09acd120a60b4f678375baa10d3f64f3e2f501c35cbfa58e10fc44252eb7b952a1592727a3b7f SHA512 c0495256b92b0742e7f0a3ad8b43f400e7b4bc4b58dff560e7d0a868f392b0462424566b8ebba5ec08499551eab091b6a8e2c0ddba4953ab7592906034812c18
DIST nauty_2.8.8+ds-1.debian.tar.xz 65176 BLAKE2B 3615819098169caf1648271c0725e146c87ab794776c02f5bd77b7092a2c1d9b93d663ef4a9cf027fda956d40f24bb99a909f89a4564b99429b67f781d39cfc2 SHA512 f81aa3c4a142c4efa5ce97c241f95cba9916d49f02c2b3dfbd76227f2db20ec5e2a3ebe371c5748681fc3492df9ff9bca2456d76e1c70e435aa5baf1522391d5
-EBUILD nauty-2.8.8-r1.ebuild 1996 BLAKE2B 6bb3ffca7159e075771ad6b7df4a41232559722a25795c18ee61ae16e9d2a8f0e736afa7f0e27982e4fbcac492c3e8750fade975874ab409a0516cf8d47cdbd7 SHA512 fc0609e09cb8d7c52f64e0e0decd2292f4ca02d0dd6e4f34c25878111e682a4e84876f81a0088f400eeafc0ca9b6fc1f96231c689cef3e80f31c3b192995a38b
-EBUILD nauty-2.8.8.ebuild 1955 BLAKE2B 44fdce9e00cc86fa9f2b31fbf3119ddcc29366dcd7d6e3c54b261dc185d780b3f3ca0d6ad8906e1bc260a385109b7738f990b413b9ef41513674dde6ecb1bf60 SHA512 f8c27dc70c207669eb8b9efb7caa38d7d7144e54e3fe192a8bc416469c2d904c4e22c81a808fb8400cacd1188f004467086c80b495a24e95486dbb64cd44711d
+EBUILD nauty-2.8.8-r1.ebuild 1995 BLAKE2B b42fc2a4a7bbadd7c65881e97f307c4d058507f2288969ece6eadb0e5ab8d9be784c1a9c086cbf84659ea8e1e3b6001bde1438cd5b459d2f667399b501f0b5ff SHA512 00aa1d4d4ca7ce88f443d940616a30f94721cea4187134ebfe5f9222e0c3393a233f97154085daf99d636ed0280d7a84d51a98f9e2a83fcd0f093201a9038751
MISC metadata.xml 554 BLAKE2B a6fbface4e867c9299680da9d2fefce4194771220489b4d9a81d295bbf1a8048fe1bf23e3c3225501a18b23af8a7daea3533f8a7c250afc7f9a4bbbf60fc8efd SHA512 c7b67c8516b9bad6cd9f60a54b3b3a4974a72e81071f53cd6562a5bea2e2b8ae990119e4391615dd3b2e30282bf70924c4f2f4b5ccd3dcf1cb7399e7de189387
diff --git a/sci-mathematics/nauty/nauty-2.8.8-r1.ebuild b/sci-mathematics/nauty/nauty-2.8.8-r1.ebuild
index af2ba2a10de8..da25e0fbbb54 100644
--- a/sci-mathematics/nauty/nauty-2.8.8-r1.ebuild
+++ b/sci-mathematics/nauty/nauty-2.8.8-r1.ebuild
@@ -15,9 +15,11 @@ SRC_URI="https://pallini.di.uniroma1.it/${PN}${MY_PV}.tar.gz
mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}+ds-${DEBIAN_PATCH_VERSION}.debian.tar.xz
https://src.fedoraproject.org/rpms/nauty/raw/rawhide/f/nauty-includes.patch"
+S="${WORKDIR}/${PN}${MY_PV}"
+
LICENSE="Apache-2.0"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~riscv ~x86"
+KEYWORDS="amd64 ~arm ~riscv ~x86"
IUSE="cpu_flags_x86_popcnt examples"
BDEPEND="sys-apps/help2man"
@@ -26,8 +28,6 @@ DEPEND="dev-libs/gmp:0
sci-mathematics/cliquer"
RDEPEND="${DEPEND}"
-S="${WORKDIR}/${PN}${MY_PV}"
-
DOCS=( schreier.txt formats.txt changes24-28.txt )
PATCHES=(
diff --git a/sci-mathematics/nauty/nauty-2.8.8.ebuild b/sci-mathematics/nauty/nauty-2.8.8.ebuild
deleted file mode 100644
index 6651ae996063..000000000000
--- a/sci-mathematics/nauty/nauty-2.8.8.ebuild
+++ /dev/null
@@ -1,79 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit autotools
-
-MY_PV=${PV//./_}
-DEBIAN_PATCH_VERSION=1
-
-DESCRIPTION="Computing automorphism groups of graphs and digraphs"
-HOMEPAGE="https://pallini.di.uniroma1.it/"
-
-SRC_URI="https://pallini.di.uniroma1.it/${PN}${MY_PV}.tar.gz
- mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}+ds-${DEBIAN_PATCH_VERSION}.debian.tar.xz
- https://src.fedoraproject.org/rpms/nauty/raw/rawhide/f/nauty-includes.patch"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="amd64 ~arm ~riscv ~x86"
-IUSE="cpu_flags_x86_popcnt examples"
-
-BDEPEND="sys-apps/help2man"
-DEPEND="dev-libs/gmp:0
- sys-libs/zlib
- sci-mathematics/cliquer"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/${PN}${MY_PV}"
-
-DOCS=( schreier.txt formats.txt changes24-28.txt )
-
-PATCHES=(
- "${WORKDIR}/debian/patches/upstream-fix-gt_numorbits.patch"
- "${WORKDIR}/debian/patches/upstream-zlib-dimacs2g.patch"
- "${WORKDIR}/debian/patches/upstream-C2help2man.patch"
- "${WORKDIR}/debian/patches/upstream-autotoolization.patch"
- "${DISTDIR}/nauty-includes.patch"
- "${WORKDIR}/debian/patches/unbundle-cliquer.patch"
- "${WORKDIR}/debian/patches/format.patch"
- "${WORKDIR}/debian/patches/uninitialized.patch"
- "${WORKDIR}/debian/patches/fall-off.patch"
- "${WORKDIR}/debian/patches/noreturn.patch"
-)
-
-src_prepare() {
- default
- rm makefile || die
-
- # The debian patch looks for <cliquer.h>, but the autotools-form of
- # cliquer installs that header as <cliquer/cliquer.h>.
- sed -e 's~<cliquer\.h>~<cliquer/cliquer\.h>~' -i nautycliquer.h || die
-
- eautoreconf
-}
-
-src_configure() {
- econf --disable-static \
- --enable-tls \
- --enable-generic \
- $(use_enable cpu_flags_x86_popcnt popcnt)
-}
-
-src_test() {
- # It arrives non-executable in v2.8.8.
- chmod +x runalltests || die
- default
-}
-
-src_install() {
- default
-
- if use examples; then
- docinto examples
- dodoc nautyex*.c
- fi
-
- find "${ED}" -name '*.la' -delete || die
-}
diff --git a/sci-mathematics/octave/Manifest b/sci-mathematics/octave/Manifest
index 5e63c88061d4..90688cabaa1d 100644
--- a/sci-mathematics/octave/Manifest
+++ b/sci-mathematics/octave/Manifest
@@ -1,5 +1,7 @@
AUX octave-5.1.0-pkgbuilddir.patch 1565 BLAKE2B 7b2968139e080aaa20b5372b400ac84c1754296767834011bcdda5258e7859c48ffaedcade17e8b23e2d23635a546c6a726061e8b4679913ff5b204a26cd0ef4 SHA512 28dcebc3a904cf048cb0568591c6c55616d40f6ca80982a232489a51ec92505dca186043ee3750d8a3f3782149ef1861332a8486466fba2898f0084adf0acb90
AUX octave-6.4.0-omit-qtchooser-qtver.patch 765 BLAKE2B 2f889e8278e48489f2eab1c399b0bf7af26be7f79e35c29fc2963124852067429f7ee25325402ad6983c047398a5c43c2d9f44d3a96e5c3db49282f826ecab82 SHA512 a1edd69d06aadd5c9772b12f32468bcd25b181883d3c303cd5ff58175e95021ed661d363137002a50073ec9c90564442c8b968ea1a3ad6fe56a80cf27e2efc3a
DIST octave-8.3.0.tar.xz 26970776 BLAKE2B 8c7241ff6bd5b23244edb47e74753ddf867139280b899b16ae2cab91c30a73ebdcf471d032ee47bddb67f8c7f5c772a23f4a832cadcca7ada01468b84e451ad4 SHA512 b7c8724ca8376783e8563c2050c2d9219309e559116e5cba0fdc9f50780782ff4cc98d382bdbe26055aebffb6be99b110033c682f661a3966ea1b1ddb12d4ac3
+DIST octave-9.2.0.tar.xz 27425184 BLAKE2B 55480201037871d878090972bf89d5ff43508276f41e77accdd16b752758775e883fe3875d19ea4fc2b33cf8a9a9f39684f05c85e027ca53ee2cdfda6c6bae72 SHA512 cb1667cd6557d48ecd7ae191bc44c9b9fd4f79e7cf4bf6c917093d120c4312e9594e6dddc5287661627ac053e9f23faaec40a1286d792d859f1fefbfdb3eeb8c
EBUILD octave-8.3.0-r2.ebuild 6663 BLAKE2B 5f6f2910ba98c2c42d7c34000e847ff91724f4ee80b9114d0943a2bb4b9cbd9a6dd10a42a3c62e337da3e4ab46db9a406477df696dcf9ad0916d383e604637ac SHA512 41743cce406d7b1721265daf7741ca93160e6ddf349f6bf1c3fdca19f5f97eb20b9419ffca00149f5b1907a95ea4432449d6dd8df1dd56cd448d1d4edf052d36
-MISC metadata.xml 1703 BLAKE2B 0471bc1eeaa2ce86b8eeca5c3e831eb0d9207b5fd1d3c03aba017a257b7b98b313c42a1054471c79dab1b5d2d84df8a8d3b0ee68e772cbe6970ac92f07dc3269 SHA512 3c051ff80c958af4315faa1670cc5e1d6a53397b4182304b760cf4f2e14f716e187dd76879d094e35713ac115c47ea623530c2f4b114f7bf2eae1cdf28bc46b8
+EBUILD octave-9.2.0-r1.ebuild 5890 BLAKE2B 403311ace4b06ca2e591f9bddcb2695e274915450ac1b9b6c962f187e4762897dda3394e4bbaf47141e843de5f51548d70ea358e5b68791425fed1439c45e4f8 SHA512 6fbe23c21c4097958b9323d3eeb2c06ecff0be9fdb0e80ced27ef10285d918f70ea7be85d10e3250b6d477d530e89cf589d3b3896ee60b942bbe85ea5042f864
+MISC metadata.xml 1854 BLAKE2B ee33484f1699643fb9f4ec26f6114872790348c60cee59c0c8aea31e46c12bb3bc4a42957e1fd68892490aff7054a7a3554f7c6ebfc24c3cc035da58e4a05d55 SHA512 f5f057a9922c9eb36808bbb7226a36a2748268f1d4d44aad413cea2976101e728abf18c17eb5e53f9a734e40d1e26b19ec192635925f93831b13e641a5544a4a
diff --git a/sci-mathematics/octave/metadata.xml b/sci-mathematics/octave/metadata.xml
index 72d5085bcfb1..af1bd5973c10 100644
--- a/sci-mathematics/octave/metadata.xml
+++ b/sci-mathematics/octave/metadata.xml
@@ -14,9 +14,11 @@
<flag name="gnuplot">Use <pkg>sci-visualization/gnuplot</pkg> to render plots if OpenGL is unavailable</flag>
<flag name="imagemagick">Use <pkg>media-gfx/graphicsmagick</pkg> to read and write images</flag>
<flag name="json">Allow using jsonencode and jsondecode commands via <pkg>dev-libs/rapidjson</pkg></flag>
+ <flag name="klu">Add support for KLU (<pkg>sci-libs/klu</pkg>)</flag>
<flag name="qhull">Add support for <pkg>media-libs/qhull</pkg>, to allow `delaunay', `convhull', and related functions</flag>
<flag name="qrupdate">Add support for <pkg>sci-libs/qrupdate</pkg>for QR and Cholesky update functions</flag>
<flag name="sparse">Add enhanced support for sparse matrix algebra with SuiteSparse</flag>
+ <flag name="spqr">Add support for SPQR (<pkg>sci-libs/spqr</pkg>)</flag>
<flag name="sundials">Enable the ode15i and ode15s ODE solvers using <pkg>sci-libs/sundials</pkg></flag>
</use>
<upstream>
diff --git a/sci-mathematics/octave/octave-9.2.0-r1.ebuild b/sci-mathematics/octave/octave-9.2.0-r1.ebuild
new file mode 100644
index 000000000000..c0305336a4ae
--- /dev/null
+++ b/sci-mathematics/octave/octave-9.2.0-r1.ebuild
@@ -0,0 +1,220 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools flag-o-matic fortran-2 java-pkg-opt-2 pax-utils qmake-utils toolchain-funcs xdg
+
+DESCRIPTION="High-level interactive language for numerical computations"
+HOMEPAGE="https://www.gnu.org/software/octave/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+
+IUSE="curl doc fftw +glpk gnuplot gui hdf5 imagemagick java json klu portaudio postscript +qhull +qrupdate readline sndfile +sparse spqr ssl sundials zlib"
+
+# Although it is listed in INSTALL.OCTAVE as a build tool, Octave runs
+# "makeinfo" from sys-apps/texinfo at runtime to convert its texinfo
+# documentation to text (see scripts/help/help.m).
+#
+# (un)zip isn't mentioned, but there's a test that uses it (bug #775254).
+#
+# The use of USE=imagemagick to pull in media-gfx/graphicsmagick is not
+# ideal, but both "graphicsmagick" and "imagemagick" are global USE
+# flags whose existing descriptions conflict with the obvious way we
+# would want to use them in octave. In any case, upstream doesn't really
+# support imagemagick, only graphicsmagick (bug 864785).
+COMMON_DEPS="
+ app-arch/bzip2
+ app-arch/unzip
+ app-arch/zip
+ app-text/ghostscript-gpl
+ sys-apps/texinfo
+ dev-libs/libpcre2
+ sys-libs/ncurses:=
+ sys-libs/zlib
+ virtual/blas
+ virtual/lapack
+ curl? ( net-misc/curl:= )
+ fftw? ( sci-libs/fftw:3.0= )
+ glpk? ( sci-mathematics/glpk:= )
+ gnuplot? ( sci-visualization/gnuplot )
+ hdf5? ( sci-libs/hdf5:= )
+ imagemagick? ( media-gfx/graphicsmagick:=[cxx] )
+ json? ( dev-libs/rapidjson )
+ klu? ( sci-libs/klu:= )
+ portaudio? ( media-libs/portaudio )
+ postscript? (
+ app-text/epstool
+ media-gfx/pstoedit
+ >=media-gfx/fig2dev-3.2.9-r1
+ )
+ gui? (
+ dev-qt/qt5compat:6
+ dev-qt/qtbase:6[gui,opengl,network,widgets]
+ media-libs/fontconfig:=
+ media-libs/freetype:=
+ virtual/glu
+ x11-libs/gl2ps:=
+ x11-libs/libX11:=
+ x11-libs/qscintilla:=[qt6]
+ )
+ qhull? ( media-libs/qhull:= )
+ qrupdate? ( sci-libs/qrupdate:= )
+ readline? ( sys-libs/readline:= )
+ sndfile? ( media-libs/libsndfile )
+ sparse? (
+ sci-libs/arpack:=
+ sci-libs/camd:=
+ sci-libs/ccolamd:=
+ sci-libs/cholmod:=
+ sci-libs/colamd:=
+ sci-libs/cxsparse:=
+ sci-libs/umfpack:=
+ )
+ spqr? ( sci-libs/spqr:= )
+ ssl? ( dev-libs/openssl:= )
+ sundials? (
+ klu? ( >=sci-libs/sundials-4:=[sparse] )
+ !klu? ( >=sci-libs/sundials-4:= )
+ )
+"
+RDEPEND="${COMMON_DEPS}
+ java? ( >=virtual/jre-1.8:* )"
+DEPEND="${COMMON_DEPS}
+ java? ( >=virtual/jdk-1.8:* )"
+BDEPEND="
+ dev-util/gperf
+ virtual/pkgconfig
+ doc? (
+ dev-texlive/texlive-fontsrecommended
+ dev-texlive/texlive-plaingeneric
+ dev-texlive/texlive-metapost
+ virtual/latex-base
+ )
+ gui? (
+ dev-qt/qttools:6[linguist]
+ doc? ( dev-qt/qttools:6[assistant] )
+ )
+ qrupdate? ( app-misc/pax-utils )
+ sparse? ( app-misc/pax-utils )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-5.1.0-pkgbuilddir.patch
+)
+
+src_prepare() {
+ default
+
+ # occasional fail on install, force regeneration (bug #401189)
+ rm doc/interpreter/contributors.texi || die
+
+ eautoreconf
+}
+
+src_configure() {
+ # libstdc++ bug, bug #887815
+ append-cxxflags -U_GLIBCXX_ASSERTIONS
+
+ # Unfortunate dependency on mpi from hdf5 (bug #302621)
+ use hdf5 && has_version sci-libs/hdf5[mpi] && \
+ export CXX=mpicxx CC=mpicc FC=mpif77 F77=mpif77
+
+ # Some of these use_with flags are a bit mismatched. The configure
+ # script offers only --without-foo, and detects "foo" automatically
+ # unless --without-foo is specified. Passing --with-foo is not an
+ # error, however, so it kind of works. We wind up with, for example,
+ #
+ # --with-sundials_ida (no-op) with USE="sundials"
+ # --without-sundials_ida (disables it) with USE="-sundials"
+ #
+ local myeconfargs=(
+ --localstatedir="${EPREFIX}/var/state/octave"
+ --with-blas="$($(tc-getPKG_CONFIG) --libs blas)"
+ --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)"
+ --disable-64
+ --enable-shared
+ --with-z
+ --with-bz2
+ --without-fltk
+
+ # bug #901965
+ --without-libiconv-prefix
+ --without-libreadline-prefix
+
+ $(use_enable doc docs)
+ $(use_enable java)
+ $(use_enable json rapidjson)
+ $(use_enable readline)
+ $(use_with curl)
+ $(use_with fftw fftw3)
+ $(use_with fftw fftw3f)
+ $(use_enable fftw fftw-threads)
+ $(use_with glpk)
+ $(use_with gui opengl)
+ $(use_with gui qt 6)
+ $(use_with gui x)
+ $(use_with hdf5)
+ $(use_with imagemagick magick GraphicsMagick++)
+ $(use_with klu)
+ $(use_with portaudio)
+ $(use_with qhull qhull_r)
+ $(use_with qrupdate)
+ $(use_with sndfile)
+ $(use_with sparse arpack)
+ $(use_with sparse umfpack)
+ $(use_with sparse colamd)
+ $(use_with sparse ccolamd)
+ $(use_with sparse cholmod)
+ $(use_with sparse cxsparse)
+ $(use_with spqr)
+ $(use_with ssl openssl)
+ $(use_with sundials sundials_ida)
+ $(use_with sundials sundials_nvecserial)
+ )
+
+ # Tell autoconf where to find qt binaries, fix bug #837752
+ if use gui ; then
+ export MOC="$(qt6_get_bindir)/../libexec/moc" \
+ UIC="$(qt6_get_bindir)/../libexec/uic" \
+ RCC="$(qt6_get_bindir)/../libexec/rcc" \
+ LRELEASE="$(qt6_get_bindir)/lrelease" \
+ QHELPGENERATOR="$(qt6_get_bindir)/../libexec/qhelpgenerator"
+ fi
+
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ # Otherwise it will write to /var/cache/fonts/ and trip sandbox
+ export VARTEXFONTS="${T}/fonts"
+
+ default
+
+ if use java; then
+ pax-mark m "${S}/src/.libs/octave-cli"
+ fi
+}
+
+src_install() {
+ default
+
+ if use doc; then
+ dodoc $(find doc -name '*.pdf')
+ else
+ # bug #566134, macros.texi is installed by make install if use doc
+ insinto /usr/share/${PN}/${PV}/etc
+ doins doc/interpreter/macros.texi
+ fi
+
+ use java && \
+ java-pkg_regjar "${ED}/usr/share/${PN}/${PV}/m/java/octave.jar"
+
+ echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/${PN}/${PV}" > 99octave || die
+ doenvd 99octave
+
+ find "${ED}" -type f -name '*.la' -delete || die
+}
diff --git a/sci-mathematics/palp/Manifest b/sci-mathematics/palp/Manifest
index f926dada7f16..fa9bb3f6704e 100644
--- a/sci-mathematics/palp/Manifest
+++ b/sci-mathematics/palp/Manifest
@@ -1,4 +1,4 @@
DIST PALP-v2.21.tar.bz2 226701 BLAKE2B f2b57b916b011089b11e3e90e42653b243cbc999c4650b867f3a8c22f7a1bc883778d9678310fe4ecce497690b92c6cef71378ee2177da130b4b14c207f2383b SHA512 ab38469fbd78e0e5db437d892e44aec181810c3d5fbe67739081396ea97db2e47facf658335790b8ea6a7e422a090dde95d79413a7980d29a65db1854aa52dc2
DIST palp-manual-v1.pdf 517953 BLAKE2B 7243794d8bc62c58c8329a9db32958c1929feb27fae1779874a31c16c1e4fd641e4089d029402ad5188f385b4f20dd77fc82506990bcf252289b21ca1b084b58 SHA512 3cf9fe7038981a5c7aa9d73623e17dc7b944bd8b09b32964c196b2231c1621fbe6014e2b45b2b9db092adbdce27cbb72ea65ced5da0b1f010388fbbef1f534f7
-EBUILD palp-2.21.ebuild 1313 BLAKE2B 0a67fb82fb8fc437f7ab8231d9f939c7492d361fc5d367ea4936f3bb6f73a0f9dbd46e7584946c838100c361cd90761d4d070d637dfeb541de8300a151ab1669 SHA512 e75a152123681adc657aa7289d2d766cfe4e3e1b3dcc2d34fcdb9fc4c31e3ed363a673ffaea87dacacc962d14ed499f9fcdb2b8101fc5e4e9275c579f0180484
+EBUILD palp-2.21.ebuild 1319 BLAKE2B 4d06414d81a164e498a8ce11126beef846337c305ffc3cf4613c839471c14802d56ed096a6af0b7b40ede18dacbe030141aed7faa274f2a1f239cbec0bc41ee6 SHA512 f549f10a0a7372c5ceb6e3c0c6490491c8753e84e96bc1d5c6b7abab995929963fc465f91e2bc19af40670e5bf136fa0276bfde48969d80c0bda94ccd895499b
MISC metadata.xml 718 BLAKE2B a507fb09a57e6a8d4477c8176ed2b5eceac3fbc77b5ada3ae1098742c2bdf7346d1ebd7abd4142044fe320536c0b504ff80503ca8aa65a44573d8eaa07b1641c SHA512 6b0090912a2c6f7d8cd49eee4f0d28b47d58bffc80ec5c9bb56e8a5b1bd0341973bd0d26729c3e9f8486f590961646aba14efb7435558af7fcd1753aaa372625
diff --git a/sci-mathematics/palp/palp-2.21.ebuild b/sci-mathematics/palp/palp-2.21.ebuild
index 92c0a3cb307c..8ed9def3704f 100644
--- a/sci-mathematics/palp/palp-2.21.ebuild
+++ b/sci-mathematics/palp/palp-2.21.ebuild
@@ -16,7 +16,7 @@ SRC_URI="https://gitlab.com/stringstuwien/PALP/-/archive/v${PV}/PALP-v${PV}.tar.
S="${WORKDIR}/PALP-v${PV}"
LICENSE="GPL-3"
SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="amd64 ~riscv"
# The "mori.x" program pipes input to "Singular".
RDEPEND="sci-mathematics/singular"
diff --git a/sci-mathematics/pari-data/Manifest b/sci-mathematics/pari-data/Manifest
index 8e6a83c4c33b..c71345305326 100644
--- a/sci-mathematics/pari-data/Manifest
+++ b/sci-mathematics/pari-data/Manifest
@@ -3,5 +3,5 @@ DIST galdata-20191216.tgz 53229 BLAKE2B 08f0a1be3c5252fbe534b2ed7e66b9bc8cddab80
DIST galpol-20191216.tgz 10049371 BLAKE2B 0b365579823f6f8243269144648302170eb2c2fd8c69ab3cc47e68e08745a909a9c1305080833f99c96c3ac8076ebaa9f680ba25e35eb84859a3aef22ba23c82 SHA512 5109081488ce5cb442b1a5d2f9c3206c48bfe27a743f7a6fdbd34f6d0a1cb5c2a4f5fdc173af25547eea4caefc525b9851fc9bbdb215b606598d4ab44cb60acf
DIST nftables-20191216.tgz 8393731 BLAKE2B d33cbf1f52d3e8a040087da28014ab727b59c641d1a53c97d311a9d1613b59f6b317b7632e0fc89943bea0a507a737543890109b888707c4fb7879279549a2e9 SHA512 cccc62fb0f6d8c578a4e165a1f2daf3b87acbbc38377044ddd98e2901a8e0554a46c8714bad0f4f4e09107b0c0c8f43069b4ddf4fba9c7832bad65ce3c901183
DIST seadata-20191216.tgz 19214199 BLAKE2B cafb89905180ff481f578ff2cdb150b04533ecbccfa96d045bdb61e5fe2c230262f3459d31b11f049ad1e16ed9dd6fb734569ee621efa3831800cc3d99583e60 SHA512 393f2fae45964ad0921fcf417113e10b296cb4c3a0e0eec138c896827f43a5464c4b42a07313e0f3a4383e8df97912e2e359a4cd5225d014d7575e80c7dd996a
-EBUILD pari-data-20191216.ebuild 811 BLAKE2B 26b0ac3f9868d790616819abdac2aa97f08ff42550bfe35f0f3c354512b07e7e64f7e848742b2bb3513dadeed5f4a414d629af1d97034aa50daefae858ec00bc SHA512 4ebbde8359e8d196701779ee0ad35f8d29e01592dce91a0319d64334bd0b586bc9e8356e4a3454a4f6bd858a39f7e7474627e15f5492bb5a30aa9fa8ae95a62e
+EBUILD pari-data-20191216.ebuild 799 BLAKE2B 21b076508716156c6bf0351f5cbb844b3445e78e6de1182aac5d55af2e5eeaa3be6095f32503c6d60a3d5b99adb749e6fa0332207fda6e2ee64e66d1b326f1c5 SHA512 f12a7b975c891035e41f05dd5fbbcb3e09f0c8b032791eb4b1daf27979268b09fbd2661f0ad870a93b0f8da748700aa3f793fbad04e29a0c9f162dc9e113a27f
MISC metadata.xml 726 BLAKE2B a4f203b7f7b138fdccefa3213535d99ae7c99030727d48c9390d42076c842d749256631147344c3d89fb0f599ecb0bd54cb66e072f5ea28c6cc8b9debb279af8 SHA512 d7dfd8043266e498ad26eeba8c23f5db24c5d9c060b30d98ed81cb5d7d43456a4aaa124e722465e6bd587e5a00b46038e0101162760b673278bde7624235ae33
diff --git a/sci-mathematics/pari-data/pari-data-20191216.ebuild b/sci-mathematics/pari-data/pari-data-20191216.ebuild
index c839066c7fb3..f2676521d946 100644
--- a/sci-mathematics/pari-data/pari-data-20191216.ebuild
+++ b/sci-mathematics/pari-data/pari-data-20191216.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -10,17 +10,15 @@ HOMEPAGE="https://pari.math.u-bordeaux.fr/packages.html"
# with new versions. When that happens, we need to bump this
# package to a new version so that any mirrored tarballs will
# get re-fetched to a new name.
-SRC_URI=""
for p in elldata galpol seadata nftables galdata; do
SRC_URI+="https://pari.math.u-bordeaux.fr/pub/pari/packages/${p}.tgz \
-> ${p}-${PV}.tgz "
done
+S="${WORKDIR}"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ~ppc ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
-IUSE=""
-S="${WORKDIR}"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ~ppc ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
src_install() {
insinto /usr/share/pari
diff --git a/sci-mathematics/pari/Manifest b/sci-mathematics/pari/Manifest
index b5400bc4cfeb..e6192ebb2f88 100644
--- a/sci-mathematics/pari/Manifest
+++ b/sci-mathematics/pari/Manifest
@@ -1,7 +1,3 @@
-AUX pari-2.11.2-no-automagic.patch 2349 BLAKE2B 6c2cdda84342109bad0cbfb3d5188eedbbfc08e5b40bce3f045309cef936f88356324b6d721c5cdb458a2343fb4ee6473238571dd779b74506e7e2b7d835e0c7 SHA512 549acaeaa393b0b42818e3648c21fdba3162abfefef147a1429d0e39f58ece0a46e94a6ee953435549c23d62b115b2dab0ee261eda2eb7fd0a2b430223f5f59c
-AUX pari-2.9.4-fltk-detection.patch 572 BLAKE2B 1c2e1fa6e52521c7865c3fd011824c83fa92623903dd1e056bda29c6735eb01013e7937f66d6ffff42d0de83f7ed104c7f933d232ee37be7c4351788e76f8daa SHA512 2ec0d8035a87b693ee6a4dfa913f0b24eed20bb4db7f8cd1a47db444310d33d19e6651d475c635be747e79a02df2705e42f6f7032b60dc763583cf9fa8633b29
-DIST pari-2.15.4.tar.gz 5183685 BLAKE2B 2e20b6dc073ce69bc098dd849e6ab43cb38b05d30ff5f72a31272cd24ef01aa515d4e2a4948264ca89169a6980cd9d76f86c7fbb9aad5be604680569950d9c25 SHA512 2b9f0c1fe7198406df8e6ceb3fcdc8bfb75f5c7ebfb963f023a1eebfff0bcc26e3b690941e188d6b9f8dfb6cddf4ce4c00f2cc320ebe47d42ae7596c774ed6cc
DIST pari-2.15.5.tar.gz 5186798 BLAKE2B b253c6d8ad38462e81852d7bb364d06a7cbaae7b085672653da8d9f91f0173cfdef8f537ebc7313b6484f610d43e10fb0547f5d920789b95c8d0027dd52e8312 SHA512 59b2ebed43176f1ee750146053644bffbf673b4b4810134bc39132665941152772afb7a9332b842fc64e5ab8d5747a872c1b8ff327d3bd5eedaa1591691fff13
-EBUILD pari-2.15.4-r1.ebuild 4724 BLAKE2B cdd4bd4805b870700e7f190bf220f21c5f55ab7627c141122aa97dc92f12ea605abfab9d417e873fafc6a6d38cd8e57f734c9626de48d10e1d78a4d4a7dcebbb SHA512 d8a740394bca755e34445fcf4ead7841e5d3a47edd67dcb86f2cb134c705e847fdd7c89105c66029a3ccf254c669c1e150995267a976bc2d9f920197fb5b0f4b
-EBUILD pari-2.15.5.ebuild 4446 BLAKE2B 6884828e06727b54f811c8c226324018ecbfbe4846d8d0c1a2229ecac946d1dcd2fcd2e28f808578c90e4dc9b1336957c750c5a22c66c6a51ca2ab58b34a75b0 SHA512 f17c6c2ddd4b01b0575615d2a636d39de860e74f54b18b266a604819a71186f5b8ec2445c5054824bf6f41c36a656bd60f494aa208a5eaa2edef890a1acda36a
+EBUILD pari-2.15.5.ebuild 4451 BLAKE2B 49cf3a7b8e77b636d9df3e4138bbf2a2c7d213aa965735a6d5e460e6ff8069afc390918dea9e0f66220692326a2fdf2111b1f1e28f94740454ca6210ad555a24 SHA512 0823698827deb12cc960965859d6b77c3ecbc99476c0d16e70ac92ead36bc64125aa0566439a9b0a668edbe6a5636302206e70c2b61e721563e94058db41c95f
MISC metadata.xml 1770 BLAKE2B d730330ac80159a9e46a7c892049d00e28bfe9e4d4c61616c033ccaf526cfef6f95a03bac803bf70c59760e1833e35fce5bc535038aadc8db68dca878c7bde78 SHA512 387a8eb845634e8568a3e98f44f9b92bd7819870ebb6cb57b28e96c0df022b4436074fa526771f5e6793ce59c010c0c0437abb63f03ec9890bca3c301afcf9ee
diff --git a/sci-mathematics/pari/files/pari-2.11.2-no-automagic.patch b/sci-mathematics/pari/files/pari-2.11.2-no-automagic.patch
deleted file mode 100644
index 80f000c5f43e..000000000000
--- a/sci-mathematics/pari/files/pari-2.11.2-no-automagic.patch
+++ /dev/null
@@ -1,68 +0,0 @@
---- a/config/Makefile.SH
-+++ b/config/Makefile.SH
-@@ -74,12 +74,12 @@ case "$which_graphic_lib" in
- ps|svg|none)
- graph=plot$which_graphic_lib;;
- Qt4)
-- PLOTCFLAGS="\$(QTINC)"
-- PLOTLIBS="\$(QTLIB) $QTLIBS"
-+ PLOTCFLAGS="`${PKG_CONFIG} --cflags QtGui`"
-+ PLOTLIBS="`${PKG_CONFIG} --libs QtGui`"
- graph=plotQt4;;
- fltk)
-- PLOTCFLAGS=
-+ PLOTCFLAGS="`fltk-config --cxxflags` $X11_INC"
- PLOTLIBS="$FLTK_LIBS"
- postconfig='fltk-config --post '
- graph=plotfltk;;
- win32)
-@@ -267,7 +267,7 @@ RLLIBS = $RLLIBS
- # GMP
- GMPINCLUDE = $GMPINCLUDE
- # Graphic library.
--QTMOC = $QTMOC
-+QTMOC = "`which moc`"
- QTINC = $QTINC
- QTLIB = $QTLIB
- PLOTCFLAGS = $PLOTCFLAGS
---- a/config/get_config_options
-+++ b/config/get_config_options
-@@ -86,6 +86,7 @@ while test $# -gt 0; do
- --with-ncurses-lib=*|--with-ncurses=*)
- with_ncurses_lib=`echo "$1" | sed -e 's/[-a-z]*=//'` ;;
-
-+ --without-qt|--with-qt=no) without_qt=yes ;;
- --with-qt) with_qt=yes ;;
- --with-qt=*)
- with_qt=`echo "$1" | sed -e 's/[-a-z]*=//'` ;;
-@@ -94,6 +95,7 @@ while test $# -gt 0; do
- --with-qt-include=*)
- with_qt_include=`echo "$1" | sed -e 's/[-a-z]*=//'` ;;
-
-+ --without-fltk|--with-fltk=no) without_fltk=yes ;;
- --with-fltk) with_fltk=yes ;;
- --with-fltk=*)
- with_fltk=`echo "$1" | sed -e 's/[-a-z]*=//'` ;;
-@@ -172,10 +174,12 @@ Optional libraries:
- --with-gmp-lib=DIR specify location of gmp libs
-
- --with-qt[=DIR] use the Qt graphical library [prefix for Qt dir.]
-+ --without-qt do not try to use the Qt lib
- --with-qt-include=DIR specify location of Qt headers
- --with-qt-lib=DIR specify location of Qt libs
-
- --with-fltk use the FLTK graphical library [need fltk-config]
-+ --without-fltk do not try to use the FLTK lib
-
- Miscellaneous
- --with-runtime-perl[=path-to-perl-binary] for gphelp / tex2mail
---- a/config/get_graphic_lib
-+++ b/config/get_graphic_lib
-@@ -7,6 +7,7 @@ FLTK_LIBS QTDIR QTLIB"
-
- if test -n "$with_fltk"; then which_graphic_lib=fltk; fi
- if test -n "$with_qt"; then which_graphic_lib=Qt; fi
-+if test -n "$without_fltk" -a -n "$without_qt"; then which_graphic_lib=none; fi
- if test "$fastread" != yes; then
- cat << EOT
- ==========================================================================
diff --git a/sci-mathematics/pari/files/pari-2.9.4-fltk-detection.patch b/sci-mathematics/pari/files/pari-2.9.4-fltk-detection.patch
deleted file mode 100644
index 26e146e032a6..000000000000
--- a/sci-mathematics/pari/files/pari-2.9.4-fltk-detection.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-diff --git a/config/get_fltk b/config/get_fltk
-index 87d0c1d..22f5bd8 100644
---- a/config/get_fltk
-+++ b/config/get_fltk
-@@ -2,13 +2,16 @@ if test -z "$with_fltk"; then
- with_fltk=yes
- fi
-
-+cmd="FLTK_CXXFLAGS=\`fltk-config --cxxflags\`"
-+. log_cmd
-+
- cmd="FLTK_LIBS=\`fltk-config --ldflags\`"
- . log_cmd
-
- exe=$osname-$arch-fltk$$$exe_suff
- cxx=$CXX
- if test -z "$cxx"; then cxx=g++; fi;
--cmd="$cxx $CFLAGS $FLTK_LIBS -o $exe has_fltk.c"
-+cmd="$cxx $CFLAGS $FLTK_CXXFLAGS $FLTK_LIBS -o $exe has_fltk.c"
- . log_cmd
- if test -r "$exe"; then
- echo "Using FLTK library"
diff --git a/sci-mathematics/pari/pari-2.15.4-r1.ebuild b/sci-mathematics/pari/pari-2.15.4-r1.ebuild
deleted file mode 100644
index 07ec717b7ad5..000000000000
--- a/sci-mathematics/pari/pari-2.15.4-r1.ebuild
+++ /dev/null
@@ -1,145 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit flag-o-matic toolchain-funcs
-
-DESCRIPTION="Computer-aided number theory C library and tools"
-HOMEPAGE="https://pari.math.u-bordeaux.fr/"
-SRC_URI="https://pari.math.u-bordeaux.fr/pub/${PN}/unix/${P}.tar.gz"
-
-# Their LICENSE file says "or (at your option) any later version"
-LICENSE="GPL-2+"
-
-# The subslot is the value of $soname_num obtained from
-# upstream's config/version script.
-SLOT="0/8"
-KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ~ppc ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
-IUSE="data doc examples fltk gmp test threads X"
-REQUIRED_USE="fltk? ( !X )" # mutually exclusive plot implementations
-RESTRICT="!test? ( test )"
-
-BDEPEND="
- virtual/pkgconfig
- doc? ( virtual/latex-base )
-"
-DEPEND="
- sys-libs/readline:0=
- data? ( sci-mathematics/pari-data )
- doc? ( X? ( x11-misc/xdg-utils ) )
- fltk? ( x11-libs/fltk:1= )
- gmp? ( dev-libs/gmp:0= )
- X? ( x11-libs/libX11:0= )"
-RDEPEND="${DEPEND}"
-
-# Both of these should be obsolete in the next version. I've sent the
-# fltk CXXFLAGS bit upstream, and using --graphic=<foo> hopefully works
-# around the automagic parts.
-PATCHES=(
- "${FILESDIR}/${PN}"-2.9.4-fltk-detection.patch
- "${FILESDIR}/${PN}"-2.11.2-no-automagic.patch
-)
-
-src_prepare() {
- default
-
- # move doc dir to a gentoo doc dir and replace acroread by xdg-open
- sed -i \
- -e "s:\$d = \$0:\$d = '${EPREFIX}/usr/share/doc/${PF}':" \
- -e 's:"acroread":"xdg-open":' \
- doc/gphelp.in || die "Failed to fix doc dir"
-
- # These tests fail when LaTeX is not installed (which we don't
- # require without USE=doc), most likely due to output formatting
- # issues but I haven't deleted my LaTeX installation to check.
- # There's no real upstream support for enabling/disabling the LaTeX
- # docs, so this is probably the correctest way to skip these tests.
- if ! use doc; then
- rm src/test/{in,32}/help || die
- fi
-}
-
-src_configure() {
- tc-export CC CXX PKG_CONFIG
-
- # Workaraound to "asm operand has impossible constraints" as
- # suggested in bug #499996.
- use x86 && append-cflags $(test-flags-CC -fno-stack-check)
-
- # sysdatadir installs a pari.cfg stuff which is informative only.
- # It is supposed to be for "architecture-dependent" data. It needs
- # to be easily discoverable for downstream packages such as gp2c.
- # We set LD="" and DLLD="$CC" so that the "shared library linker"
- # always gets set to the value of the compiler used. Pari's build
- # system does not cope very well with a naked linker, it is
- # expecting a compiler driver. See bugs 722090 and 871117.
- # DLLDFLAGS, on the other hand, is used exactly like LDFLAGS would
- # be in a less-weird build system.
- #
- # There's a lot of automagic involved in the graphics detection. We
- # first pass --graphic=none, which disables some of it. We then pass
- # --graphic=fltk (or --graphic=X11) only if USE=fltk (or USE=X) is
- # set. This is a stronger hint to the build system than --with-fltk
- # would be, and importantly does not rely on the corresponding but
- # nonexistent(!) option option for X11.
- LD="" DLLD="$(tc-getCC)" DLLDFLAGS="${LDFLAGS}" ./Configure \
- --prefix="${EPREFIX}"/usr \
- --datadir="${EPREFIX}/usr/share/${PN}" \
- --libdir="${EPREFIX}/usr/$(get_libdir)" \
- --sysdatadir="${EPREFIX}"/usr/share/pari \
- --mandir="${EPREFIX}"/usr/share/man/man1 \
- --with-readline="${EPREFIX}"/usr \
- --with-readline-lib="${EPREFIX}/usr/$(get_libdir)" \
- --with-ncurses-lib="${EPREFIX}/usr/$(get_libdir)" \
- --graphic=none \
- $(usex X --graphic=X11 "" "" "") \
- $(usex fltk --graphic=fltk "" "" "") \
- $(use_with gmp) \
- $(usex threads "--mt=pthread" "" "" "") \
- || die "./Configure failed"
-}
-
-src_compile() {
- emake gp
-
- if use doc; then
- # To prevent sandbox violations by metafont
- VARTEXFONTS="${T}/fonts" emake docpdf
- fi
-}
-
-src_test() {
- # Welcome to the jungle, where the tests fail if you make your
- # terminal bigger.
- emake COLUMNS=80 test-all
-}
-
-src_install() {
- DOCS=( AUTHORS CHANGES* COMPAT NEW README* )
-
- # Install examples to a junk location by default because "make
- # install-nodata" includes the examples with it. Only if the user
- # has USE=examples set do we provide the correct directory.
- local exdir="${T}"
- if use examples; then
- docompress -x "/usr/share/doc/${PF}/examples"
- exdir="${ED}/usr/share/doc/${PF}/examples"
- fi
-
- # Use "true" in place of "strip" to sabotage the unconditional
- # binary stripping.
- emake DESTDIR="${D}" \
- EXDIR="${exdir}" \
- STRIP="true" \
- install-nodata install-data
- einstalldocs
-
- if use doc; then
- docompress -x "/usr/share/doc/${PF}"
- emake \
- DESTDIR="${D}" \
- DOCDIR="${ED}/usr/share/doc/${PF}" \
- install-docpdf install-doctex
- fi
-}
diff --git a/sci-mathematics/pari/pari-2.15.5.ebuild b/sci-mathematics/pari/pari-2.15.5.ebuild
index 6c8fe6f9b29e..b523940fbc85 100644
--- a/sci-mathematics/pari/pari-2.15.5.ebuild
+++ b/sci-mathematics/pari/pari-2.15.5.ebuild
@@ -15,7 +15,7 @@ LICENSE="GPL-2+"
# The subslot is the value of $soname_num obtained from
# upstream's config/version script.
SLOT="0/8"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ~ppc ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
IUSE="data doc examples fltk gmp test threads X"
REQUIRED_USE="fltk? ( !X )" # mutually exclusive plot implementations
RESTRICT="!test? ( test )"
diff --git a/sci-mathematics/petsc/Manifest b/sci-mathematics/petsc/Manifest
index 9e6237acb008..718cd676289c 100644
--- a/sci-mathematics/petsc/Manifest
+++ b/sci-mathematics/petsc/Manifest
@@ -1,4 +1,6 @@
AUX petsc-3.16.0-fix_sandbox_violation.patch 717 BLAKE2B 9bef08265c058433cf903cc33739e9a1a2dc19f6ee77d92f2884c8a3fbdabe6585e9afa663a2a9ecf622d2e5c688ee0e931249e2e053213e3f0991070a0dd352 SHA512 3c8b490f8f6f0a4ceff8dbafdcc835174549cfe397753a7855995543c51dc5629c576b3af76c0ef527a62b2475dd5e6f059036048619f4ca83146879682835b9
+AUX petsc-3.21.3-disable-rpath.patch 955 BLAKE2B aa129ea846f424982cb7b8e3bc4f62bddb699bad2f8421cc186f90562b169b20cb64f36732cd305bcd45d224776a6cdb60f1c475a20ce853a791ea7dc2a88390 SHA512 a9fc9fdb94b03dbd543a3247b1469598f2d3d0521d136bf2e1995f0b1c4e12f688c06ac4c62aa03ad102d4f49546c1157641738dec413304f50f51e6b3ffd6a5
+AUX petsc-3.21.3-fix_sandbox_violation.patch 829 BLAKE2B 4a1cdeffbb2cfa3dd423334fd61806f760cf32dcaee76160509e567fc9d1f34d5f01eeb93f6df0c714e58d7d362daf8b531b8b3962188c1009f499da3161dcad SHA512 445867c6ecd55b4a85fcbb4ac18225a817c214f2fa32d98ffba32017e5b49252d46112d293d661e5eb2963376fec6bce9909a8206185992da7246fe08e0ecc2c
AUX petsc-3.7.0-disable-rpath.patch 909 BLAKE2B b9b6064886d6c10b382982778398cb7fa254242e5ed0dfb86dd4cd6c094dc51eecfd625f6de5c2779bfc5b3beda351ac44145c69ac246d814a728d7565da8086 SHA512 8241c593d903615feb175bfe8213792ace739a18ac5f4c1d1890155ccea7de30b5ef5d97e2fa3b043e9a1e520e022abedeb038d0b4db671f89045e04edc65a68
DIST petsc-3.16.0-fftw-without-mpi.patch.bz2 5824 BLAKE2B 59615b1bbaf8ca1da92d7d193a45a2dd434f762cd741d711d4f408183a201a276ac3c968a3e7d740d19212120271701bce52bb7b0f4e311268f40915c81f9dcb SHA512 8e07dfe56a9150ce9a3a5ab8012657875ef84e6e7daa60560bbdd9062078c876a826057f3f3eaf1697ce046a82756ee6eb6a8b819eb51245367c9d5c8a72ee8e
DIST petsc-3.16.0.tar.gz 16748960 BLAKE2B 87f9fdb79a9c44e5f476fa4746ad0cbe72f3eda9f6039f2e4743105626701d7c8d6c010fdb9d89becf8619288d0b7a60c8bc4e2fc0793eac5b39030b02c04fd9 SHA512 5280032fb4ec4d058733788bb0ae674e7400565e204133bd10ed88a2965230ec7adeaca2d498267ce661377ca7e6f9d948992206b1d679587606cb422c004655
@@ -8,6 +10,7 @@ DIST petsc-3.19.1.tar.gz 16659061 BLAKE2B 8c7b22e5f97756261a5d0e8b707670d55db53e
DIST petsc-3.19.2.tar.gz 16627765 BLAKE2B 1267db717989c3819f32ac6a62642054af2ac49d9e9276ffd4f0846d73e31ae4a5dcca4ad794b91cdb29463b7ec68040baa4e1cad99aaef8ab910ff7b64d7478 SHA512 f8feeb66fa8bd2406227be0e2cc2946485238362270d40e3f07dc89491177751f6bf680f51b70696bc30b677624c0e525c3fa9784eabdeb2337697ec56f63fc1
DIST petsc-3.19.4.tar.gz 16630006 BLAKE2B 577655fff12f9f54570393b2023d3386e66c7d4351ef20922f4b8100cbc54eeec0fb6ce249774cb54d2d06062a610c7d755e3b44994a3e053c0c02889810adc8 SHA512 b32b8cf72ea6bf3d976067ce0b722a6fb2ede525bc2293b72daf5693de48c6256e50f3968c0464a5e0d3bb067b936e1d78b66b51626fd27bbef2f57322509564
DIST petsc-3.20.5.tar.gz 17077395 BLAKE2B e76ff83572f7f0fcfa85b80f36301e0378d240e60726f07ab78a66b87591434bda6a96758037580370965f91c03341d95f60cfb961c2ab6707eeaafd5a7b1e1d SHA512 1e0ebdacbcc9db22dbe3803cbc13f5e0138d0412c328ff49cab024c839527c73b28983717104daf0858d482a8804b931c5c2bf20363c6b801d2be7d27219692f
+DIST petsc-3.21.3.tar.gz 17334266 BLAKE2B 6a34ae9f57b6f6c9ece4d411da8374d0b5675539f4041b8aa872c639084c7d38b7ddcf27889e7b835df453a8725869d04b4515615dba5998fb00fe28074043ec SHA512 699bbf3ddfc8fe8ebd4a1cb51a04108c10cafb65d30e7a74a9bf1b1ddd0f4350f0b893b256ea8a835e076e0a2f982189902bff30a9e301b3e04b539d2d2b6f99
EBUILD petsc-3.16.0-r2.ebuild 5425 BLAKE2B a38f36283aa2a802f886565daebfd57681c8bf81a56ba8fde8f82247216cdb21548fc4bf5088d76f0e4ea56afc29f8891ac20986cbfb1cd05c3408e85977a636 SHA512 ed7e01fef273d5c6acbb39dfcf94df854555cd5c27173a5b6e4acdc2f542a3cfc126c361cb0193c7a8fa266478182634a97615a9c72bbe2b98e6cce5ba7d0cd9
EBUILD petsc-3.17.1-r2.ebuild 5401 BLAKE2B 0e77a30b419b34758ac36ece7f3a210c1ca8a878bf2cf381039def0ef354d497b5e5d5172e5c663a61e54d256c43bd623fd299839f73db8d9cd9885c1d1cab2a SHA512 c9820edc2ae6218ccffcb4fc8213431c33e9e0dc2d1b7c4e79a70f79485ee0dbd6ecacdc2630732b2b65fc98044914d25b8a6c5fbee35908bef4e4d41f6a6d63
EBUILD petsc-3.18.2-r1.ebuild 7323 BLAKE2B d42ef6d5dea72728bca65edbd783ad38ed809ed9ab312cd5f21e9039d560166beca6a44859094346a52f33ea5810b429cd61db4812ef8747966778d77636d233 SHA512 540bbc5210587b45df3fd5038b0671eafbe330683198661fdacd1eda10a08c4f89d7dbed6966b69154dd54a98fc5238c615bc27cff2ddee270d32fb170d2d7ef
@@ -15,4 +18,5 @@ EBUILD petsc-3.19.1-r1.ebuild 7323 BLAKE2B d42ef6d5dea72728bca65edbd783ad38ed809
EBUILD petsc-3.19.2-r1.ebuild 7323 BLAKE2B d42ef6d5dea72728bca65edbd783ad38ed809ed9ab312cd5f21e9039d560166beca6a44859094346a52f33ea5810b429cd61db4812ef8747966778d77636d233 SHA512 540bbc5210587b45df3fd5038b0671eafbe330683198661fdacd1eda10a08c4f89d7dbed6966b69154dd54a98fc5238c615bc27cff2ddee270d32fb170d2d7ef
EBUILD petsc-3.19.4-r1.ebuild 7447 BLAKE2B 25b7431319effec19012133dd480cc76309206f3de7789262fc09d2724cde19dcdc9ae86a40432fa40dc6b927c49e445d5e67c010e5e47eee1c27aa8db8510b2 SHA512 835ef674e227720e47e86165143b3b55d79694c9424b666f94a9191d70d2f435acd5d4f0aada1765520194eb97126e064b49c71a2efaf90775a867eec9a49acd
EBUILD petsc-3.20.5-r1.ebuild 7460 BLAKE2B ba8adc670eb453336766c670caa28fd1130f10eb222bc1aafa3e69e616288059908ff845d3a290f71f65d6011f82f0d94c4ba87d79a298b80f17035575ead102 SHA512 89db7fbeda8e15bac7194b84f07a0a12f85d2916be9ba45d5ae64e389fd9dd39233611bab424b8916be2a55569409afd08bd8efb830b422bd18347d16e9cc428
+EBUILD petsc-3.21.3.ebuild 7321 BLAKE2B 60cbd5eb826775ff9632a2e2f1861d905b3fa717739cfb4d4a734392cf369422f62900253a31caf0d5c8e86807c9beb2a66a34e03d45b6e42b791830bb0e7af4 SHA512 3c5fd8d0bf86d0f23c9e460b33b562591957dc1844805cb6486813142fde8fdcb7ef4bb20bb01260c99e65ea06fc318962b34ac1ad6f07096d403f24739dd574
MISC metadata.xml 1310 BLAKE2B 04161c348ae88640222ad8d6c3f3471defbfdc0adc223acc6e8d0d21f62090b62f2887caacae5de751cb4b1ddb1e0d4bb4de5ea57d9381c710837262668fc37b SHA512 327aa86d4dba087c0de4ab7e2099bf8df13f2eb04138207802f664c316b74c09b2b15f82e9766b6b713d530f3ee094844f490c4769a1b5719f4912b486156ba9
diff --git a/sci-mathematics/petsc/files/petsc-3.21.3-disable-rpath.patch b/sci-mathematics/petsc/files/petsc-3.21.3-disable-rpath.patch
new file mode 100644
index 000000000000..3035a963786e
--- /dev/null
+++ b/sci-mathematics/petsc/files/petsc-3.21.3-disable-rpath.patch
@@ -0,0 +1,18 @@
+diff --git a/config/BuildSystem/config/setCompilers.py b/config/BuildSystem/config/setCompilers.py
+index bcf0181..a56bf8a 100644
+--- a/config/BuildSystem/config/setCompilers.py
++++ b/config/BuildSystem/config/setCompilers.py
+@@ -2543,12 +2543,7 @@ class Configure(config.base.Configure):
+ if Configure.isCygwin(self.log):
+ self.logPrint('Cygwin detected! disabling -rpath test.')
+ testFlags = []
+- # test '-R' before '-rpath' as sun compilers [c,fortran] don't give proper errors with wrong options.
+- elif not Configure.isDarwin(self.log):
+- testFlags = ['-Wl,-rpath,', '-R','-rpath ' , '-Wl,-R,']
+- else:
+- testFlags = ['-Wl,-rpath,']
+- # test '-R' before '-Wl,-rpath' for SUN compilers [as cc on linux accepts -Wl,-rpath, but f90 & CC do not.
++ testFlags = []
+ if self.isSun(self.framework.getCompiler(), self.log):
+ testFlags.insert(0,'-R')
+ for testFlag in testFlags:
diff --git a/sci-mathematics/petsc/files/petsc-3.21.3-fix_sandbox_violation.patch b/sci-mathematics/petsc/files/petsc-3.21.3-fix_sandbox_violation.patch
new file mode 100644
index 000000000000..1b38a88c343b
--- /dev/null
+++ b/sci-mathematics/petsc/files/petsc-3.21.3-fix_sandbox_violation.patch
@@ -0,0 +1,17 @@
+diff --git a/config/PETSc/options/installDir.py b/config/PETSc/options/installDir.py
+index 0ef7ecd..be21ec8 100755
+--- a/config/PETSc/options/installDir.py
++++ b/config/PETSc/options/installDir.py
+@@ -36,12 +36,6 @@ class Configure(config.base.Configure):
+ self.dir = os.path.abspath(os.path.expanduser(self.framework.argDB['prefix']))
+ self.petscDir = self.dir
+ self.petscArch = ''
+- try:
+- os.makedirs(os.path.join(self.dir,'PETScTestDirectory'))
+- os.rmdir(os.path.join(self.dir,'PETScTestDirectory'))
+- except Exception as e:
+- self.logPrint('Error trying to test write permissions on directory '+str(e))
+- self.installSudo = 'sudo '
+ else:
+ self.dir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch))
+ self.petscDir = self.petscdir.dir
diff --git a/sci-mathematics/petsc/petsc-3.21.3.ebuild b/sci-mathematics/petsc/petsc-3.21.3.ebuild
new file mode 100644
index 000000000000..10be74f1f7e2
--- /dev/null
+++ b/sci-mathematics/petsc/petsc-3.21.3.ebuild
@@ -0,0 +1,235 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
+
+inherit flag-o-matic fortran-2 python-any-r1 toolchain-funcs
+
+DESCRIPTION="Portable, Extensible Toolkit for Scientific Computation"
+HOMEPAGE="https://petsc.org/release/"
+SRC_URI="https://web.cels.anl.gov/projects/petsc/download/release-snapshots/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="afterimage boost complex-scalars debug +examples fftw
+fortran hdf5 hypre int64 mpi metis mumps scotch superlu threads X"
+
+# readd sparse when suitesparse-5.6.0 is in tree
+# sparse? ( >=sci-libs/suitesparse-5.6.0 >=sci-libs/cholmod-1.7.0 )
+# $(use_with sparse suitesparse) \
+RDEPEND="
+ virtual/blas
+ virtual/lapack
+
+ afterimage? ( media-libs/libafterimage )
+ boost? ( dev-libs/boost )
+ fftw? ( sci-libs/fftw:3.0[mpi?] )
+ hdf5? ( sci-libs/hdf5:=[mpi?] )
+ hypre? ( >=sci-libs/hypre-2.18.0[int64?,mpi?] )
+ metis? ( >=sci-libs/parmetis-4 )
+ mpi? ( virtual/mpi[fortran?] )
+ mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack )
+ scotch? ( sci-libs/scotch[int64?,mpi?] )
+ superlu? ( >=sci-libs/superlu-5 )
+ X? ( x11-libs/libX11 )
+"
+DEPEND="
+ ${RDEPEND}
+ ${PYTHON_DEPS}
+"
+BDEPEND="
+ dev-build/cmake
+ virtual/pkgconfig
+"
+
+# hypre and superlu curretly exclude each other due to missing linking to hypre
+# if both are enabled
+REQUIRED_USE="
+ afterimage? ( X )
+ complex-scalars? ( !hypre !superlu )
+ fftw? ( mpi )
+ hdf5? ( mpi )
+ hypre? ( mpi !superlu )
+ mumps? ( mpi scotch )
+ scotch? ( mpi )
+ superlu? ( !hypre )
+"
+PATCHES=(
+ "${FILESDIR}/${P}-disable-rpath.patch"
+ "${FILESDIR}"/${P}-fix_sandbox_violation.patch
+)
+
+# petsc uses --with-blah=1 and --with-blah=0 to en/disable options
+petsc_enable() {
+ use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0"
+}
+# add external library:
+# petsc_with use_flag libname libdir
+# petsc_with use_flag libname include linking_libs
+petsc_with() {
+ local myuse p=${2:-${1}}
+ if use ${1}; then
+ myuse="--with-${p}=1"
+ if [[ $# -ge 4 ]]; then
+ myuse="${myuse} --with-${p}-include=${EPREFIX}${3}"
+ shift 3
+ myuse="${myuse} --with-${p}-lib=$@"
+ else
+ myuse="${myuse} --with-${p}-dir=${EPREFIX}${3:-/usr}"
+ fi
+ else
+ myuse="--with-${p}=0"
+ fi
+ echo ${myuse}
+}
+
+# select between configure options depending on use flag
+petsc_select() {
+ use "$1" && echo "--with-$2=$3" || echo "--with-$2=$4"
+}
+
+src_configure() {
+ # bug 548498
+ # PETSc runs mpi processes during configure that result in a sandbox
+ # violation by trying to open /proc/mtrr rw. This is not easy to
+ # mitigate because it happens in libpciaccess.so called by libhwloc.so,
+ # which is used by libmpi.so.
+ addpredict /proc/mtrr
+ # if mpi is built with knem support it needs /dev/knem too
+ addpredict /dev/knem
+
+ # configureMPITypes with openmpi-2* insists on accessing the scaling
+ # governor rw.
+ addpredict /sys/devices/system/cpu/
+
+ # bug 771711
+ # configureMPIEXEC and configureMPITypes access /dev/nvidiactl
+ addpredict /dev/nvidiactl
+
+ # bug 810841
+ addpredict /dev/kfd
+
+ local myopt
+
+ use debug && myopt="debug" || myopt="opt"
+
+ # environmental variables expected by petsc during build
+
+ export PETSC_DIR="${S}"
+ export PETSC_ARCH="linux-gnu-c-${myopt}"
+
+ if use debug; then
+ strip-flags
+ filter-flags -O*
+ fi
+
+ tc-export AR RANLIB
+
+ # C Support on CXX builds is enabled if possible i.e. when not using
+ # complex scalars (no complex type for both available at the same time)
+
+ econf \
+ scrollOutput=1 \
+ AR="${AR}" \
+ CFLAGS="${CFLAGS} -fPIC" \
+ CPPFLAGS="${CPPFLAGS}" \
+ CXXFLAGS="${CXXFLAGS} -fPIC" \
+ CXXOPTFLAGS="${CXXFLAGS} -fPIC" \
+ FCFLAGS="${FCFLAGS} -fPIC" \
+ FFLAGS="${FFLAGS} -fPIC" \
+ LDFLAGS="${LDFLAGS}" \
+ MAKEFLAGS="${MAKEFLAGS}" \
+ RANLIB="${RANLIB}" \
+ --prefix="${EPREFIX}/usr/$(get_libdir)/petscdir/" \
+ --with-blas-lapack-lib="$($(tc-getPKG_CONFIG) --libs blas lapack)" \
+ --with-cmake:BOOL=1 \
+ --with-gnu-compilers \
+ --with-imagemagick=0 \
+ --with-petsc-arch="${PETSC_ARCH}" \
+ --with-precision=double \
+ --with-python=0 \
+ --with-shared-libraries \
+ --with-single-library \
+ --with-windows-graphics=0 \
+ $(petsc_enable debug debugging) \
+ $(petsc_enable fortran) \
+ $(petsc_enable mpi) \
+ $(petsc_enable mpi mpi-compilers) \
+ $(petsc_enable threads pthread) \
+ $(petsc_select complex-scalars scalar-type complex real) \
+ $(petsc_select mpi cc mpicc $(tc-getCC)) \
+ $(petsc_select mpi cxx mpicxx $(tc-getCXX)) \
+ $(petsc_with afterimage afterimage /usr/include/libAfterImage -lAfterImage) \
+ $(petsc_with hypre hypre /usr/include/hypre -lHYPRE) \
+ $(petsc_with superlu superlu /usr/include/superlu -lsuperlu) \
+ $(petsc_with scotch ptscotch /usr/include/scotch [-lptesmumps,-lptscotch,-lptscotcherr,-lscotch,-lscotcherr]) \
+ $(petsc_with mumps scalapack /usr/include/scalapack -lscalapack) \
+ $(petsc_with mumps mumps /usr/include [-lcmumps,-ldmumps,-lsmumps,-lzmumps,-lmumps_common,-lpord]) \
+ $(use fortran && echo "$(petsc_select mpi fc mpif77 $(tc-getF77))") \
+ $(use int64 && echo "--with-index-size=64") \
+ $(use_with boost) \
+ $(use_with fftw) \
+ $(use_with hdf5) \
+ $(use_with X x) \
+ $(use_with X x11)
+}
+
+src_install() {
+ emake DESTDIR="${ED}" install
+
+ #
+ # Clean up the mess:
+ #
+
+ # put all include directories under a proper subdirectory
+ mkdir "${ED}"/usr/include || die "mkdir failed (include)"
+ mv "${ED}"/usr/{$(get_libdir)/petscdir/include,include/petsc} || die "mv failed (include)"
+
+ # put libraries and pkconfig file into proper place
+ mv "${ED}"/usr/$(get_libdir)/petscdir/lib/{libpetsc*,pkgconfig} \
+ "${ED}/usr/$(get_libdir)" || die "mv failed (lib)"
+
+ # move share to proper location
+ mv "${ED}"/usr/{$(get_libdir)/petscdir/share,share} || die "mv failed (share)"
+
+ # fix pc files:
+ sed -i \
+ -e 's#include$#include/petsc#' \
+ -e "s#lib\$#$(get_libdir)#" \
+ -e "s#^prefix=.*petscdir\$#prefix=${EPREFIX}/usr#" \
+ "${ED}"/usr/$(get_libdir)/pkgconfig/*.pc || die "sed failed (pkgconfig)"
+
+ # recreate a "valid" petscdir:
+ for i in "${ED}"/usr/$(get_libdir)/*; do
+ [ $(basename $i) = petscdir ] && continue
+ ln -s "${EPREFIX}/usr/$(get_libdir)/$(basename $i)" \
+ "${ED}/usr/$(get_libdir)/petscdir/lib/$(basename $i)" || die "ln failed (petscdir)"
+ done
+ ln -s "${EPREFIX}"/usr/include/petsc/ \
+ "${ED}/usr/$(get_libdir)/petscdir/include" || die "ln failed (petscdir)"
+ mkdir "${ED}/usr/$(get_libdir)/petscdir/share" || die "mkdir fialed (petscdir)"
+ ln -s "${EPREFIX}"/usr/share/petsc/ \
+ "${ED}/usr/$(get_libdir)/petscdir/share/petsc" || die "ln failed (petscdir)"
+
+ # automatically symlink petsc matlab modules:
+ mkdir -p "${ED}"/usr/share/octave/site/m/
+ ln -s "${EPREFIX}"/usr/share/petsc/matlab "${ED}"/usr/share/octave/site/m/petsc || die "ln failed (matlab)"
+
+ if use examples; then
+ mkdir -p "${ED}"/usr/share/doc/${PF} || die "mkdir failed (examples)"
+ mv "${ED}"/usr/share/petsc/examples "${ED}"/usr/share/doc/${PF} || die "mv failed (examples)"
+ ln -s "${EPREFIX}"/usr/share/doc/${PF}/examples "${ED}"/usr/share/petsc/examples || die "ln failed (examples)"
+ docompress -x /usr/share/doc/${PF}/examples
+ else
+ rm -r "${ED}"/usr/share/petsc/examples || die "rm failed (examples)"
+ fi
+
+ # add PETSC_DIR to environmental variables
+ cat >> 99petsc <<- EOF
+ PETSC_DIR=${EPREFIX}/usr/$(get_libdir)/petscdir
+ EOF
+ doenvd 99petsc
+}
diff --git a/sci-mathematics/planarity/Manifest b/sci-mathematics/planarity/Manifest
index ad39131953dd..73723eae989c 100644
--- a/sci-mathematics/planarity/Manifest
+++ b/sci-mathematics/planarity/Manifest
@@ -1,3 +1,3 @@
DIST planarity-3.0.2.0.tar.gz 462194 BLAKE2B 7927b04cb7c9839637fe13228da50cee581ef7fd7fdaaa9ff2dc62348ba10c7f42ba88a75801034fedc973cf86fca6396ba2fb0b1f71407d850b73b8a9fc4fd0 SHA512 dbbc97cd9cf0a5497fbca76f3b0741d3bcfca110c7022150750e73179a0a0441428c854479831395b8f6340d0554b1c0e7cf7eaa63f7fe40d2a59365488c7013
-EBUILD planarity-3.0.2.0.ebuild 504 BLAKE2B 28b677a802de2ff32e021c8d80272ac47b4c92eb1d7dffe4c3f67bcdc7485a74f8f11fe6aabdb4e724f94c1e129591730edded6f75097271ec2a2a23d7a38d2f SHA512 53d3bea711b5df67a90a8f70859c150c2023c2dcaa19c47e0980dab8a9d334dbd1dbe29df942e9909154f71c1c446834d49d285b050cf56ab3dc96567cb964ac
-MISC metadata.xml 809 BLAKE2B 6c3ad8e9bbbc3cfbd8c18183051153054b2ab7f4dd94e69c8f4f98a955001330d1e51e6b1da7f98a7ce29f7920b7a55a31624828a5aeaf7831ace0b4cf5dbec0 SHA512 5aa885d48f2d4626ed54a67abcc068186189e726ddb68bc889b6dc7d9aa09da30dbf7bb284020503d70bc94a25b5e16c907fe992862c2c2a6c344e2977e57f25
+EBUILD planarity-3.0.2.0.ebuild 511 BLAKE2B e70a69462a029d43ec941f6bc65dfd8350b883134d47a8d914eb5d95ba2b47fac1b8834f21bf23eeeffb9734270e8a0d4808c3175a9b61cc88f0e663f80104ce SHA512 5195526a82cbdb965834b0af8c6c706c116c7a3fd78a30aa61e2de17508f896bb7bfa1669c441f8bae03ee402bff9338ab2a172befebe227d487dcbecfdde344
+MISC metadata.xml 797 BLAKE2B 035035a560cbee5e643b1771859d2964cbd182db17d3ea3d99c5a7372197353548ccea93d2da41fb495c280e58f6d0279f5722428a8fa8b2d185b198f01f427b SHA512 28f33dc17969926c2eb9f6aff6e9353cdb1229970e16a1cbcd34a9f088648a218f7aedfb20f65c3725dd6d65651ddccb1dd072de3aff5e6cdaac77106c905f0e
diff --git a/sci-mathematics/planarity/metadata.xml b/sci-mathematics/planarity/metadata.xml
index fd4c3a0ae185..07ebd0d1054c 100644
--- a/sci-mathematics/planarity/metadata.xml
+++ b/sci-mathematics/planarity/metadata.xml
@@ -19,8 +19,6 @@
</maintainer>
<upstream>
- <remote-id type="github">
- graph-algorithms/edge-addition-planarity-suite
- </remote-id>
+ <remote-id type="github">graph-algorithms/edge-addition-planarity-suite</remote-id>
</upstream>
</pkgmetadata>
diff --git a/sci-mathematics/planarity/planarity-3.0.2.0.ebuild b/sci-mathematics/planarity/planarity-3.0.2.0.ebuild
index 11e65b5d56d1..499d8a63eeb7 100644
--- a/sci-mathematics/planarity/planarity-3.0.2.0.ebuild
+++ b/sci-mathematics/planarity/planarity-3.0.2.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -10,7 +10,7 @@ SRC_URI="https://github.com/graph-algorithms/edge-addition-planarity-suite/relea
LICENSE="BSD"
SLOT="0"
-KEYWORDS="amd64 ~x86"
+KEYWORDS="amd64 ~riscv ~x86"
src_install() {
default
diff --git a/sci-mathematics/polymake/Manifest b/sci-mathematics/polymake/Manifest
index f1a27d767ee7..eb118ae46f78 100644
--- a/sci-mathematics/polymake/Manifest
+++ b/sci-mathematics/polymake/Manifest
@@ -1,5 +1,8 @@
AUX polymake-4.11-barycentric-subdiv.patch 807 BLAKE2B e2e632146e6d96e5966444283a0226caf26dfd7dab482a35289e2b6f9acaa791db015787b4b91f5c2f3abc47323227377dd296dfc21b777315979e58d2e36af8 SHA512 f5332d3a558a0b3dc1b0cc0846131210857d2a6ad11647fd64cd5366c04c349752d06e30da3f93568ff5d2f04f8419b8c9ef6e71460e997c295cb6959a8964e1
AUX polymake-4.11-singular-sat.patch 2212 BLAKE2B 659d07040141617f7ac6cb8572c44bf4d9ba332f1f4ddb5434987ea900009ef2b3ebefa27ead63a60c6048b58c3a853c797d82af1f3c8793f2c506f09dfd43f0 SHA512 fc46ec6753ddf14d389b9e03421a909bf572e4e7d6acf3dec7319d3bf704ba7710ba1c4719bf6b9153599f523e36cf83ac8b8218141f72a43343c94373fc5b57
+AUX polymake-4.12-no-perl-constraints.patch 1937 BLAKE2B 333d796269fdc4b733a2801b2a4dd4bb3bc88fe84570f508d8dea7288602fe6dc9f0490b48c0ee5b0478927d5ad23c8414aab7a7b4a10473a59ef8f255d79672 SHA512 40e09bfaf75bcee2087bd3660b9703a82714dc8f51ce5796098d4a4677b9eb46e252e12317b691f0aea0190c69496870351d658e52331d757caaf5ee4012fd09
DIST polymake-4.11-minimal.tar.bz2 7325783 BLAKE2B 87e62741e4e44c5fea7454d5cc8cb205cf13f8ee743c1d72100f937d0677505ce0c5c8f5b37c118f89079ca88f313991eaefb2ea02c49b6c7b45c438c6f9e13b SHA512 94adf3fcec21de50451091a04ca17010f5e71b44e3dcd4e2d52b9f952b94ee0cf3f6df15657b761b0bda20eb47cbdc0cb2481bb440c7243442be34f913292246
+DIST polymake-4.12-minimal.tar.bz2 7337552 BLAKE2B 4893be1f04ace2c4eb95ed01bc55e62e2187e10b5b10c1d274b2d4e771e1d863b2eb7adeb9a05b2f4c14466cdce1c0d223cfcf35c125d9989ab3825a88e46464 SHA512 127d4058148fdac05fb83a3ab893edfe5c0ab6865f9745d1e709396c23af9762574616f0466adcee59d35646d807621a090a41e8cc693b1fca1f5f6cd5d01054
EBUILD polymake-4.11.ebuild 3937 BLAKE2B 4ee7a122367ae511e509d6b0427627de9fadfa3de983381790d01ae8fc1921ebba2447a76dbc1e32394cc1cd40887d9e77ff4cfb787ccc3eb0d27b169525fe33 SHA512 0a1e98506899ef16d949e841e417f4b548d346d76093592a9dfbb57bfef8af4e8a675765a1daa91edcb89b092ad8c0f969b6af8934b3782076f43e66592d656f
+EBUILD polymake-4.12.ebuild 3899 BLAKE2B 8e1a103beaa199345c26fdb72ccfe2a65d28102b9cfb14e29a32accf6d3c5207d8c7a1e7cd3dc7d638db4da86fbfff2ffa2a09bd5721d6a966a9d2e3a3125b35 SHA512 e56a94680fc3650d4b6990e526c20c392259e77dc93d10f2d29d373169da60fdf4453da2817e416946487ab104bd0816215f41690312ceb6f1442df6a79e1131
MISC metadata.xml 1765 BLAKE2B 4e13dfb267c8100df81d8be89e7915ba850f55fea4256882264b13a0307c60cd8346ff46bf972018b334bf2d0dc387761244c1e0c3b8c7a1f4613a2a87458538 SHA512 7fd8af42bccc7710bd7c4159759b42ace43f638365a83defee96568e6ab4d6c186f49e71cbf68291fcd3b8b30fd7f883e8096c001c6bbf233d6f7336fa266f7c
diff --git a/sci-mathematics/polymake/files/polymake-4.12-no-perl-constraints.patch b/sci-mathematics/polymake/files/polymake-4.12-no-perl-constraints.patch
new file mode 100644
index 000000000000..54cbb1ee0324
--- /dev/null
+++ b/sci-mathematics/polymake/files/polymake-4.12-no-perl-constraints.patch
@@ -0,0 +1,62 @@
+From b0639eca089256c1d816b62c0e2b901cc14a5f7c Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Wed, 28 Aug 2024 10:57:17 -0400
+Subject: [PATCH] support/configure.pl: disable perl version check
+
+The test suite apparently passes with perl-5.40, and that's what
+we have in ~arch on Gentoo, so let's accept it.
+---
+ support/configure.pl | 37 -------------------------------------
+ 1 file changed, 37 deletions(-)
+
+diff --git a/support/configure.pl b/support/configure.pl
+index 5615c65..95f66de 100644
+--- a/support/configure.pl
++++ b/support/configure.pl
+@@ -14,43 +14,6 @@
+ # GNU General Public License for more details.
+ #-------------------------------------------------------------------------------
+
+-BEGIN {
+- if ($] < 5.016) {
+- print STDERR <<".";
+-polymake requires perl version not lower than 5.16;
+-your perl interpreter says it is $].
+-
+-Please upgrade your perl installation;
+-if you already have an up-to-date perl interpreter somewhere else,
+-you can specify its location on the command line:
+-
+-./configure PERL=/path/to/my/new/perl [other options ...]
+-.
+- exit(1);
+- } elsif ($] >= 5.040) {
+- print STDERR <<".";
+-*************
+-*** ERROR ***
+-*************
+-
+-polymake has not been checkced for compatibility with perl 5.40 or newer;
+-your perl interpreter says it is $].
+-
+-If you already have another (older) perl interpreter somewhere else, you can
+-specify its location on the command line:
+-
+-./configure PERL=/path/to/my/new/perl [other options ...]
+-
+-You can install a custom perl version in your home directory using perlbrew
+-(https://perlbrew.pl). Make sure to append '-Duseshrplib' to the install
+-command if you want to use libpolymake (e.g. for the jupyter interface) and to
+-install all required perl modules which are listed after running configure
+-again with the new perl.
+-.
+- exit(1);
+- }
+-}
+-
+ use Config;
+ use Cwd;
+ use File::Path;
+--
+2.46.0
+
diff --git a/sci-mathematics/polymake/polymake-4.12.ebuild b/sci-mathematics/polymake/polymake-4.12.ebuild
new file mode 100644
index 000000000000..a4232f80fa1b
--- /dev/null
+++ b/sci-mathematics/polymake/polymake-4.12.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic ninja-utils toolchain-funcs
+
+DESCRIPTION="Tool for polyhedral geometry and combinatorics"
+HOMEPAGE="https://polymake.org/"
+SRC_URI="https://polymake.org/lib/exe/fetch.php/download/${P}-minimal.tar.bz2"
+
+# polymake itself is GPL-2, but even the minimal tarball bundles a lot
+# of other code. I've included everything that turns up with a
+#
+# find ./ -name 'LICENSE' -o -name 'COPYING'
+#
+# in the list below. If any of these bother you, you may want to take a
+# closer look at how (or even if) the corresponding code is being used.
+LICENSE="BSD GPL-2 GPL-2+ MIT WTFPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+IUSE="bliss +cdd +flint +normaliz libpolymake lrs nauty ppl singular"
+
+REQUIRED_USE="^^ ( bliss nauty )"
+
+# The "configure" script isn't autotools; it basically exists just to
+# exec some other perl script but using the familiar name.
+BDEPEND="dev-lang/perl
+ ${NINJA_DEPEND}"
+
+DEPEND="
+ libpolymake? ( dev-lang/perl )
+ dev-libs/boost:=
+ dev-libs/gmp:=
+ dev-libs/libxml2:2=
+ dev-libs/libxslt:=
+ dev-libs/mpfr:=
+ sys-libs/readline:=
+ bliss? ( sci-libs/bliss:=[gmp] )
+ cdd? ( sci-libs/cddlib:= )
+ flint? ( sci-mathematics/flint:= )
+ lrs? ( >=sci-libs/lrslib-051:=[gmp] )
+ nauty? ( sci-mathematics/nauty:= )
+ normaliz? ( >=sci-mathematics/normaliz-3.8:= )
+ ppl? ( dev-libs/ppl:= )
+ singular? ( sci-mathematics/singular:= )"
+
+RDEPEND="${DEPEND}
+ dev-lang/perl
+ dev-perl/JSON
+ dev-perl/Term-ReadLine-Gnu
+ dev-perl/TermReadKey
+ dev-perl/XML-SAX
+ dev-perl/XML-Writer"
+
+PATCHES=( "${FILESDIR}/${P}-no-perl-constraints.patch" )
+
+src_configure() {
+ # Without this, the build system tries to use "the highest possible"
+ # optimization level and will override what's in your CXXFLAGS.
+ export CXXOPT=""
+
+ tc-export CC CXX
+
+ # We need to define BLISS_USE_GMP if bliss was built with gmp support.
+ # Therefore we require gmp support on bliss, so that the package
+ # manager can prevent rebuilds with changed gmp flag. Yes, this should
+ # be append-cppflags; but the build system doesn't respect CPPFLAGS.
+ use bliss && append-cxxflags -DBLISS_USE_GMP
+
+ # This isn't an autotools ./configure script, so a lot of things
+ # don't work the way you'd expect. We disable openmp unconditionally
+ # because it's only supposedly only used for building the bundled
+ # libnormaliz (we unbundle it) and for something called to_simplex
+ # that I can't find anywhere in the polymake source.
+ ./configure --prefix="${EPREFIX}/usr" \
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \
+ --libexecdir="${EPREFIX}/usr/$(get_libdir)/polymake" \
+ $(usev !libpolymake "--without-callable") \
+ --without-java \
+ --without-javaview \
+ --without-native \
+ --without-scip \
+ --without-soplex \
+ --without-openmp \
+ $(use_with bliss bliss "${EPREFIX}/usr") \
+ $(use_with cdd cdd "${EPREFIX}/usr") \
+ $(use_with flint flint "${EPREFIX}/usr") \
+ $(use_with lrs lrs "${EPREFIX}/usr") \
+ $(use_with nauty nauty "${EPREFIX}/usr") \
+ $(use_with normaliz libnormaliz "${EPREFIX}/usr") \
+ $(use_with ppl ppl "${EPREFIX}/usr") \
+ $(use_with singular singular "${EPREFIX}/usr") \
+ || die
+}
+
+# There is a backwards-compatible Makefile that would call ninja for us
+# in src_compile/src_install, but it doesn't handle MAKEOPTS correctly.
+src_compile() {
+ eninja -C build/Opt
+}
+
+src_install() {
+ # DESTDIR needs to find its way into the real install script,
+ # support/install.pl.
+ export DESTDIR="${D}"
+ eninja -C build/Opt install
+}
+
+src_test() {
+ perl/polymake --script run_testcases --emacs-style \
+ || die "test suite failed"
+}
+
+pkg_postinst() {
+ elog "Additional features for polymake are available through external"
+ elog "software such as sci-mathematics/4ti2 and sci-mathematics/topcom."
+ elog "After installing new external software run 'polymake --reconfigure'."
+}
diff --git a/sci-mathematics/primecount/Manifest b/sci-mathematics/primecount/Manifest
index 468b32e191d8..890823d384e3 100644
--- a/sci-mathematics/primecount/Manifest
+++ b/sci-mathematics/primecount/Manifest
@@ -1,3 +1,6 @@
+AUX primecount-7.13-gcc-15-buildfix.patch 1002 BLAKE2B 559087005bc7f476fb82a567337bec6ea100278d8b1f7a469da8789d90e95cafe7ba48ec1fdf8c72710646929d3c675f25874ccec6092116309d2be34fa130eb SHA512 1e4600453335eb861ee95947c0934f5b78fa683bd94a23782ddf137440bbe5fed0e9a16a3908f753c868d0da4435c7b2bb2b74bba8d952ffeb28c95904c840e2
+DIST primecount-7.13.tar.gz 431676 BLAKE2B a02ba71af2b545f2a89e83018c3e9f2ab6ad5e567e5e72e3a0e85ccc132f1bc54b7dcc8b51ccdb1e727f6edcf050a856cee15e4180cc46a54fa8c5fe834d8cd8 SHA512 836c181e586a691708049d3ba04672e1dd4922160e17b3b03737ea55512186d3a529e003af08ff2e78f7bf7349cce0819c98144cfb89bd8208e4bad8124ae17b
DIST primecount-7.6.tar.gz 382074 BLAKE2B f665db8724b32b2f057db96fdd6421d7a996ed4bda7f43cd405e6c05b59abab8672407c41b6fafdd9c68dae3f51b65305112c0724c95ce3fdb33b9dbfaadfbff SHA512 643372d9a011dba8a49f21eabc00068b77a5ef5dc6d12e6b55230b97f14dc9d1d855bb7ad662beda548e4ff1396f1b06d473e2fe4b81e7dbe9926aaadc4da360
+EBUILD primecount-7.13-r1.ebuild 1278 BLAKE2B 5e2656901d21e79053a151b7ef5ebbbdccc008b25d0f8034b02d6ed336ddc4e73af4f159564433015bcbf55a4c9183bbab904aa67de2b47ec69d492a5b713019 SHA512 d1af0d032a3924848a7300f17b331bd383c9dc958b98d8be23eeb1ba9a0e9a2390b6e9367b21a031d5cc117c55834ab87b7466be36540bfda60b2322c252447f
EBUILD primecount-7.6.ebuild 1284 BLAKE2B 899f461eb37ae77f62bdddd5650cf26d89b09c7b5ba043c786c1787adb24bc3ac1aef05c01800372895fea5d4c5303745917a86e29be361261839b8eef19e277 SHA512 299160fa362a1720ed11ae0bfad56e600a44c4323190d394e75b83fcb849e55a735b862fa9c234a8ac6b0319a435c578ea04eadbd44e47a2647b80d95372563e
MISC metadata.xml 674 BLAKE2B 2d8321166afee1e9d0a20723ae6849f17a7ef0d5d474dc3ec0b1650519b197ad5b1360641faa6985a60121501741a137812b8bcf03cd708766278a1b014615f7 SHA512 7a4fa0c1cae4880bdc230065c98ec46dfb5f1b1adae6ffa5eac275f6f04f38ce0c24042e62f5aac6117f9f816890244daec8fb1c920ec4b6a0a124385e5d7e33
diff --git a/sci-mathematics/primecount/files/primecount-7.13-gcc-15-buildfix.patch b/sci-mathematics/primecount/files/primecount-7.13-gcc-15-buildfix.patch
new file mode 100644
index 000000000000..6f483ba401ce
--- /dev/null
+++ b/sci-mathematics/primecount/files/primecount-7.13-gcc-15-buildfix.patch
@@ -0,0 +1,30 @@
+From a4512db281754a487314b64fadf4537f4620396d Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Tue, 30 Jul 2024 16:19:25 -0400
+Subject: [PATCH] include/libdivide.h: backport gcc-15 fix
+
+This is commit 572d2408 to upstream libdivide, backported to the copy
+bundled with primecount. The issue is also fixed in primecount but
+won't arrive until v7.14.
+---
+ include/libdivide.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/include/libdivide.h b/include/libdivide.h
+index 3779ebd..7336efb 100644
+--- a/include/libdivide.h
++++ b/include/libdivide.h
+@@ -2015,8 +2015,8 @@ public:
+ }
+
+ bool operator==(const divider<T, ALGO>& other) const {
+- return div.denom.magic == other.denom.magic &&
+- div.denom.more == other.denom.more;
++ return div.denom.magic == other.div.denom.magic &&
++ div.denom.more == other.div.denom.more;
+ }
+
+ bool operator!=(const divider<T, ALGO>& other) const {
+--
+2.44.2
+
diff --git a/sci-mathematics/primecount/primecount-7.13-r1.ebuild b/sci-mathematics/primecount/primecount-7.13-r1.ebuild
new file mode 100644
index 000000000000..62113042f54e
--- /dev/null
+++ b/sci-mathematics/primecount/primecount-7.13-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake toolchain-funcs
+
+DESCRIPTION="Highly optimized CLI and library to count primes"
+HOMEPAGE="https://github.com/kimwalisch/primecount"
+SRC_URI="https://github.com/kimwalisch/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0/7" # subslot is first component of libprimecount.so version
+KEYWORDS="~amd64 ~riscv"
+IUSE="+executable openmp test"
+RESTRICT="!test? ( test )"
+
+DEPEND=">=sci-mathematics/primesieve-12.0:="
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-gcc-15-buildfix.patch" )
+
+DOCS=(
+ ChangeLog
+ README.md
+ doc/Credits.md
+ doc/Easy-Special-Leaves.md
+ doc/Hard-Special-Leaves.md
+ doc/Records.md
+ doc/References.md
+ doc/alpha-factor-dr.pdf
+ doc/alpha-factor-gourdon.pdf
+ doc/alpha-factor-lmo.pdf
+ doc/libprimecount.md
+)
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_LIBPRIMESIEVE="OFF"
+ -DBUILD_PRIMECOUNT="$(usex executable)"
+ -DBUILD_STATIC_LIBS="OFF"
+ -DBUILD_TESTS="$(usex test)"
+ -DWITH_OPENMP="$(usex openmp)"
+ )
+
+ cmake_src_configure
+}
diff --git a/sci-mathematics/primesieve/Manifest b/sci-mathematics/primesieve/Manifest
index 65b4e325b00c..df9164d57fbb 100644
--- a/sci-mathematics/primesieve/Manifest
+++ b/sci-mathematics/primesieve/Manifest
@@ -1,3 +1,5 @@
DIST primesieve-11.0.tar.gz 125086 BLAKE2B ac425b6435bc95efbfc3d7458b59719af390508db811e0a993a606397166771cfcb9c0269249341fb6f678aafa8bae4a89e7a914176f61a608e6ccdfd0cab22b SHA512 1be9ff9d07068cab1ca69315010238ab15e5ba3b674bd45e9a0e11d20418810ece05a8df3853796118193468ac2ac6e24391f82d6db9581658ce59ddabb5b7fc
+DIST primesieve-12.3.tar.gz 140761 BLAKE2B d93aa8747d43850b9194172a2300942a685797c1aeb503240eb23cbbfe4b99281f3058a622d0e2359017e144ff8200dcecdd56922e16b46366d693b04eb1350a SHA512 b7bd74223ca9abe41de9f6a48102e6cfd1b1989fb291292c13f5c751a31f8df93e1faaadee318f169cfe81fa4dc4d5b0678fe7556f77043941d8ae749c6e8cc7
EBUILD primesieve-11.0.ebuild 1038 BLAKE2B 24f210bb5099c96234c0682bf634a3387ad33b8325b229497a93f7bcc77e04d604d08c579f4ad03414dc2669f648ebbf8ee0b1c6fbfe1c14c95fbeeb408e4120 SHA512 e8ef7324d624fbc1033081f443f3d241e631071869cf210ad4a5cf95ca879bda7f7dc29a308ddfedd775c60fbc5fd5d3fd1d85525ec76c06433439bcc8703331
+EBUILD primesieve-12.3.ebuild 1129 BLAKE2B ad789a6eecab521cf191a556da7a5c65c7247c58eb6461b533b16a32507cb72a2483e2dc627068610a823d77f13a190702c471d274036c3cc98b0581b83616db SHA512 84a244e06db884110fb45f1a4c6a0a7a9f49d1a7f07e88ec2d65370d036e766fc24fec13e467dc1744126f1b119be4299d907f25c33858a13d953e0d4db823ac
MISC metadata.xml 672 BLAKE2B e580c88061b6dcece5a34fde2cd13ce8c55264f3bac16fe3af6374df92d6280993452ebeea3d8446d9f8afcf7c1cb6927405c40e82a1c01a153d5060c77392fd SHA512 8ad3dd50c172ad3333d30a01b0e7ddb8f0f96b7666b61a0c6a1644e92abc49fa75f4f54c4c88eb72c2c8c7104d5e720d852bc7319fbc1a9569fcc5de85529b02
diff --git a/sci-mathematics/primesieve/primesieve-12.3.ebuild b/sci-mathematics/primesieve/primesieve-12.3.ebuild
new file mode 100644
index 000000000000..6d81d07c4184
--- /dev/null
+++ b/sci-mathematics/primesieve/primesieve-12.3.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="CLI and library for quickly generating prime numbers"
+HOMEPAGE="https://github.com/kimwalisch/primesieve"
+SRC_URI="https://github.com/kimwalisch/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="BSD-2"
+SLOT="0/12" # subslot is first component of libprimesieve.so version
+KEYWORDS="~amd64 ~riscv"
+IUSE="doc +executable test"
+RESTRICT="!test? ( test )"
+
+# dev-texlive/texlive-latexextra needed for varwidth.sty, bug 936808
+BDEPEND="doc? (
+ app-text/doxygen
+ app-text/texlive
+ dev-texlive/texlive-latexextra
+ media-gfx/graphviz
+)"
+
+DOCS=(
+ ChangeLog
+ README.md
+ doc/ALGORITHMS.md
+ doc/CPP_API.md
+ doc/C_API.md
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_DOC="$(usex doc)"
+ -DBUILD_PRIMESIEVE="$(usex executable)"
+ -DBUILD_STATIC_LIBS="OFF"
+ -DBUILD_TESTS="$(usex test)"
+ )
+
+ if use doc; then
+ DOCS+=(
+ "${BUILD_DIR}/doc/html"
+ "${BUILD_DIR}/doc/latex/refman.pdf"
+ )
+ fi
+
+ cmake_src_configure
+}
+
+src_compile() {
+ cmake_src_compile
+ use doc && cmake_build doc
+}
diff --git a/sci-mathematics/proverif/Manifest b/sci-mathematics/proverif/Manifest
index aee10192a859..64eb3e31c02a 100644
--- a/sci-mathematics/proverif/Manifest
+++ b/sci-mathematics/proverif/Manifest
@@ -1,7 +1,7 @@
AUX 50proverif-gentoo.el 650 BLAKE2B d31acd5c6aeeb2b938b0a475c896f0345149abc500bc98e889a89b2b241b8e59890544b64997eb7f029fe048de3fc696a2290bf1a707d9898b166458065f4d22 SHA512 44e6058ffc609a6475b21350148d677dfc0cd8846b7441541ed33b9f10bc789c4f1177ad517e684cc19f9e1ac34066a023cb003197be8c376f3c3cf99e7ff937
DIST proverif-v2.04.tar.bz2 61001112 BLAKE2B 03364d315bfa3d6cc8dfb68819be6b92301f554cf7ae4db0c4b9d8190a7d7576b79295dd536bf1356e12679028c100e6040d8c4e4299cf137c15114caf0216d2 SHA512 dbfafa62f4df72044b05563e10219b034ad49dd972598bf72eba616f2a88ff1cb85c3ee7bb9235050d0f35dbde750bffddbc93897b9ca2101dc6d153d3ea5575
DIST proverif2.05.tar.gz 980879 BLAKE2B 738531d34249f1837a93c6897d7249e326213940cc9a8fc378a25912a4de4c122a6ce536a429f17c1ef7fae5dd5e1673cdf439d7bad2dd0f44826b33363dbc8a SHA512 e20d6dc40b0e4957590b9ce019ef654361f3514f53e0a5c3240a40d296ff2a50093630982b7a230c2277eadf4ed22ba1b6d09b48764c2ad3ec0e102033d1c486
-EBUILD proverif-2.04-r1.ebuild 1215 BLAKE2B 96842c9a3971326e7dbe1d49060a0bd6f1449375b0a4054153ad23922978084711b78f4a595cc578b2a6015ea7e6a0da128917e36f3d784cdcf07adba7d03475 SHA512 bb68fb16e894a32ad8d1071b63fcd98b2697e2cc2745dd843dc66f7c3cfe45d00a1f6c393d0a86c576fc97f430a465e26c68b9029fdfcf644132667a2a9d15ca
-EBUILD proverif-2.05.ebuild 1174 BLAKE2B 7e95f21b988e317904788248ca5168906340cccdac9a0f9770fca259dcdd8309aea203a34afaeb2db4dc29ecf44fe087df8ddaef552c3faa22a07e78bdfa0bef SHA512 eebed22d18d52f3337ab4ca8cbcf23fc67591a68bd5e61e5455e5c1b5bd4452a5eb395f50ebc2194f7068d263f69a759c183209601ca2e08b8371ae6c948d247
-EBUILD proverif-9999.ebuild 1215 BLAKE2B 96842c9a3971326e7dbe1d49060a0bd6f1449375b0a4054153ad23922978084711b78f4a595cc578b2a6015ea7e6a0da128917e36f3d784cdcf07adba7d03475 SHA512 bb68fb16e894a32ad8d1071b63fcd98b2697e2cc2745dd843dc66f7c3cfe45d00a1f6c393d0a86c576fc97f430a465e26c68b9029fdfcf644132667a2a9d15ca
+EBUILD proverif-2.04-r1.ebuild 1213 BLAKE2B 0c137e118389408a5fae423067631537adcfebaa927d6c3acaccc302670993ec36e8585ad397c5132da463c98d9d41014f45ac17a89d999f95a0318d2cb35754 SHA512 f2efe5ae4c40f232cf5a138576f83306ac32b876377e7a8d4827983c03f48990643b4198416fc15f97c0896f72615343d74d184455656bbd74fcfd2dca2e3e5e
+EBUILD proverif-2.05.ebuild 1172 BLAKE2B c9020106caf4c49d079db586f66de7ac23520c8df3208eb806a86479efb95dbdc2c35245000e8a0f3a413f680abe809175f88549d967db4c08a86990e97e0a66 SHA512 42c9b60ddb798c222f4848f008fc3730b840ddafd3f99df16a4d7ffb37e28424d4d306ea337b8299fbfd49afa47710d52e28e443df50ae165bc40622ed69fc78
+EBUILD proverif-9999.ebuild 1213 BLAKE2B 0c137e118389408a5fae423067631537adcfebaa927d6c3acaccc302670993ec36e8585ad397c5132da463c98d9d41014f45ac17a89d999f95a0318d2cb35754 SHA512 f2efe5ae4c40f232cf5a138576f83306ac32b876377e7a8d4827983c03f48990643b4198416fc15f97c0896f72615343d74d184455656bbd74fcfd2dca2e3e5e
MISC metadata.xml 1638 BLAKE2B 61f7bbf62117942baa127c9cabb9f15ea797b8ea8b313ed720a15a6d96dba1e78e8ad9921739a277175eb008b8c697bdd4b424f472e984d9a01ee63e75ced6f2 SHA512 9bbd77f4247eb5c210e0f1424100541b16235701dc048c2a7ca1485fcdbcbf5a5ab598c8f5a11e234c77f74560e2312f4496af598f07cb504561f60acc2558f9
diff --git a/sci-mathematics/proverif/proverif-2.04-r1.ebuild b/sci-mathematics/proverif/proverif-2.04-r1.ebuild
index a70d69a747de..9f2156ce655e 100644
--- a/sci-mathematics/proverif/proverif-2.04-r1.ebuild
+++ b/sci-mathematics/proverif/proverif-2.04-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -37,7 +37,7 @@ DOCS=( CHANGES README docs/dev docs/manual )
SITEFILE="50${PN}-gentoo.el"
src_compile() {
- edob sh ./build -nointeract
+ edo sh ./build -nointeract
if use emacs ; then
cd "${S}/emacs" || die
@@ -47,7 +47,7 @@ src_compile() {
}
src_test() {
- edob sh ./test
+ edo sh ./test
}
src_install() {
diff --git a/sci-mathematics/proverif/proverif-2.05.ebuild b/sci-mathematics/proverif/proverif-2.05.ebuild
index 3a6c80ee509e..a537929ab036 100644
--- a/sci-mathematics/proverif/proverif-2.05.ebuild
+++ b/sci-mathematics/proverif/proverif-2.05.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -37,7 +37,7 @@ DOCS=( CHANGES README )
SITEFILE="50${PN}-gentoo.el"
src_compile() {
- edob sh ./build -nointeract
+ edo sh ./build -nointeract
if use emacs ; then
cd "${S}/emacs" || die
@@ -47,7 +47,7 @@ src_compile() {
}
src_test() {
- edob sh ./test
+ edo sh ./test
}
src_install() {
diff --git a/sci-mathematics/proverif/proverif-9999.ebuild b/sci-mathematics/proverif/proverif-9999.ebuild
index a70d69a747de..9f2156ce655e 100644
--- a/sci-mathematics/proverif/proverif-9999.ebuild
+++ b/sci-mathematics/proverif/proverif-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -37,7 +37,7 @@ DOCS=( CHANGES README docs/dev docs/manual )
SITEFILE="50${PN}-gentoo.el"
src_compile() {
- edob sh ./build -nointeract
+ edo sh ./build -nointeract
if use emacs ; then
cd "${S}/emacs" || die
@@ -47,7 +47,7 @@ src_compile() {
}
src_test() {
- edob sh ./test
+ edo sh ./test
}
src_install() {
diff --git a/sci-mathematics/pspp/Manifest b/sci-mathematics/pspp/Manifest
index 5125f7db3418..fb929542a7d0 100644
--- a/sci-mathematics/pspp/Manifest
+++ b/sci-mathematics/pspp/Manifest
@@ -1,4 +1,4 @@
AUX pspp-1.6.2-underlinking.patch 980 BLAKE2B 59d7509417526e3428023f2e0f085a9ec806fe4bada8934404e0da3d306860f5826d83b9682151c5c4946bdf914618e3d555c99d60b93e858e56221cbd336c12 SHA512 8773b768dd8336a37c97527ac24311d7006c04c4ea0b71199432dc779b7a16c2b2e6fa786714cb7e359a2e52e806958315644f13199a7f656445d1c17a2b852a
DIST pspp-1.6.2.tar.gz 9249366 BLAKE2B d1a4fb352615be8d5f3af3125d10760648ab16e8d2b42dbf0632de64a5bb5bbe87b9b56661c7f600ea09c6a359e477376d3efb821280023d1825d6eb7b0a299f SHA512 fd8b6b23ae4e4a1a560bf4d20c35e761d84dcde2e220648303303f11e9c17d56285a3d5b3c26e7dad44d52ecc82fdf93fdc51a3533ff907f2ca1f1474922e31f
-EBUILD pspp-1.6.2-r2.ebuild 1874 BLAKE2B c9bdabe3154c2093d439450db76ff528df4c6caf9de3cad41641750a1f8e21c0c93e8080fbed14630b850a09610cc0ded86e2d184a511b37b42b24e470f42606 SHA512 dc5d44d7b32d9be2f4f282b084e2bc835cb2ba39739f3eaf1892e3113d18520c3eaa8cc10b6545b01e878b8c892eb1df107f55655ddbd1bf64289d0fec052a6f
+EBUILD pspp-1.6.2-r2.ebuild 1875 BLAKE2B 842c4b078a2e5c15eb4a595bb138e71627cbb0ca49e65575ab32e1a7461597955baea7e201f10b6df4e6f5ffc9188fdf2aec407e13f95b865e5476c847224803 SHA512 f43ceab326d1e1c7c983c2d8de912174934db4af67b7de4839f22050fde03ba6ba9fb0d12332f2a4b968310f23ebe5b59e473af7251afab7dac4e7e0daf323f3
MISC metadata.xml 789 BLAKE2B 512ff8155a10ed8c1be37ec63067c73c196c5bfe48d9722feaba5305e95703e0cccd247d5d55dd123275f3543632020d3cacedb0416953a547e5e7015d1f759f SHA512 011cf3d266b6d1385791930ce84850e99d5d0b506d9ffb632807a8e825217e94ba02c3cb55b56a6be40fc1e84bfed28b7db7131ce58fe958468d5a44b6734305
diff --git a/sci-mathematics/pspp/pspp-1.6.2-r2.ebuild b/sci-mathematics/pspp/pspp-1.6.2-r2.ebuild
index 997eac8a4074..7bd92ddfe088 100644
--- a/sci-mathematics/pspp/pspp-1.6.2-r2.ebuild
+++ b/sci-mathematics/pspp/pspp-1.6.2-r2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{10..12} )
inherit python-any-r1 xdg
diff --git a/sci-mathematics/rkward/Manifest b/sci-mathematics/rkward/Manifest
index 8dc9735788a2..b32434c8986e 100644
--- a/sci-mathematics/rkward/Manifest
+++ b/sci-mathematics/rkward/Manifest
@@ -1,3 +1,4 @@
-DIST rkward-0.7.5.tar.gz 7682442 BLAKE2B b3c79dbc51585c646e88549d82b0a68a3246219b069d641f71beb25f2ac855d0c7a0e44e1cdba3da112ee94479584768ebd45fc37afb83fbd95de51bcc3f5a31 SHA512 247ee50fbebb9b74a1c03d6ef99dded18a1b3cf18286a6d2afcaa8ff7472cc3cb735db0a876926625aff4674906956f7a0c001a46d0dfd328a93e8c7af9f6c6b
-EBUILD rkward-0.7.5.ebuild 1425 BLAKE2B 17d68f72beaef5fb809a54480db2e93bf4b6c6870d78c080772724d514d6c7fe90aa5eb8cc0bee24330fbaaf0963c23f66305087fec55ca4c42294e83994fe0a SHA512 bbc7a4c98853a8786c94a5d63094d78c39fd9259057d062747146d8b03bb007f4fd78d90b7322f03425beebe61cb1b67b78be78ae21fb4624ff18e0345ab3e68
+AUX rkward-0.8.0-unbundle-kdsingleapplication.patch 2094 BLAKE2B a1214ddce2ae5eda93f9cb9ed9904f5b38f538b8ef9af4f3f39eef60edfb049da3034db5679c0581b8e76ff26d34eac46990d5cb84a8c75bac85eb460fa2894f SHA512 69cc9a68ce3d4b43758a4aa532da94e885f7d9701616d47bd197e0be44f48cef57e185815754ac4d63b9a30b8f663d097b6f0c5ac5dc904ea6dfe0bc5b40985f
+DIST rkward-0.8.0.tar.gz 8614382 BLAKE2B e44dd1c9ae5df02160ac47a14409a2fbf88dbc085369af22e64c80a59740f25305129e166402e944f85978cabde4d273a08f7f473eb46fdb31145ff8d886f46a SHA512 07070189e05fe1bdd65372fb3f90c027c693b93e3dc80a17bc30f90c983ca0bc777f30ea81ef99343ebdc90f463f47721d03f26d116145567c8ef6ca4ffdff27
+EBUILD rkward-0.8.0.ebuild 1788 BLAKE2B ddb2ca26400627c472282d4fcf0cc5e9d71852a570e8a463fd0e8707a8c74b92af21190bdfab642668ac57ff9c15cca64730c8f06bbd7a9736494e0095305806 SHA512 fb451201e90557f0eb03b6480b09ff15013c20e11bd36a2eeccfdd15060362e51a3d6e90167171326dbaefeb087413262a42ff3a2253346c76aa7ac1f8db215e
MISC metadata.xml 448 BLAKE2B c43701b135281f800da40813b11df123d5088bfa0beb3e0700ba354e991ec18aac267dc0a0f3d206bdd06eef5d50f78378a107f05d1f01d17b0d409e632066de SHA512 b9b3c376714fc5c81008caed25794d262d2d60cafbd3fcdccfeccdf9666b16dbb09f1d06025526c8304c640e150492b685df95f200002e8ef41aed609b0893a8
diff --git a/sci-mathematics/rkward/files/rkward-0.8.0-unbundle-kdsingleapplication.patch b/sci-mathematics/rkward/files/rkward-0.8.0-unbundle-kdsingleapplication.patch
new file mode 100644
index 000000000000..0340987c517b
--- /dev/null
+++ b/sci-mathematics/rkward/files/rkward-0.8.0-unbundle-kdsingleapplication.patch
@@ -0,0 +1,57 @@
+From 997c8a7280fe0f99a29465f67b56fd001cdac4e1 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <asturm@gentoo.org>
+Date: Mon, 22 Jul 2024 22:20:26 +0200
+Subject: [PATCH] Make it possible to build against system kdsingleapplication
+
+Bundling must be avoided wherever possible.
+
+Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
+---
+ CMakeLists.txt | 10 +++++++++-
+ rkward/main.cpp | 2 +-
+ 2 files changed, 10 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 3b9833164..1af6cd172 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -26,6 +26,15 @@ FIND_PACKAGE(Qt6 6.6 CONFIG REQUIRED COMPONENTS Widgets Core Xml Network Qml Pri
+ FIND_PACKAGE(KF6 6.0.0 REQUIRED COMPONENTS CoreAddons DocTools I18n XmlGui TextEditor WidgetsAddons Parts Config Notifications WindowSystem Archive BreezeIcons OPTIONAL_COMPONENTS Crash)
+ FIND_PACKAGE(Gettext REQUIRED)
+
++FIND_PACKAGE(KDSingleApplication-qt6 1.1.0 QUIET)
++if(KDSingleApplication-qt6_FOUND)
++ message(STATUS "Using system KDSingleApplication")
++else()
++ message(STATUS "Using bundled KDSingleApplication")
++ add_subdirectory(3rdparty/KDSingleApplication)
++ add_definitions(-DKDSINGLEAPPLICATION_STATIC_BUILD)
++endif()
++
+ IF(FORCE_PRETTY_MAKEFILE)
+ SET(CMAKE_VERBOSE_MAKEFILE OFF)
+ ENDIF(FORCE_PRETTY_MAKEFILE)
+@@ -37,7 +46,6 @@ remove_definitions(-DQT_NO_CAST_FROM_ASCII) # TODO remove to compley to KDECompi
+ #uncomment the line below to save ~250-350kB in object size
+ #ADD_DEFINITIONS(-DRKWARD_NO_TRACE)
+
+-ADD_SUBDIRECTORY(3rdparty/KDSingleApplication)
+ ADD_SUBDIRECTORY(rkward)
+ ADD_SUBDIRECTORY(doc)
+ ADD_SUBDIRECTORY(tests)
+diff --git a/rkward/main.cpp b/rkward/main.cpp
+index 2804e99d8..df959ba82 100644
+--- a/rkward/main.cpp
++++ b/rkward/main.cpp
+@@ -72,7 +72,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
+ #include "rbackend/rksessionvars.h"
+ #include "windows/rkdebugmessagewindow.h"
+ #include "misc/rkcommonfunctions.h"
+-#include "../3rdparty/KDSingleApplication/kdsingleapplication.h"
++#include "kdsingleapplication.h"
+ #include "misc/rkcommandlineargs.h"
+
+ #ifdef Q_OS_WIN
+--
+GitLab
+
diff --git a/sci-mathematics/rkward/rkward-0.7.5.ebuild b/sci-mathematics/rkward/rkward-0.7.5.ebuild
deleted file mode 100644
index feca760015fe..000000000000
--- a/sci-mathematics/rkward/rkward-0.7.5.ebuild
+++ /dev/null
@@ -1,57 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-ECM_HANDBOOK="forceoptional"
-inherit ecm kde.org optfeature
-
-DESCRIPTION="IDE for the R-project"
-HOMEPAGE="https://rkward.kde.org/"
-
-if [[ ${KDE_BUILD_TYPE} = release ]]; then
- SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.gz"
- KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-fi
-
-LICENSE="GPL-2+ LGPL-2"
-SLOT="5"
-IUSE=""
-
-DEPEND="
- dev-lang/R
- dev-qt/qtdeclarative:5
- dev-qt/qtgui:5
- dev-qt/qtnetwork:5
- dev-qt/qtprintsupport:5
- dev-qt/qtwebengine:5[widgets]
- dev-qt/qtwidgets:5
- dev-qt/qtxml:5
- kde-frameworks/karchive:5
- kde-frameworks/kcompletion:5
- kde-frameworks/kconfig:5
- kde-frameworks/kconfigwidgets:5
- kde-frameworks/kcoreaddons:5
- kde-frameworks/kcrash:5
- kde-frameworks/ki18n:5
- kde-frameworks/kio:5
- kde-frameworks/kjobwidgets:5
- kde-frameworks/knotifications:5
- kde-frameworks/kparts:5
- kde-frameworks/kservice:5
- kde-frameworks/ktexteditor:5
- kde-frameworks/kwidgetsaddons:5
- kde-frameworks/kwindowsystem:5
- kde-frameworks/kxmlgui:5
-"
-RDEPEND="${DEPEND}"
-BDEPEND="sys-devel/gettext"
-
-pkg_postinst() {
- if [[ -z "${REPLACING_VERSIONS}" ]]; then
- optfeature "kate plugins support" "kde-apps/kate-addons:${SLOT}"
- optfeature "prendering (or previewing) R markdown (.Rmd) files" "virtual/pandoc"
- optfeature "managing citations while writing articles" "app-text/kbibtex"
- fi
- ecm_pkg_postinst
-}
diff --git a/sci-mathematics/rkward/rkward-0.8.0.ebuild b/sci-mathematics/rkward/rkward-0.8.0.ebuild
new file mode 100644
index 000000000000..a6333ecdd210
--- /dev/null
+++ b/sci-mathematics/rkward/rkward-0.8.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="forceoptional"
+KFMIN=6.3.0
+QTMIN=6.6.2
+inherit ecm kde.org optfeature
+
+DESCRIPTION="IDE for the R-project"
+HOMEPAGE="https://rkward.kde.org/"
+
+if [[ ${KDE_BUILD_TYPE} = release ]]; then
+ SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~amd64-linux"
+fi
+
+LICENSE="GPL-2+ LGPL-2"
+SLOT="0"
+IUSE=""
+
+DEPEND="
+ dev-lang/R
+ dev-libs/kdsingleapplication[qt6(+)]
+ >=dev-qt/qt5compat-${QTMIN}:6
+ >=dev-qt/qtbase-${QTMIN}:6[dbus,gui,network,widgets,xml]
+ >=dev-qt/qtdeclarative-${QTMIN}:6
+ >=dev-qt/qtwebengine-${QTMIN}:6[widgets]
+ >=kde-frameworks/breeze-icons-${KFMIN}:6
+ >=kde-frameworks/karchive-${KFMIN}:6
+ >=kde-frameworks/kcompletion-${KFMIN}:6
+ >=kde-frameworks/kconfig-${KFMIN}:6
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:6
+ >=kde-frameworks/kcoreaddons-${KFMIN}:6
+ >=kde-frameworks/kcrash-${KFMIN}:6
+ >=kde-frameworks/ki18n-${KFMIN}:6
+ >=kde-frameworks/kio-${KFMIN}:6
+ >=kde-frameworks/kjobwidgets-${KFMIN}:6
+ >=kde-frameworks/knotifications-${KFMIN}:6
+ >=kde-frameworks/kparts-${KFMIN}:6
+ >=kde-frameworks/kservice-${KFMIN}:6
+ >=kde-frameworks/ktexteditor-${KFMIN}:6
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:6
+ >=kde-frameworks/kwindowsystem-${KFMIN}:6
+ >=kde-frameworks/kxmlgui-${KFMIN}:6
+"
+RDEPEND="${DEPEND}
+ !${CATEGORY}/${PN}:5
+"
+BDEPEND="sys-devel/gettext"
+
+PATCHES=( "${FILESDIR}/${P}-unbundle-kdsingleapplication.patch" )
+
+pkg_postinst() {
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ optfeature "kate plugins support" "kde-apps/kate-addons:6"
+ optfeature "prendering (or previewing) R markdown (.Rmd) files" "app-text/pandoc"
+ optfeature "managing citations while writing articles" "app-text/kbibtex"
+ fi
+ ecm_pkg_postinst
+}
diff --git a/sci-mathematics/rw/Manifest b/sci-mathematics/rw/Manifest
index 5d02d7dbd97c..a59310336d31 100644
--- a/sci-mathematics/rw/Manifest
+++ b/sci-mathematics/rw/Manifest
@@ -1,3 +1,3 @@
DIST rw-0.9.tar.gz 340385 BLAKE2B 2eba540146094eea7adb26874ed6f7982e46a863c786bf6f4a55af2d1d3167641e10c324f2b0e0e366bb8f83503b5da5fb02447abf46ae955da78ac8fe6149b6 SHA512 f4f1910506cbdb557ca50bac6f63cfca3271a5df8d13c67d2d9bba79b9cdb03196a679e6091554175decbee0871888de71bed5746662c9a75418f0f5dd9bd609
-EBUILD rw-0.9.ebuild 809 BLAKE2B f9749375aea40ef13f9195e81a3d1931980ca6ef07f4eb7a192b18c60652eaeeebcb9ffe6b7dfcb355c48417771934cea7615cf7ca8479b5c6378fee6eab196d SHA512 c4b4adafda7b0072bc7ad73db412ba84440aef6836986d3ec13b2480fa17793b35c2251f5a8e64c22f3e27532f093a614e23bb49f0e21c28d5c29de06657a53a
+EBUILD rw-0.9.ebuild 808 BLAKE2B c83e9b7623e7df3480ed492a32dbae6a5fcb4edbecee1ddd11880fcf4a7ccf27567596c437dec54c9b1bee8103d8705b7e47c8a017d40036d7f43a0b6cdba0b7 SHA512 146be303e50da735b7bf60c9d53f2ba86470fe869cdb34a6599979c447074a16d802ed55caec16519ad3eb4d5e7b3d32e7ceca239746dec80344f1a5317a1955
MISC metadata.xml 1159 BLAKE2B b465be32d21f14659aac703a5080baa3c39f23e5610a15a5e9b29a9902888aec980c27e3281e395296140d00a73720cd213983f98562dff03bbb340aac18779b SHA512 6c476c17c8e42dec4b308c0deb4834a474cdd0ed3b663bdb2f257f23d9297ca721fccfd03697d4cbbacc1a3a78318c0639c333e078fc759b3e364d6703defbdb
diff --git a/sci-mathematics/rw/rw-0.9.ebuild b/sci-mathematics/rw/rw-0.9.ebuild
index da2e390db2ad..5f2e0b011c6a 100644
--- a/sci-mathematics/rw/rw-0.9.ebuild
+++ b/sci-mathematics/rw/rw-0.9.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -9,8 +9,7 @@ SRC_URI="https://downloads.sourceforge.net/project/rankwidth/${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
-KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
-IUSE=""
+KEYWORDS="amd64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
# We have a file collision (librw.so) with xpaint, bug 560210.
RDEPEND="!media-gfx/xpaint"
diff --git a/sci-mathematics/singular/Manifest b/sci-mathematics/singular/Manifest
index c77462b422ba..15cd94addd48 100644
--- a/sci-mathematics/singular/Manifest
+++ b/sci-mathematics/singular/Manifest
@@ -1,8 +1,8 @@
AUX 60singular-gentoo.el 298 BLAKE2B 5b42e2083037e2ff2ace5597ddebfb079920e09ed91d1a359e058fc654c6778456174d6cee9242f7fcaf81bf1464f47f43604b9e4eb298f051c6a4daba4630ca SHA512 4c17a25d91c085e12f26441fcde858e61bf191bd7d9dcf63ff5b5a1dce1d63e3f7c4f78ce8afa4f2359ad4ba6eb51f3e224ae6c502b18f5f7a76738534337431
AUX singular-4.3.2_p16-lto.patch 825 BLAKE2B e5adfbb5febd9722330362815be23c49431a8953d17fb63669749971b8a0aba59f242a1ea17c5b06c5054146853e2f480eb74b91af4db80dac4c0101415275e7 SHA512 efd33048a125b8e3026583802ac5060947c2313c98cd4ba6046f2de62703a2923212b28a0f633ff801f58592b7deaef1f0f84c643f4131a0e672e12ff506008f
AUX singular-4.3.2_p16-test-underlinking.patch 8292 BLAKE2B 9b63377bf203be189be2f4840f098f9b0ce72857030eb2ac8abc6d7f768b5c0e1fbc268c732b08811e8fdab77fd49c26463adadc764114dca23d4ca6eeac6225 SHA512 8fcccfdbb40904972a70ba11a3cc9f9d15852f370d842883d21a19bc7aea45feb7516037e49ff1396a9520e277d7c497c7394f339112332c6594b0205a1965c0
-DIST singular-4.3.2p10.tar.gz 20848377 BLAKE2B 2487eb40c70dca516eca94585c59be0ebfeb43edce87dd16a2874bbefbe502fadcfda1164922ab7738a257e59f9e6b6535b7447702d325b36f1358ed5048c7dd SHA512 9b914e8db2c4936184594200b07d37fc952a1399c3accb1ed30ec4a4b450afd3e3c174343e1169520d0d1ed6ac2e6d261fbbb731082e07b7caced4b5790f295e
DIST singular-4.3.2p16.tar.gz 20880476 BLAKE2B ce226a6867b764e593ddbf2c71220d9ea14ccdfd956046d5a94dfb768a97927ca3cf961a9ea808cb77028f2c65d989032202d3a0bde555ace945df1e987077a8 SHA512 1dae0e229e124db03e5e240c3ab2f1049c9f77cf369f701c4a2d0767ba9c23baab2d5d14271e415a3ccbf7b9a9297fcf324b8ccc2841a5156d6ee846cb409de2
-EBUILD singular-4.3.2_p10.ebuild 2697 BLAKE2B 0e84c9aa03218572541346aa9b7ff1866cb612ee3b86e810d5e9906c15f5522578886322b1c1c682639cd42f719fafa00e3e876ead023437a1d6cb9c08ff6666 SHA512 82f213e4c10c89ba82b238b5cbe43dd92bafb7d3a5cc42e6b418e271463bf1d356e3814ff6ce78c08139a516c51e7580673f8d501ae19fd2e3c24c8c9194b7fb
-EBUILD singular-4.3.2_p16.ebuild 2626 BLAKE2B f19285eaf7d1ba312ae7a381668919a2d1f3b832f9c640fced970007a862eb68550f4eaee16b0596347523bca85de7bff5a84446893230a9d2b261c6b9f8c341 SHA512 91afc044fcd8051dbe0ae9a64ed7c492475806ea859a37f6462ec6430836626a184b8311210eba0f17d1bdd348e44ccdfac1bb7bb8ff37634726218e61672e52
+DIST singular-4.4.0p2.tar.gz 20924020 BLAKE2B 0d663b830c37c96635303faeb14a55e0eff05bc378a3263cf83374893056b1c3175718f6b0870ac0c906a92eda59db0ca91a39a7b69a88d298a4a7993b9249d1 SHA512 df3faf025f30ab1c60460f661c4cec945a410311ca89d0756eafb57b430bb53ecec103b90ca91891fc7b1e720938a8259a9b256b6acd322c021c33e628b6654b
+EBUILD singular-4.3.2_p16-r1.ebuild 2630 BLAKE2B abd50d631f7407043c5fc6a8748fb798a3548c643c5b88bf1303fa63a3da36753668cd9d8293a6659c52664d3c0e33fee5f90221ec56404a49c0f5514bf7602e SHA512 56f62d3035e33937f641e4242063f6176ab6cc4391f0575240ce06591fbb40f51efdcbd60c19be68c84fe2d2dc9295233613158e7be8f81020cf0622506bd654
+EBUILD singular-4.4.0_p2.ebuild 2493 BLAKE2B 3622d734ba8416853ec924a4002f6678056ddaaab72ee78de01fcb44b51737e74c3a4db2d182ee579366b3c28e0861cc558693a3c19fa0e648a5e284763ddc8e SHA512 40ac5cc03a036799ddbd15914f847423da2f5b5a855425a55a3ba83bace669ca814c9f7440fe90797865b2fb96f4815135ed83d4551b80456ca41511cc89262f
MISC metadata.xml 862 BLAKE2B a6e991149cb925158806177b1b4a76da2b747b3273b395c14455993a99f4cf83de141980303a068b9068983b8adf4da884b81e80546a3d2dd162f188dc759385 SHA512 9e40cf7b3841bcf8289f24903e392df2a812b6d815f71da41d95a81bb89f493ab1afcef749ef47960ba683dc3433d2c4488015990806dde0b560ffe3bb6ca545
diff --git a/sci-mathematics/singular/singular-4.3.2_p16.ebuild b/sci-mathematics/singular/singular-4.3.2_p16-r1.ebuild
index 94a83c7da0c8..ec9fb1763617 100644
--- a/sci-mathematics/singular/singular-4.3.2_p16.ebuild
+++ b/sci-mathematics/singular/singular-4.3.2_p16-r1.ebuild
@@ -21,20 +21,20 @@ S="${WORKDIR}/${PN}-${MY_DIR2}"
# are no GPL-2-only files.
LICENSE="BSD GPL-2 GPL-2+ GPL-3"
SLOT="0"
-KEYWORDS="~amd64 ~ppc ~riscv ~x86 ~x86-linux"
+KEYWORDS="amd64 ~ppc ~riscv ~x86 ~x86-linux"
IUSE="emacs examples polymake +readline"
# The interactive help uses "info" from sys-apps/texinfo.
RDEPEND="
dev-lang/perl
- dev-libs/gmp:0
+ dev-libs/gmp:0=
dev-libs/ntl:=
sci-libs/cddlib
- sci-mathematics/flint
+ sci-mathematics/flint:=
sys-apps/texinfo
emacs? ( app-editors/emacs:* )
polymake? ( sci-mathematics/polymake )
- readline? ( sys-libs/readline )
+ readline? ( sys-libs/readline:= )
"
DEPEND="${RDEPEND}"
diff --git a/sci-mathematics/singular/singular-4.3.2_p10.ebuild b/sci-mathematics/singular/singular-4.4.0_p2.ebuild
index 7a31bdc8b895..7cadc4a9aeac 100644
--- a/sci-mathematics/singular/singular-4.3.2_p10.ebuild
+++ b/sci-mathematics/singular/singular-4.4.0_p2.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit elisp-common flag-o-matic
+inherit elisp-common
MY_PN=Singular
MY_PV=$(ver_rs 3 '')
@@ -21,34 +21,26 @@ S="${WORKDIR}/${PN}-${MY_DIR2}"
# are no GPL-2-only files.
LICENSE="BSD GPL-2 GPL-2+ GPL-3"
SLOT="0"
-KEYWORDS="amd64 ~ppc ~riscv ~x86 ~x86-linux"
+KEYWORDS="~amd64 ~ppc ~riscv ~x86 ~x86-linux"
IUSE="emacs examples polymake +readline"
# The interactive help uses "info" from sys-apps/texinfo.
RDEPEND="
dev-lang/perl
- dev-libs/gmp:0
+ dev-libs/gmp:0=
dev-libs/ntl:=
sci-libs/cddlib
- sci-mathematics/flint
+ sci-mathematics/flint:=
sys-apps/texinfo
emacs? ( app-editors/emacs:* )
polymake? ( sci-mathematics/polymake )
- readline? ( sys-libs/readline )
+ readline? ( sys-libs/readline:= )
"
DEPEND="${RDEPEND}"
SITEFILE=60${PN}-gentoo.el
src_configure() {
- # -Werror=strict-aliasing
- # https://bugs.gentoo.org/927675
- # https://github.com/Singular/Singular/issues/1212
- #
- # Do not trust with LTO either.
- append-flags -fno-strict-aliasing
- filter-lto
-
local myconf=(
--disable-debug
--disable-doc
diff --git a/sci-mathematics/slepc/Manifest b/sci-mathematics/slepc/Manifest
index c6945aa7fed3..935d5be5a64b 100644
--- a/sci-mathematics/slepc/Manifest
+++ b/sci-mathematics/slepc/Manifest
@@ -4,13 +4,16 @@ DIST slepc-3.18.1.tar.gz 6013016 BLAKE2B 1526b7e6e0f0387a8410cfcbee9bc62f35f9304
DIST slepc-3.19.0.tar.gz 1803822 BLAKE2B 742cc773e649d46ff8513263ef53fe5d62f6cac537d5444eeeb494d0816d496a5c0c2f260615aa8a82ebdc983877302acf7d0c88f01bd4bea66246149dabac13 SHA512 edb8c589c162766a7b4a81b484356f2a5b2f70a7c90c87e39efda1a00f6fe544d7ae644e8903059b7dab990c1fa2129cd5d1c7dbb759511483ab43d3d691419c
DIST slepc-3.19.1.tar.gz 1804559 BLAKE2B e70d0801f84ee62409efd53b56cf57405017ee02cbc0c5484ca2aaf550f97ce8be665a360d774b69b8315dc1cdd0404535a316b6d744c7d0a6f87129c93dcf4d SHA512 a0bcbdb917e0a9606ba2bd00ee04e3016e9d5feb7e6ced069c1c57452a8661cdb57fa0d81004340367796cec91b7f9280339c7c0dfaaa0e5f839d91194dd43cb
DIST slepc-3.20.1.tar.gz 1822991 BLAKE2B 5ce61d5087b2157b005170f7e441bcece4462d98120f7b731365d29c5f49dd3bc2d868f1ef70456f7cf03a499b8e1d44ba2e20c257b569e0717060bc01d2ec0d SHA512 fb1b07e72f83ff4c16c93e63e0d07fd1459c807d9995e543dd3e93e82b374be0c5a56ca2384142af8fb7302550352a4376889ecd3a80babe964d7c69ac1e500f
+DIST slepc-3.21.1.tar.gz 1827860 BLAKE2B 64da6b28bbea6a811972c9ec4115a44c49609a9b98524001aa53fc6bafe0dfbe0497b799204a80e387bfd9c588cc7858fce5835249e1d8d3a93d09c6d622feb8 SHA512 ee80d868fcdc9be63ebdf07020900c99d72867c5e8f1778de38bfa7890b083cbe5a03ee32a7886607bba04d42218b1f4d526b82a8b1b1f24d78f3ee4ef998db3
DIST slepc-with-docs-3.19.0.tar.gz 6320650 BLAKE2B 32d383d7ddfe6cf21755fcae768517830076d38ef4c0d844c0a4270194de541a32849883d951f1a47d98491be05866b415de3ca6148b9d9cdf0bfc5e6487234e SHA512 48695c8449a323755a5d8bd3e88560e72ef82a48d0d1150e2a751a323db02836b76666bbaea3bb44c9a79b900a93337f6ced12aba6cfd939a7c1edae49f17e71
DIST slepc-with-docs-3.19.1.tar.gz 6325794 BLAKE2B 45f33632b2096df5b25a910da33307bf1b3023949068cc84dda091a6fd142a8dc155c4d81e500dde05c3e852f87165b9cf72cdd1844a5fa7da554fe5a7740fea SHA512 5d886f05e6e21f7344391aacb892ae44cc5ac6f2144e9738fa318aab3724c010e51c968f242b5a19988e362f6f5a9d28a57fe4a4749a18be928ad458b3583936
DIST slepc-with-docs-3.20.1.tar.gz 6381729 BLAKE2B 857e3827319258809691b1abd16a1686a8eb8b435495bcc25588b01fc369e4aad87060687d16030221524a08aa52f666e093471e0d7bca23c32dd2e3a3589dd1 SHA512 70869e9dcfdb63df62e63f6b69297e989a42e38116b525fbef3a75962b968cdccbc8bf17f7b1e74de910f1e66b704a9e36b2ffd1ae924d3279d80969d75f9f97
+DIST slepc-with-docs-3.21.1.tar.gz 6379594 BLAKE2B 96f544bfa5c378c65192e2ea9885939a66f254f1a92ac0bf51b118971171bc9de23307a95dc5505b8177fd5dc8c2c694ceb77f3dac9c65df6338dc8f0c4fce4c SHA512 6c110664aec40721a1cd787d922ad46d0cd5c03762cd29cfd13491656ffeebb8068ac7a0d81946dee74645886a9230134f161ce50f714c705fb3edf9afd63a16
EBUILD slepc-3.16.0.ebuild 1579 BLAKE2B b876abd6c282603aa9cb2cb5e8f01bee0cef210c238436e5f1a6869191fb5497a4eb8ac48e7499c3a633d8b289230d0ad850fccf67347a943a6b1bef0732b64c SHA512 447ef385070baf15329aae216584ff4aa2233ece54d557c2486b462a809002d938f0151dd397a6510ea886e04b5c56de63e013c9c21c835c1b251c2218175454
EBUILD slepc-3.17.1.ebuild 1526 BLAKE2B 60ae7829a7cb1f6777c19b85128119d2b6b43fcc9921499e74ccb38c5cf1cf409202a0caee3226ea7c0d8df3bf376badef8239dac3b97f265e8386d4f70814ff SHA512 5393dc87e56c3ba9c8c8327a3d755954cebc7f9ae08f168ef0795c676ae8d0ee1ad185fd816213015e268faeddcf20b7c01d488afb8bc620623e5869a95fea25
EBUILD slepc-3.18.1.ebuild 3423 BLAKE2B 16a5cab2a89de467db3c8f7badf6b759e0c85a14032d0936c45eda68b2484abd2f63ea9f5a91d1043637063248d64f5a88249346fd4fb084da787668c874c010 SHA512 acdce4012337e69837d901cbf64b78ceed85474ca5442492e3bc2fc5c819c20226f53af83fa4f05f680a679a343f39d198d144eb9af8370a2137c4f0fdbb470e
EBUILD slepc-3.19.0.ebuild 3609 BLAKE2B 503653a74d38565294c248f35ebefede69d108f3e329ced6327314551409b79cbb0d0aeb0ec8000fdaa9f02e288d38d28b0572585866702691061ed27e936d71 SHA512 46ad6f82b75a9923f5c57542efac85a337c8ae3ba76b1d0761745349cca13381b2187b1f3d679497652a4f81ed8468d74a21f7ea867658351f17e51a3545dadd
EBUILD slepc-3.19.1.ebuild 3609 BLAKE2B 503653a74d38565294c248f35ebefede69d108f3e329ced6327314551409b79cbb0d0aeb0ec8000fdaa9f02e288d38d28b0572585866702691061ed27e936d71 SHA512 46ad6f82b75a9923f5c57542efac85a337c8ae3ba76b1d0761745349cca13381b2187b1f3d679497652a4f81ed8468d74a21f7ea867658351f17e51a3545dadd
EBUILD slepc-3.20.1.ebuild 3609 BLAKE2B 503653a74d38565294c248f35ebefede69d108f3e329ced6327314551409b79cbb0d0aeb0ec8000fdaa9f02e288d38d28b0572585866702691061ed27e936d71 SHA512 46ad6f82b75a9923f5c57542efac85a337c8ae3ba76b1d0761745349cca13381b2187b1f3d679497652a4f81ed8468d74a21f7ea867658351f17e51a3545dadd
+EBUILD slepc-3.21.1.ebuild 3609 BLAKE2B a5477783ed50373e8d41d42beb99f7353b132e96f2b0a0724394f7f35823db66ea526bdf08c92b619653b85c66a5712e7a9ab98486129c2704f8d3730064cc79 SHA512 802cc6ddd9cc0ef27777db2209cc246bf4dd4151a30b18d96235c90b3efabe6b3a963a605aa8a73755b6b3fb83f75e9b73a232e2b84f3f542f50f3fe66194201
MISC metadata.xml 534 BLAKE2B d69665b8748404c15776f2a3759477d0ea6ab79f7f0f33fd2199310641bfb47d96189e3479728cafd4978af9c913aaa424221a1aef42727f9af244ff9040c708 SHA512 cc16480b710ee9977bb3fd3b1e3c664b29127a5385952d41e62578d0d22c06a06a2f5194ca9fc7521d8dbbc9b1ffd53fc5e019128c62910b556f3fceefe7c8ae
diff --git a/sci-mathematics/slepc/slepc-3.21.1.ebuild b/sci-mathematics/slepc/slepc-3.21.1.ebuild
new file mode 100644
index 000000000000..c96091f2d520
--- /dev/null
+++ b/sci-mathematics/slepc/slepc-3.21.1.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit python-any-r1
+
+DESCRIPTION="Scalable Library for Eigenvalue Problem Computations"
+HOMEPAGE="https://slepc.upv.es/"
+SRC_URI="
+ !doc? ( https://slepc.upv.es/download/distrib/${P}.tar.gz )
+ doc? ( https://slepc.upv.es/download/distrib/${PN}-with-docs-${PV}.tar.gz )"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="arpack complex-scalars doc +examples mpi"
+
+REQUIRED_USE="arpack? ( mpi )"
+
+RDEPEND="
+ =sci-mathematics/petsc-$(ver_cut 1-2)*:=[examples,mpi=,complex-scalars=]
+ arpack? ( sci-libs/arpack[mpi=] )
+ mpi? ( virtual/mpi )
+"
+
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ virtual/pkgconfig
+ dev-build/cmake
+"
+
+MAKEOPTS="${MAKEOPTS} V=1"
+
+src_unpack() {
+ use doc || unpack ${P}.tar.gz
+ use doc && unpack ${PN}-with-docs-${PV}.tar.gz
+}
+
+src_configure() {
+ # *sigh*
+ addpredict "${PETSC_DIR}"/.nagged
+
+ # Make sure that the environment is set up correctly:
+ unset PETSC_DIR
+ unset PETSC_ARCH
+ source "${EPREFIX}"/etc/env.d/99petsc
+ export PETSC_DIR
+ export PETSC_ARCH
+ export SLEPC_DIR="${S}"
+
+ # configure is a custom python script and doesn't want to have default
+ # configure arguments that we set with econf
+ if use arpack; then
+ ./configure \
+ --prefix="${EPREFIX}/usr/$(get_libdir)/slepcdir" \
+ --with-arpack=1 \
+ --with-arpack-lib="$(usex mpi "-lparpack -larpack" "-larpack")"
+ else
+ ./configure \
+ --prefix="${EPREFIX}/usr/$(get_libdir)/slepcdir" \
+ --with-arpack=0
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${ED}" install
+
+ #
+ # Clean up the mess:
+ #
+
+ # put all include directories under a proper subdirectory
+ mkdir "${ED}"/usr/include || die "mkdir failed (include)"
+ mv "${ED}"/usr/{$(get_libdir)/slepcdir/include,include/slepc} || die "mv failed (include)"
+
+ # put libraries and pkconfig file into proper place
+ mv "${ED}"/usr/$(get_libdir)/slepcdir/lib/{libslepc*,pkgconfig} \
+ "${ED}/usr/$(get_libdir)" || die "mv failed (lib)"
+
+ # move share to proper location
+ mv "${ED}"/usr/{$(get_libdir)/slepcdir/share,share} || die "mv failed (share)"
+
+ # fix pc files:
+ sed -i \
+ -e 's#include$#include/slepc#' \
+ -e "s#lib\$#$(get_libdir)#" \
+ -e "s#^prefix=.*slepcdir\$#prefix=${EPREFIX}/usr#" \
+ "${ED}"/usr/$(get_libdir)/pkgconfig/*.pc || die "sed failed (pkgconfig)"
+
+ # recreate a "valid" slepcdir:
+ for i in "${ED}"/usr/$(get_libdir)/*; do
+ [ $(basename $i) = slepcdir ] && continue
+ ln -s "${EPREFIX}/usr/$(get_libdir)/$(basename $i)" \
+ "${ED}/usr/$(get_libdir)/slepcdir/lib/$(basename $i)" || die "ln failed (slepcdir)"
+ done
+ ln -s "${EPREFIX}"/usr/include/slepc/ \
+ "${ED}/usr/$(get_libdir)/slepcdir/include" || die "ln failed (slepcdir)"
+ mkdir "${ED}/usr/$(get_libdir)/slepcdir/share" || die "mkdir fialed (slepcdir)"
+ ln -s "${EPREFIX}"/usr/share/slepc/ \
+ "${ED}/usr/$(get_libdir)/slepcdir/share/slepc" || die "ln failed (slepcdir)"
+
+ if use examples; then
+ mkdir -p "${ED}"/usr/share/doc/${PF} || die "mkdir failed (examples)"
+ mv "${ED}"/usr/share/slepc/examples "${ED}"/usr/share/doc/${PF} || die "mv failed (examples)"
+ ln -s "${EPREFIX}"/usr/share/doc/${PF}/examples "${ED}"/usr/share/slepc/examples || die "ln failed (examples)"
+ docompress -x /usr/share/doc/${PF}/examples
+ else
+ rm -r "${ED}"/usr/share/slepc/examples || die "rm failed (examples)"
+ fi
+
+ if use doc ; then
+ dodoc docs/slepc.pdf
+ docinto html
+ dodoc -r docs/*.html docs/manualpages
+ fi
+
+ # add PETSC_DIR to environmental variables
+ cat >> 99slepc <<- EOF
+ SLEPC_DIR=${EPREFIX}/usr/$(get_libdir)/slepcdir
+ EOF
+ doenvd 99slepc
+}
diff --git a/sci-mathematics/smtinterpol/Manifest b/sci-mathematics/smtinterpol/Manifest
index 7abdc5ae56b5..46ba5733539d 100644
--- a/sci-mathematics/smtinterpol/Manifest
+++ b/sci-mathematics/smtinterpol/Manifest
@@ -1,5 +1,6 @@
AUX smtinterpol-Version.template-version.patch 468 BLAKE2B 38fb0d6e26949f0e56a13ba41a440018e08409bc7527c4241f7c2d1a1824d727aa79f00dc45a854cbcf457caeceb032ec94ffa026234117073de011c89e94ccc SHA512 035dd014bc899f1694523dca5c59e2e80c510b77d3184ba38ec6c01439a555322e2fa3b9f2c8246656fe981685b49eef6370624cc55646222cb13fadf5569e0d
AUX smtinterpol-build.xml-basename.patch 527 BLAKE2B 41e72630f9d8502f00fe79261e9a45d812fad310ccd3ae45205dc0245abbaa5113824ec4fae1de814b8a98f6bc154de21bbfeeda76d514224320545b5680d0d8 SHA512 6a327c27aa661468619b0b94eab84ab894bd5a7d96ab5ac8c50d1ea4cf1286397a6a2b662fa7a352c6f61d1dcc7d51fbf4a7c7c083070e3625877b49831b790c
DIST smtinterpol-2.5_p20211018.tar.gz 10676726 BLAKE2B 27bed1f707241416f71d10ae33c39b7fe638b9650a26f3237409722a8782af3b09890dce9acf30ab2d0412cfbe94f57684850c51e486d3d7f7dddd8025021c8d SHA512 8630ae5f9cf3fdcbceffeeb1f199c2e21e27d0348d3aec5a7062ee5eb942c640661ae58603f273881f30f24630a92b041ea867086ce6d0a2eab5fdd924eb01c3
+EBUILD smtinterpol-2.5_p20211018-r1.ebuild 985 BLAKE2B 4b1823be28d8743af7c9ee1bea76aadf05df58b760743b8df4377f7a6fd97a17a591d39e5b874beb4a97f8049496b5bafbc0bd8dcc660c02f9f48ce4b01be5c8 SHA512 361a73a7262bf7be8b720397344a19892e9af07a78120144f778983189a358d72040da2480c142f7e6d7992c0dcaae2e92b708bce676fb33a12751c40949e395
EBUILD smtinterpol-2.5_p20211018.ebuild 944 BLAKE2B 1941ae5f0b1c35b15d8248fcc1d6dcd953aa3e8426fd8cce299b7eb553e708e83c7a13d9845647c035b42da499477dde6f423e5f3afd0f85df5aefa7dc8aeb3d SHA512 f5bfe96669c19f2b70c7150ad8e1114afe4cc9c52c51e6ac6946ebdccca7492f52fe21631774e857938d798d691265f61ca021406c79673723085c5932eff183
MISC metadata.xml 443 BLAKE2B a49ab13ae830d7e212d85005e32f535d7a13d60ca39d28a0534b2f3dbd779b0afb39918649c903ad698c02b755e1d80e6dd928cbd6d1c045c0bfd514b7a51eaa SHA512 52ea501a323d32e118edd1e82217a6c92432fef5ccce7fdfa78023e0ef2aa76a8c66a274524be18aa39d26c547c00a5035c3998a74f81e6ba73d1c1458e33e36
diff --git a/sci-mathematics/smtinterpol/smtinterpol-2.5_p20211018-r1.ebuild b/sci-mathematics/smtinterpol/smtinterpol-2.5_p20211018-r1.ebuild
new file mode 100644
index 000000000000..05a73e04d6b8
--- /dev/null
+++ b/sci-mathematics/smtinterpol/smtinterpol-2.5_p20211018-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+[[ ${PV} == *_p20211018 ]] && COMMIT=32d7fa8751f668f9e9a18e4e96df3337b53d2150
+
+inherit java-pkg-2
+
+DESCRIPTION="Interpolating SMT-solver computing Craig interpolants for various theories"
+HOMEPAGE="https://ultimate.informatik.uni-freiburg.de/smtinterpol/
+ https://github.com/ultimate-pa/smtinterpol/"
+SRC_URI="https://github.com/ultimate-pa/${PN}/archive/${COMMIT}.tar.gz
+ -> ${P}.tar.gz"
+S="${WORKDIR}"/${PN}-${COMMIT}
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND=">=dev-java/ant-1.10.14-r3:0"
+RDEPEND=">=virtual/jre-1.8:*"
+DEPEND=">=virtual/jdk-1.8:*"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-Version.template-version.patch
+ "${FILESDIR}"/${PN}-build.xml-basename.patch
+)
+
+src_prepare() {
+ default #780585
+ java-pkg-2_src_prepare
+}
+
+src_compile() {
+ eant all
+}
+
+src_install() {
+ java-pkg_dojar dist/*.jar
+ java-pkg_dolauncher ${PN} --jar ${PN}.jar
+
+ einstalldocs
+}
diff --git a/sci-mathematics/spin/Manifest b/sci-mathematics/spin/Manifest
index 1c4f81d81786..dbe72d8ffaef 100644
--- a/sci-mathematics/spin/Manifest
+++ b/sci-mathematics/spin/Manifest
@@ -2,4 +2,4 @@ AUX spin-6.5.2-makefile.patch 320 BLAKE2B d88604300a9a1c7f16339e9c9c0ba96f79e3a0
AUX spin-6.5.2-nesting_limit.patch 1755 BLAKE2B 8c7b54262492dfc399bfbd90383a801375f4a6c6d7604f2f17841285b3ffb2ef32db67a02bdf4bee3b71633b436e057d4e0d6594c1a545ee7278c578546fb563 SHA512 dd92d130c61698d44c88e13ff8b744f3412dd5940e37c0c5e971889644e5482fcac1b0483e8dae0b6197749828a8dbdf74a5402fc2e8fb7dd88876199e02832a
DIST spin-6.5.2.tar.gz 6084903 BLAKE2B a075043c55609de5860c3a428d356a9618a4062667e06d92797e1fb87cb4c805ac90ac580c7d9dfac1d5be1dda4c7f9c9f72927826b921c23710a858adb3eb4d SHA512 ff1d378076995fa5a8b66dd31d19d8bad6296b968183180251d267c926c20775edda927a31f466199e01231f6233c3a5166fd51ec44b02d570070e857d8ba7f9
EBUILD spin-6.5.2-r1.ebuild 1111 BLAKE2B b2b0367fb373fdd5e9dc47c9f561fad3f6986e523dfcfb234297675e0d005d223d456d3fa5452e16374f00e7e57d971cfc48fd3c837070ff6da211e2436d808a SHA512 a2d4af0f6e8be46ff6e323fd66e8d22e2dc9ab963c9f69d7cf93b4974e24d076e55bae6a01053ae6ec58aea40d859ca937b22da00455bc7c3730b838ed555baf
-MISC metadata.xml 327 BLAKE2B 1b6a2bbece4fff801301d1bc5b86ebea4fe32096f1fb76d24831bd299608d73116261733e1318cf76532a336c467b394655157145ba565e256626ca66bf191be SHA512 5baaef50807b13c5a3e63d394a0df2b75ecb7973d1467d918329b55536ff6280da086311ee56bcff9fc156f377f077916d572f3cf8a1756d959b4bdb70b55ae8
+MISC metadata.xml 249 BLAKE2B e10620a2198a73cc89eba59fed33a3c0dfb695ec32736d048cec0e20fb089701500b74f8c79eea2810fc053cbe00336cdd95a2b9179dfe73ed426029ea7289e8 SHA512 4261abf986eb6c1696c8d8fcf89e3a4de5748d11d8e7a4b11e6b900ee9d34b4061a0636385bb8e8a024aa3516526b1f495aab0fad585a8ff8c80e6f80e078b10
diff --git a/sci-mathematics/spin/metadata.xml b/sci-mathematics/spin/metadata.xml
index 081ee86ca70e..a8e0865a4e65 100644
--- a/sci-mathematics/spin/metadata.xml
+++ b/sci-mathematics/spin/metadata.xml
@@ -1,10 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="person">
- <email>marecki@gentoo.org</email>
- <name>Marek Szuba</name>
- </maintainer>
+ <!-- maintainer-needed -->
<upstream>
<remote-id type="github">nimble-code/Spin</remote-id>
</upstream>
diff --git a/sci-mathematics/stp/Manifest b/sci-mathematics/stp/Manifest
index d7e50d42d770..92f779201219 100644
--- a/sci-mathematics/stp/Manifest
+++ b/sci-mathematics/stp/Manifest
@@ -1,8 +1,12 @@
AUX stp-2.3.3-CMakeLists.txt-fix_cflags.patch 721 BLAKE2B 31f116d43270558ee88b3cde1cb6303ee35a0078ca7c1be805260a405d5932068609918d711e3c6f3ec0e01e468c0647e1b2b392311e9408a7959736c86cf720 SHA512 1b5f2e9592f178ba31797da152e960c2a78ecf37dae2737f122f6becf16b0235e515129119b176fb5439e77597ab3d5c5f910bb764e13740922bc395a3fab17b
AUX stp-2.3.3-cstdint.patch 275 BLAKE2B 9343de9e9e4eeed85b2d8e61ccd1ab04fc8b0b7af29a2e54fb047e61ee9552cf06043d1fd80b4685ac6095615b8c5a5b5991c31cf207daebe442cbfd44352320 SHA512 91cdf2814b13bf73450aff6adaf0daf9a38ba0712046b808555da9817ac64a346f4e3fcb33b0c1c78ad49a2b5fe964c04966e154b269a1f323e59772b91ca6fb
AUX stp-2.3.3-stp.py-library_path.patch 372 BLAKE2B 1e36f48d2c403cdea156157826a1b3c3e424dc864bf87b30c66d13deadacc25479aaca2c44f89773c20c7ec48b49ce0c65e642e46a8ea22bd5c4695fe15ae86f SHA512 d5feaf02395d90fdba997aebbf582d764e9c238cce4300caba4316b60a1164cc3ce11e8756dd341dc6e3bc53a153fedac4c322776ca5d5b951eaf3a997456973
+AUX stp-2.3.4-gtest.patch 1077 BLAKE2B 338ba55fc5f5f4dba866585dfa6c72eac2b7364a442e3790c774e1cad6c6101f71c0baa807fa366e5479edcd69db737f9b5fd91cffc917ca7cee5967c3d6680c SHA512 f759aeb1701c16190e9808f6f116deb79280bc7a6c1becb0c37b1253a85189a5862ce36dd4da9c73d7ad4e0359c7444bff9e1d0ac70758323d5e927cc9350aca
+AUX stp-2.3.4-lit-cfg.patch 871 BLAKE2B d784973495a76d01fe1b3a69ba1cc0aa4511dcca43f19cf82e0a310f95e20f2834cee2c97b6b050f74561d625561c6f9e2671af845436f290b2ee34ac79712fa SHA512 73769c1a42dcc2906283aa3e8684155c1757fd5c7c8ef349822350c1ffa17f9858eea0a36e43eda354b886f22a9a79b18a592133438fac361035a44f961ec0f9
DIST stp-2.3.3.tar.gz 2577550 BLAKE2B 9ebedf3cb8e6b50d037cfacbc14826bd4e6505d29a53b1fcc6580749f0637fe5f96619c166babdb3a52b18fb6337e49c02f5693e233effe84d0131d0e7402381 SHA512 a0b1bf419d8230e40ce0aee90d9c8c9d814aca300831c24b3576c75623362942abf20673c419f9f0ea1e0505bfae000dc65fdd818179f5759879b0b255f1b99a
DIST stp-2.3.3_OutputCheck.tar.gz 12002 BLAKE2B f8fafba8f7957f3d0ee480b9e1e8c8923c373cf134512d6329adf84a96f3177ad07d00eae4dc6dd8d4b09ca82dfc8b425602f1926e3f88ccb2556b4b7121e5b9 SHA512 36012ae2b2aee1ff3f36ba1678a4bcbfeb590e01c2042ca35eb2f49b6a890b767c1809d1415e7b03f2118204361f834ad9caf70319b59fd14b2c140bf858d16e
DIST stp-2.3.3_gtest.tar.gz 469100 BLAKE2B 386444657d3f23e54f01dac8e0ac36da4d97c3eebcc8cf79bfc754c474a5ed64765a0ad389fef358667e468469c47d02a407e13e6882d426a4defb0102e4a758 SHA512 2fc79fe9c8a4e0487e7e76db9508fd2207df0cfe3940a51aeac32e4440afab9e265bfe553b1cd66086cd5a574d8bf99dbb9e1d9c4a70fafd7b31f38825914aa1
-EBUILD stp-2.3.3-r3.ebuild 2672 BLAKE2B da4e83f06666631b8273f40616b1de06b11a3b3fd34f810cfe5c8d8d1f9f6b6aab53748e7a9bb550e22b6bda2db47deb4b7582a6897f0f5419d509af42984016 SHA512 aeb87a19f5c125d90f0ca8c54f80f3c7e87f4a991ea9b0aef1b5350aaf49c2db715a5ca4253d575e4a73c376867c92e5c547f141e6852afefd57fd7dbe7c3cbf
+DIST stp-2.3.4.tar.gz 3543794 BLAKE2B 94813f76db3f1ba5ccdd226d5013c470ea0e265ffccc53050d49b1f7bd09bac87f1baf7d49325b106fd9a2bf934e78e879f58c913685176bcebf0f92a9b70168 SHA512 d4355698cd2d96199bd548d996f0c50788c0329b20e79ea0dd4d9e04b48417850041205d7d9efa342f8a362d203d434ec25aa22649f650f658acac2bfadb3ecf
+EBUILD stp-2.3.3-r3.ebuild 2720 BLAKE2B e9f0cc2ac51a410bb1ad5541ef5bf92e3c9a9d5435ab83cabcde35c084832a2d4f8bd1c4feaea202ac91a438e4d120ce3c3a9c59a255bd159404d0a6daa18e36 SHA512 b0b630393f1aba012adec51daeb18fa5df56938dfb15a91a97c7916035a87a2c5283a90048879e31b532b38322f3d559d497f7df93e0354f5d6900ade6aaae5d
+EBUILD stp-2.3.4.ebuild 2269 BLAKE2B c3fed746e5847fc5aaff25944fb0adbec115f851d8f89865ae4f4140bd1157ea5f079e6108b75fe773891670816bbc0f6b9e82259e2f5fadf6b32f41c24a464b SHA512 c96405d66299bf5a384e3750ff427e42502882d772117181fe88ef8778e29c72295be0bf7ee5ea1a83c0e544e4d8733d09d7d5e79d45bb50fc949f95d30b8cb6
MISC metadata.xml 1110 BLAKE2B e13b9420b7f730e6b9e2571e3f4e8a48cf7f54b16fa767fce48099549071c4c819e16a5da25b6779c77a5a7a7f21c3ec61eeb2719867f874a1c4fa21b84e32f2 SHA512 aa3ddfd8d3bf4647f230f0ca55b6f70f9f82f2ae63fe21edad637397fb1bd2779241a2e439a48bed59bd1de11ef3b4e275731c6a90873ec5d86bb5897bf2a9f0
diff --git a/sci-mathematics/stp/files/stp-2.3.4-gtest.patch b/sci-mathematics/stp/files/stp-2.3.4-gtest.patch
new file mode 100644
index 000000000000..25fb88b87ea9
--- /dev/null
+++ b/sci-mathematics/stp/files/stp-2.3.4-gtest.patch
@@ -0,0 +1,26 @@
+--- a/tests/CMakeLists.txt
++++ b/tests/CMakeLists.txt
+@@ -55,10 +55,7 @@ set(LIT_ARGS -s CACHE STRING "Arguments to pass to lit")
+ # the location of GTest source code is probably error prone so using a copy in the
+ # repository seems like the easiest thing to do. This also has the added benefit that
+ # everyone uses the same version of GTest.
+-set(GTEST_PREFIX ${PROJECT_SOURCE_DIR}/deps/gtest)
+-if (NOT EXISTS "${GTEST_PREFIX}/CMakeLists.txt")
+- message(FATAL_ERROR "Could not find GTest. Did you run scripts/deps/setup-gtest.sh?")
+-endif()
++find_package(GTest REQUIRED)
+
+ if (MSVC)
+ # STP is built with the shared version of the CRT, gtest defaults to the
+@@ -68,11 +65,8 @@ endif()
+
+ set(PREV_CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-format-nonliteral -Wno-missing-field-initializers")
+-add_subdirectory(${GTEST_PREFIX} gtest)
+ set(CMAKE_CXX_FLAGS "${PREV_CMAKE_CXX_FLAGS}")
+-set(GTEST_BOTH_LIBRARIES gtest gtest_main)
+
+-include_directories(${GTEST_PREFIX}/include)
+
+ # Add handy macros/functions
+ include(AddSTPGTest)
diff --git a/sci-mathematics/stp/files/stp-2.3.4-lit-cfg.patch b/sci-mathematics/stp/files/stp-2.3.4-lit-cfg.patch
new file mode 100644
index 000000000000..34f92feb28c9
--- /dev/null
+++ b/sci-mathematics/stp/files/stp-2.3.4-lit-cfg.patch
@@ -0,0 +1,24 @@
+--- a/tests/query-files/lit.cfg
++++ b/tests/query-files/lit.cfg
+@@ -6,6 +6,7 @@ import os
+ import sys
+ import re
+ import platform
++import shutil
+
+ import lit.util
+ import lit.formats
+@@ -107,12 +108,7 @@ lit_config.note('Using solver: {solver}\n'.format(solver=solverExecutable))
+ config.substitutions.append( ('%solver', solverExecutable) )
+
+ # Find OutputCheck
+-OutputCheckTool = os.path.join( os.path.dirname( os.path.dirname( config.test_source_root ) ),
+- 'deps',
+- 'OutputCheck',
+- 'bin',
+- 'OutputCheck'
+- )
++OutputCheckTool = shutil.which("OutputCheck")
+ if not os.path.exists(OutputCheckTool):
+ lit_config.fatal('Cannot find OutputCheck executable: {OutputCheck}'.format(OutputCheck=OutputCheckTool))
+
diff --git a/sci-mathematics/stp/stp-2.3.3-r3.ebuild b/sci-mathematics/stp/stp-2.3.3-r3.ebuild
index ae62721212d2..bd4d40fd22d4 100644
--- a/sci-mathematics/stp/stp-2.3.3-r3.ebuild
+++ b/sci-mathematics/stp/stp-2.3.3-r3.ebuild
@@ -100,12 +100,18 @@ src_configure() {
fi
local -a mycmakeargs=(
- -DTEST_C_API=OFF # C API test fail
-DNOCRYPTOMINISAT=$(usex cryptominisat 'OFF' 'ON') # double negation
-DENABLE_PYTHON_INTERFACE=$(usex python)
-DENABLE_ASSERTIONS=$(usex test)
-DENABLE_TESTING=$(usex test)
)
+
+ if use test ; then
+ mycmakeargs+=(
+ -DTEST_C_API=OFF # C API test fail
+ )
+ fi
+
cmake_src_configure
}
diff --git a/sci-mathematics/stp/stp-2.3.4.ebuild b/sci-mathematics/stp/stp-2.3.4.ebuild
new file mode 100644
index 000000000000..ab792a8ff3cd
--- /dev/null
+++ b/sci-mathematics/stp/stp-2.3.4.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit flag-o-matic python-single-r1 cmake
+
+DESCRIPTION="Simple Theorem Prover, an efficient SMT solver for bitvectors"
+HOMEPAGE="https://stp.github.io/
+ https://github.com/stp/stp/"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/stp/stp.git"
+else
+ SRC_URI="https://github.com/stp/stp/archive/${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2+ MIT"
+SLOT="0/${PV}"
+IUSE="cryptominisat debug +python test"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) test? ( python )"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-libs/boost:=
+ sci-mathematics/minisat:=
+ sys-libs/zlib:=
+ cryptominisat? (
+ dev-db/sqlite:3
+ dev-libs/icu:=
+ sci-mathematics/cryptominisat:=
+ )
+ python? (
+ ${PYTHON_DEPS}
+ )
+"
+DEPEND="
+ ${RDEPEND}
+"
+BDEPEND="
+ sys-apps/help2man
+ test? (
+ dev-cpp/gtest
+ dev-python/OutputCheck
+ dev-python/lit
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.3.3-CMakeLists.txt-fix_cflags.patch"
+ "${FILESDIR}/${PN}-2.3.3-stp.py-library_path.patch"
+ "${FILESDIR}/${PN}-2.3.4-gtest.patch"
+ "${FILESDIR}/${PN}-2.3.4-lit-cfg.patch"
+)
+
+pkg_setup() {
+ if use python ; then
+ python-single-r1_pkg_setup
+ fi
+}
+
+src_configure() {
+ # -Werror=odr warnings, bug #863263
+ filter-lto
+
+ local CMAKE_BUILD_TYPE
+ if use debug ; then
+ CMAKE_BUILD_TYPE="Debug"
+ else
+ CMAKE_BUILD_TYPE="Release"
+ fi
+
+ local -a mycmakeargs=(
+ -DUSE_RISS=OFF
+
+ # Cryptominisat switches
+ -DNOCRYPTOMINISAT=$(usex cryptominisat 'OFF' 'ON') # double negation
+ -DFORCE_CMS=$(usex cryptominisat)
+
+ -DENABLE_PYTHON_INTERFACE=$(usex python)
+ -DENABLE_ASSERTIONS=$(usex test)
+ -DENABLE_TESTING=$(usex test)
+ )
+
+ if use test ; then
+ mycmakeargs+=(
+ -DTEST_C_API=OFF # C API test fail
+ )
+ fi
+
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ # Because Python files for tests (in BUILD_DIR) and those installed on the
+ # system differ, and are generated upon install, we have to wait for CMake
+ # to install them into the temporary image.
+ if use python ; then
+ python_optimize "${D}/$(python_get_sitedir)/stp"
+ fi
+
+ mv "${D}/usr/man" "${D}/usr/share/man" || die
+ dodoc -r papers
+}
diff --git a/sci-mathematics/sympow/Manifest b/sci-mathematics/sympow/Manifest
index 7b9975973d4e..d4aeb42f95ef 100644
--- a/sci-mathematics/sympow/Manifest
+++ b/sci-mathematics/sympow/Manifest
@@ -1,5 +1,5 @@
AUX sympow-2.023.6-dont-force-O3.patch 2145 BLAKE2B 711d252e625690400ee7215f9f8d4e7c695945101d2114e18259d1c852795de9803f0b0866b37a6c99346ef3a398f45f6ee41fee949eb8aa8b5ae75042dc46d4 SHA512 6a60fb9f44867d2ba6aa33cfc34d6db7616da62a2d9c8a4ba1881459790c8760f162d0084b2d254938e8b5374fd929ca7f3a827312e76002587796ea516fbe6b
AUX sympow-2.023.6-no-pkgdatafilesbindir-warnings.patch 2289 BLAKE2B 845125575e201767360ebe38ecbf321a254d01d5eadfeee4d36e7c350e939804d7726299d33de0c564f455b5a559c05542f0da5d54e6bcceb22c02907ec0599a SHA512 a5840039ff0bf6c99cd6ef5609bb46aeff48858a57a253e051a04b180839a0f8b36480fffee10e22ef76672073b08ca58a399cb078a477aa447bbbc0c05dd6cf
DIST sympow-v2.023.6.tar.gz 68142 BLAKE2B accff25cb1da5b6935a91179fa399d76148709be54bbd434c0dc6143e88e9cd0f0a3cd96c683da3214366a29d6d0dbb7236d2623ef3f9322b6d4d54c6bad9882 SHA512 efe3b09fff0629e136b029ea615aa09ac1a4f225c06636d653ac921c7de01bf75e2b392a138c3c1af92f2b4f889f5949beeeba5b6e5e6b49e02c605bb9c16ceb
-EBUILD sympow-2.023.6.ebuild 1071 BLAKE2B f535e2beb531d6701be16eff04f20cf73d24ca4443f8b8ba3d886e9aed49770a2dc3a2bbbd04a819ac5059cbca1732d32a20d8e0cb027be5130db9cc817591fb SHA512 f3b674275e559814c785abbce90c64a68b558cf8738f8870bf850fd574c05f1c6c2b2e1ca6223d0d657f1c7c06d783b07e114330a450e5bcb8fa849eaba2b850
+EBUILD sympow-2.023.6.ebuild 1060 BLAKE2B d8f185de5bda0fd85b41aca210e1bc5f762ac56c76c5eab30e45c857661fea3d5c778758535ca3864e9048898b740a3bc9c85a0111af0f6733859982465f078f SHA512 3b79bb81ba2c985a2e2208a7306d17d4aa3a3a49be40b42cfa9b3ab7717a06d64c06752e1e80686f5bc436b5beaf486104fc70ad250776595327e62fb5708477
MISC metadata.xml 771 BLAKE2B d98ac3ebc10b3e0dd9a62bc357e6499e4f1922626d1b7e677a71a33712cc64577aa384a6bdc64c7dcba053dfd3d510b9be99df737316e2dd6fb7ca34de5ea280 SHA512 5eed691be8f8a0d76a96ec60dcfffe3bcc345587eafc4c7bfb51a598ca6f4820b189ad47851b50e038baa01dc8ef152dde1c2ff837b640a1cd22d5fdabbb6cbb
diff --git a/sci-mathematics/sympow/sympow-2.023.6.ebuild b/sci-mathematics/sympow/sympow-2.023.6.ebuild
index 1c69175f15e0..656b21a6fe82 100644
--- a/sci-mathematics/sympow/sympow-2.023.6.ebuild
+++ b/sci-mathematics/sympow/sympow-2.023.6.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -12,13 +12,11 @@ S="${WORKDIR}/${PN}-v${PV}"
LICENSE="Sympow-BSD"
SLOT="0"
-KEYWORDS="amd64"
-IUSE=""
+KEYWORDS="amd64 ~riscv"
# Pari is used at build time to generate data.
BDEPEND="sys-apps/help2man
sci-mathematics/pari"
-DEPEND=""
RDEPEND="sci-mathematics/pari"
PATCHES=(
diff --git a/sci-mathematics/twelf/Manifest b/sci-mathematics/twelf/Manifest
index fcb0c8796695..c452d44c10e9 100644
--- a/sci-mathematics/twelf/Manifest
+++ b/sci-mathematics/twelf/Manifest
@@ -11,5 +11,5 @@ AUX twelf-1.7.1-mlton-20180207.patch 310 BLAKE2B b372c7ca65b4bb12983d84e590d4e30
AUX twelf-1.7.1-mlton-mlb.patch 11244 BLAKE2B e07adfd1520179a8ca3c292638689c8cc344b8d01ebcf2ba9f668cbf2afa5b5132a88d0521ca4123a9165d8fea49cdbab20b48b791bd3e78610d54b534e9e596 SHA512 2d0f42399e444cbb736f38ad7bdc54f51322c17c010b273c365d9db9a1e6c045c19b872d4b5c1e50444559a981aa5569764ac859c7702c116c97c935fd959bfd
AUX twelf-1.7.1-remove-svnversion.patch 241 BLAKE2B f92db57c82d31fae8518d0a3947fd0ebf24ab06aa51fbf0e3a2b271eb30583904d5487f3f4b2605d5ca168f78ca7eed0fdcb4473604c4ae83a2807416341c99b SHA512 07bb5f88580dcb6ae722d7af98c58c96453871f8ce6eb107fbedafc6939a0d8871e3820e933cdc90aa6ca17d8909717f607e3819c34f5f852b7606a7680e7462
DIST twelf-src-1.7.1.tar.gz 1147610 BLAKE2B 9fbb3c5a4823845a0c721112744330658be0e68784ef209a3d17fb72874ef50d7dbb434a7104704a5540f2f0bc30727bfe1ff602f986570f944454e77c24609d SHA512 1b4baa0f385b6b605583a9da312f23c775aab43e7398c6e151833a6b95c74112492530f44fcb7b14f8288774e9b63e2f9618a5debfbc4d34737bc2588f5850df
-EBUILD twelf-1.7.1-r2.ebuild 2717 BLAKE2B 03351db21a04ed6555f7dd9b559d29ad03a10451a29740e92877d447c45da8baefc19256b8b8e0c98b7149dcde41cea25900249086fb460d955b75a5f0f9ef84 SHA512 2188bdc4a8299a0fd4dea45f3a3c9565ec2c546f7c895898190df7dd05545ca143658d6f4a5ec3bcdf4c5d4db6813e6f5a666da2b9f9ca50e320aad94b8ab73a
-MISC metadata.xml 373 BLAKE2B 850c000dae8d5cdd0725b5a998d7e3920c479af1a9afd5cb01874a7551bbcd8fff6a32fa50b74aa315a9cb3bd9471841def5874f528002f124e273e0b06b5c7e SHA512 0bd1b4a19e53f141a0c83a0a97a6d291b43da9fd6158ec869691c99d3efe7cc9179d214ef01ee04b60b51256be9d2f1d2b393978a9e55d06555655332f67fa8e
+EBUILD twelf-1.7.1-r2.ebuild 2972 BLAKE2B dc7703eea09e460af089e2a3a1b4782acd4e592d1ce6fda49eb372c6a16130898a617d92339e85ea8fabb7bc5368b8ef92053cb362df07efb96ce991cb598776 SHA512 079fa00a4a3c6a5b3f5cd659d19fa6de017a823460b4711e594371fe6b69afbc0a2800f5b44a47365232e7052c01729f65f909aa3cbcf0dba7f60bf538a85905
+MISC metadata.xml 458 BLAKE2B aa7ab9c9f6e70163558b1802a4950663f61cdf8b5cbbf78b5be65ee028594314cdd336bb9f4d5b5d1fd06bf54110e4bf6c0f8b574322f9c5aff9975eedd5467d SHA512 545a0f35e20a33da4f344e170cc17ab306f3bb3bb4160ba8721736ae8f50070c0e5cabe31fd9c06d3d538efe9976ff592d0827bf775f4c6c2d45c78490825ea3
diff --git a/sci-mathematics/twelf/metadata.xml b/sci-mathematics/twelf/metadata.xml
index d4994fb246a4..938124fd245e 100644
--- a/sci-mathematics/twelf/metadata.xml
+++ b/sci-mathematics/twelf/metadata.xml
@@ -7,4 +7,7 @@
logic programming and for the formalization of programming language
theory.
</longdescription>
+ <upstream>
+ <remote-id type="github">standardml/twelf</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/sci-mathematics/twelf/twelf-1.7.1-r2.ebuild b/sci-mathematics/twelf/twelf-1.7.1-r2.ebuild
index 0a7237065277..1fc16b00baa4 100644
--- a/sci-mathematics/twelf/twelf-1.7.1-r2.ebuild
+++ b/sci-mathematics/twelf/twelf-1.7.1-r2.ebuild
@@ -1,16 +1,16 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
-inherit elisp-common
+inherit elisp-common flag-o-matic
MY_PN="${PN}-src"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Implementation of the logical framework LF"
-HOMEPAGE="http://twelf.org/"
-SRC_URI="http://twelf.plparty.org/releases/${MY_P}.tar.gz"
+HOMEPAGE="https://twelf.org/"
+SRC_URI="https://github.com/standardml/twelf/releases/download/v${PV}/${MY_P}.tar.gz"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
@@ -59,6 +59,12 @@ src_prepare() {
}
src_compile() {
+ # relocation R_X86_64_32 against hidden symbol `globalCPointer' can not be used when making a PIE object
+ # https://bugs.gentoo.org/863266
+ #
+ # The software is unmaintained and disables bug reports.
+ filter-lto
+
emake mlton CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS} -fno-PIE"
if use emacs ; then
pushd "${S}/emacs" || die "Could change directory to emacs"
diff --git a/sci-mathematics/wxmaxima/Manifest b/sci-mathematics/wxmaxima/Manifest
index e029fff5e07e..85e3b6070c25 100644
--- a/sci-mathematics/wxmaxima/Manifest
+++ b/sci-mathematics/wxmaxima/Manifest
@@ -1,5 +1,7 @@
DIST wxmaxima-24.02.1.tar.gz 17048739 BLAKE2B 207365951d911d160c55c9e10308b2645129082d0ce72c1b4a2ad8e6d5d0469beb4f8faeb8c48965bfa1c4df8f4ecb7ace8f0f9a5193f0bbc4d002437bc8fe77 SHA512 f16b4c974e0bb3d2454465498fae09d3995278a4ac1f1f8c756716bcf5e560925c115259e6540b57a08910b65e897fba896be7f527ed80ba4e3cb7c4863ca6cc
DIST wxmaxima-24.02.2.tar.gz 16844499 BLAKE2B b7edd01771450ba4c668f45a6ee2fae9b470e6da90a383d24b3f473a2fea744de5bdb4c6702b23d5fd9abb869ba1e917016da485c064311c1167adec853b3fdd SHA512 012becedd9668de042596bbe81628962e91d5d0dba876d7195dc3bf00075ac7cc680e8dfa6fd5613077ae01bd5532eb2dc5401e6a1f0603612fef5dc0ed014cf
+DIST wxmaxima-24.05.0.tar.gz 16824007 BLAKE2B b6d6db89c20b76713c19b810d24571d6ded3937573ef72f8c8a73cdf870e164da6916b602f4e6970e6094eb1c4e575de62f06a20f14ee75679c70cff6a6629cb SHA512 62a5911220fc1a9403ca3af11110b9043cffcf0b3a1ef6e6a87f74e63de6a00e2bf809db1a05fe2b5bc40da155746c05d68ff247c424c63a6bd6724b5fe12be9
EBUILD wxmaxima-24.02.1.ebuild 1934 BLAKE2B b4b9d2f37822b9dd7a358b085e8e327293889e8ffedbd8ccd0f855cd99dea9d5e8a2f4ca30ef00e56893b6052bb5cf44a7b656ae6bf6fd1a7a4d14041242b190 SHA512 1a2813338fda14341d36b2c82bb8f4b6f7c784f0f2329f2f6f970cab3b65f13e0a73bd9f0f587622992a5eb6d4bad8de475637a83a0bb2689b699f66d8703359
EBUILD wxmaxima-24.02.2.ebuild 1935 BLAKE2B 768019824dd54461801bb8eb14ba3bec3048b74a1dea3a6124a9de4b3ac0ce8e2b7149ca5a0dbbf2211306cf0b449660d2a196363d5d6b56b76dc5930721ab61 SHA512 3d0a06eb2ff245f15528978f33081c62d69d381890cb6a103c2090f50961c23a2784a6db67e3e7a880b710148afed1574c9e98b30d93fcfc24111c7e410c11b5
+EBUILD wxmaxima-24.05.0.ebuild 1936 BLAKE2B 1e4a9209fb67751e049a8da11dd78dec5b98b95b715f8300ee5dca89302b09da760bbd79226748a7988250991dc5d60c65e9e4da9eb9c640caf91320bdf7074d SHA512 b3410d275e2d5dec5c1f8f8199210ef9b2216e37cba923671f191a5c1fcde265c46a7b7e66161341a328dc41cbe5da8d838d6ef5c7dba7f041b5b6ca4ccc6c9d
MISC metadata.xml 996 BLAKE2B 0217444b5ca1f1d6b250760ac76b6f44c8bb933333d785cf72ea10ad501df2e803146a25ddc6915f98a5c3ccd80a1ff3827ba58fba3f28e99dae101cf47def5f SHA512 0a1be2819a831ccd9c8712b1dce040c02a3aa681473c0f4c315a9010fafe05383b452b2f9e29e62f22bc8f09b34c4964ce549c248deb6c74763ec2417f7fcf2f
diff --git a/sci-mathematics/wxmaxima/wxmaxima-24.05.0.ebuild b/sci-mathematics/wxmaxima/wxmaxima-24.05.0.ebuild
new file mode 100644
index 000000000000..18b5ffff5949
--- /dev/null
+++ b/sci-mathematics/wxmaxima/wxmaxima-24.05.0.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+WX_GTK_VER="3.2-gtk3"
+PLOCALES="ca cs da de el en es fi fr gl hu it ja kab nb pl pt_BR ru tr uk zh_CN zh_TW"
+inherit cmake plocale wxwidgets xdg
+
+DESCRIPTION="Graphical frontend to Maxima, using the wxWidgets toolkit"
+HOMEPAGE="https://wxmaxima-developers.github.io/wxmaxima/"
+SRC_URI="https://github.com/wxMaxima-developers/wxmaxima/archive/Version-${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}"/${PN}-Version-${PV}
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="test webkit"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ dev-libs/libxml2:2
+ x11-libs/wxGTK:${WX_GTK_VER}[webkit?]"
+RDEPEND="${DEPEND}
+ media-fonts/jsmath
+ sci-visualization/gnuplot[wxwidgets]
+ sci-mathematics/maxima"
+
+src_prepare() {
+ cmake_src_prepare
+
+ sed -e "s|GPL.txt ||g" -e "s|share/doc/${PN}|share/doc/${PF}|g" -i CMakeLists.txt \
+ || die "sed CMakeLists.txt failed"
+ sed -e "s|share/doc/${PN}|share/doc/${PF}|g" -i info/CMakeLists.txt \
+ || die "sed info/CMakeLists.txt failed"
+
+ # locales
+ rm_po() {
+ rm locales/wxMaxima/${1}.po || die "rm ${1}.po failed"
+ rm -f locales/manual/${1}.po
+ rm -f info/${PN}.${1}.md
+ rm -f info/${PN}.${1}.html
+ sed -e "\\|/${1}/wxmaxima.1|d" -i data/CMakeLists.txt
+ }
+ plocale_find_changes locales/wxMaxima '' '.po'
+ plocale_for_each_disabled_locale rm_po
+}
+
+src_configure() {
+ setup-wxwidgets
+
+ local mycmakeargs=(
+ -DWXM_UNIT_TESTS=$(usex test)
+ -DWXM_DISABLE_WEBVIEW=$(usex webkit OFF ON)
+ )
+
+ cmake_src_configure
+}
+
+src_test() {
+ # Just run the unit tests manually for now as tests fail in a non-descriptive
+ # way even with virtualx
+ # bug #736695
+ cd "${BUILD_DIR}/test/unit_tests" || die
+
+ local tests=(
+ AFontSize
+ )
+
+ local test
+ for test in "${tests[@]}" ; do
+ ./test_${test} || die "Unit test ${test} failed!"
+ done
+}
+
+src_install() {
+ docompress -x /usr/share/doc/${PF}
+ cmake_src_install
+}
diff --git a/sci-mathematics/z3/Manifest b/sci-mathematics/z3/Manifest
index 57dd2c2f5826..a9bf15b56c62 100644
--- a/sci-mathematics/z3/Manifest
+++ b/sci-mathematics/z3/Manifest
@@ -1,3 +1,3 @@
DIST z3-4.13.0.tar.gz 5520232 BLAKE2B 0889c03991311c46c361f269b85fb316c0b4be5cee84f1bb420ef640876058431fe5ec00f58a3dc9377ed3a2ea1cd908a8d9731f9575cf0e4a819fe1f50be670 SHA512 8503787fe0b18592b5a131bcec2cacfa5f5096d76386a1c4fda7a836e472924b154433306d27600ff0d0758ddb710c965901fbfc2e5605919b624b9d4d1bc4fd
-EBUILD z3-4.13.0.ebuild 2600 BLAKE2B e248e42bbafc75f2f028f1b31239bb9d091e0f12db7291e9fb111525a927600072ae1f20d1b970962d2c8ac97c2e924f778b8664f05ca526ad5f9456f2d86d00 SHA512 8608cc7c51fc342aca9cf1b574b69f1215e60dee5a5894973dd8c4813d5cd0e7cf59a9c8c47e4926b58dac7c8cf4e133be33ff4d6f0db120bc4994b0bdb89d0d
+EBUILD z3-4.13.0.ebuild 2606 BLAKE2B e47072437e700d8dc0c711774b570bde320763f4cc87f87d89533b38bf6b2a253b09c551adf2f0374c8b900ade34fb7445d37bee81569110f86892eb2a922923 SHA512 24d7d6e7081c969779db447970cac012ff5371bf6aca1a7e00471d99b0de67c7c634e4d67d3a614a70f22df138d57bef002df3d78056b6a2a99bc17f7cc9ac5b
MISC metadata.xml 1718 BLAKE2B a94783909c12aa7dd2d5fd1f9d2fc75e20ca91b6abffd6dc020f602e57ef698f7184acaf14def4b6e21bb659e595abd44956ba37a679134d11b523103b0461df SHA512 ed375986a8010a7ae1eadab3107342126194a5513cbb22ce2064ffeff42c7184ea94f4f69017204c73bd61236847475cd1f0d8b3ba369236b26630dc8b2f46a2
diff --git a/sci-mathematics/z3/z3-4.13.0.ebuild b/sci-mathematics/z3/z3-4.13.0.ebuild
index 772a73d1b83b..20635555fc86 100644
--- a/sci-mathematics/z3/z3-4.13.0.ebuild
+++ b/sci-mathematics/z3/z3-4.13.0.ebuild
@@ -14,7 +14,7 @@ S=${WORKDIR}/z3-${P}
LICENSE="MIT"
SLOT="0/$(ver_cut 1-2)"
-KEYWORDS="amd64 arm arm64 ~loong ~ppc ppc64 ~riscv sparc x86"
+KEYWORDS="amd64 arm arm64 ~loong ~mips ~ppc ppc64 ~riscv sparc x86"
IUSE="doc examples gmp isabelle java python"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"