sci-mathematics/fricas: bump to 1.3.13

Signed-off-by: Andrey Grozin <grozin@gentoo.org>
This commit is contained in:
Andrey Grozin
2026-03-06 19:07:25 +07:00
parent eaf52a0570
commit b819ae4702
2 changed files with 99 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
DIST fricas-1.3.12-full.tar.bz2 10951028 BLAKE2B a88a9665ac003aaabf3aeb1a862a0402d781b22ffbb8a5fb95d5875ac459b86cd1f86c0160945898afa1bb88ca95f372ec73e9e58b73a3f7f75cb44f632571d7 SHA512 458505a41282e3aa874c70fe688a40296cb9a0d8053571d091a11df96c84ae5e8792524d83d156ccfecc915fa7c36b9dfa801cb68eaad36404aeccb673199358
DIST fricas-1.3.13-full.tar.bz2 10997314 BLAKE2B 57af1c51ca2ca754e58b754f237f34ea65ae3f0bdd8985e383a19a80a1438a04fa112e2067f5641a836bd3413d0298150b7261b16f7201cd5a8dd971b928d98b SHA512 8f2f8de62ccca7ee47a99ca19533ffd8384ee0acb888a5143836ed7587b78484bfe8da7bad13991166cf8b631243ceca44c45c879af7f38de5890f3c3db7ae6d
@@ -0,0 +1,98 @@
# Copyright 1999-2026 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 ~riscv ~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
}