sci-mathematics/maxima: hide dbl.el when USE=gcl is unset.

One of the emacs modes installed by maxima requires the gcl lisp
interpreter (with emacs support) to be installed. To avoid confusing
error messages, we remove it from the installation image when USE=gcl
is unset.

Closes: https://bugs.gentoo.org/502112
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
Michael Orlitzky
2021-03-29 09:43:42 -04:00
parent 89b6e0a344
commit a06a3691b5
@@ -204,6 +204,13 @@ src_install() {
insinto /usr/share/${PN}/${PV}/doc/imaxima
doins interfaces/emacs/imaxima/README
doins -r interfaces/emacs/imaxima/imath-example
if ! use gcl; then
# This emacs package is used to run gcl, maxima, gdb, etc.
# all at once and possibly in the same buffer. As such, it's
# no use without gcl (more to the point: it requires gcl.el).
find "${ED}" -name 'dbl.el' -type f -delete || die
fi
fi
if use ecls; then