From a06a3691b52cafd5101b43ff0aa00aef5d1f29e8 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 28 Mar 2021 15:54:31 -0400 Subject: [PATCH] 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 --- .../{maxima-5.44.0-r5.ebuild => maxima-5.44.0-r6.ebuild} | 7 +++++++ 1 file changed, 7 insertions(+) rename sci-mathematics/maxima/{maxima-5.44.0-r5.ebuild => maxima-5.44.0-r6.ebuild} (95%) diff --git a/sci-mathematics/maxima/maxima-5.44.0-r5.ebuild b/sci-mathematics/maxima/maxima-5.44.0-r6.ebuild similarity index 95% rename from sci-mathematics/maxima/maxima-5.44.0-r5.ebuild rename to sci-mathematics/maxima/maxima-5.44.0-r6.ebuild index e0dbc91fdb0bd..540d0048980bd 100644 --- a/sci-mathematics/maxima/maxima-5.44.0-r5.ebuild +++ b/sci-mathematics/maxima/maxima-5.44.0-r6.ebuild @@ -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