commit:     cd340e17a04fe17d3d7548b0e8635a2ad4cc0bda
Author:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Wed Jun  4 09:43:04 2025 +0000
Commit:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Wed Jun  4 09:43:04 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd340e17

sci-mathematics/fricas: bump to 1.3.12

Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>

 sci-mathematics/fricas/Manifest             |  1 +
 sci-mathematics/fricas/fricas-1.3.12.ebuild | 98 +++++++++++++++++++++++++++++
 2 files changed, 99 insertions(+)

diff --git a/sci-mathematics/fricas/Manifest b/sci-mathematics/fricas/Manifest
index 7f5ab6e655a2..074fc21672ef 100644
--- a/sci-mathematics/fricas/Manifest
+++ b/sci-mathematics/fricas/Manifest
@@ -1 +1,2 @@
 DIST fricas-1.3.11-full.tar.bz2 10937641 BLAKE2B 
52bb467468de83dfbb8a61717356d74c605efe1174168c35af50d15232c8441457415ca2c88fd19356caec9f9ee29af556104f421dc0479f3ae635144432be7a
 SHA512 
6166661866829764fdf02e84c08f3afd8f631a40c8c5340648640b4fa388641c703021f5006e135ac32e671786b1a75bc290039e929ef322c60a0ba0cb0212ac
+DIST fricas-1.3.12-full.tar.bz2 10951028 BLAKE2B 
a88a9665ac003aaabf3aeb1a862a0402d781b22ffbb8a5fb95d5875ac459b86cd1f86c0160945898afa1bb88ca95f372ec73e9e58b73a3f7f75cb44f632571d7
 SHA512 
458505a41282e3aa874c70fe688a40296cb9a0d8053571d091a11df96c84ae5e8792524d83d156ccfecc915fa7c36b9dfa801cb68eaad36404aeccb673199358

diff --git a/sci-mathematics/fricas/fricas-1.3.12.ebuild 
b/sci-mathematics/fricas/fricas-1.3.12.ebuild
new file mode 100644
index 000000000000..e491412059b5
--- /dev/null
+++ b/sci-mathematics/fricas/fricas-1.3.12.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+VIRTUALX_REQUIRED="doc"
+inherit virtualx elisp-common
+
+DESCRIPTION="FriCAS is a fork of Axiom computer algebra system"
+HOMEPAGE="https://fricas.sourceforge.net/
+       https://github.com/fricas/fricas
+       https://fricas.github.io/";
+SRC_URI="https://downloads.sourceforge.net/${PN}/${PV}/${P}-full.tar.bz2";
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+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:= )
+       cmucl? ( dev-lisp/cmucl:= )
+       gcl? ( dev-lisp/gcl:= )
+       ecl? ( dev-lisp/ecl:= )
+       clisp? ( dev-lisp/clisp:= )
+       clozurecl? ( dev-lisp/clozurecl:= )
+       X? ( x11-libs/libXpm x11-libs/libICE )
+       emacs? ( >=app-editors/emacs-23.1:* )
+       gmp? ( dev-libs/gmp:= )"
+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"
+
+src_configure() {
+       local LISP GMP
+       use sbcl && LISP="sbcl --dynamic-space-size 4096"
+       use cmucl && LISP=lisp
+       use gcl && LISP=gcl
+       use ecl && LISP=ecl
+       use clisp && LISP=clisp
+       use clozurecl && LISP=ccl
+
+       if use sbcl || use clozurecl
+       then GMP=$(use_enable gmp)
+       else GMP=''
+       fi
+
+       # aldor is not yet in portage
+       econf --disable-aldor --with-lisp="${LISP}" $(use_with X x) ${GMP}
+}
+
+src_compile() {
+       default
+       if use doc; then
+               pushd src/doc > /dev/null || die "pushd src/doc failed"
+               virtx emake book
+               popd > /dev/null
+       fi
+}
+
+src_test() {
+       emake -j1 all-input
+}
+
+src_install() {
+       emake -j1 DESTDIR="${D}" install
+       dodoc README.rst FAQ
+
+       if use emacs; then
+               sed -e "s|(setq load-path (cons (quote 
\"/usr/$(get_libdir)/fricas/emacs\") load-path)) ||" \
+                       -i "${D}"/usr/bin/efricas \
+                       || die "sed efricas failed"
+               elisp-install ${PN} "${D}"/usr/$(get_libdir)/${PN}/emacs/*.el
+               elisp-make-site-file 64${PN}-gentoo.el
+       else
+               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() {
+       use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+       use emacs && elisp-site-regen
+}

Reply via email to