From cb877ee5091d801e08654ac55adaab1b5edfec91 Mon Sep 17 00:00:00 2001 Message-Id: From: vicvbcun Date: Sat, 6 Aug 2022 18:00:19 +0200 Subject: [PATCH] gnu: maxima: Build with ecl and install maxima.fas. The eventual sagemath package requires maxima.fas, which is only build with ecl. * gnu/packages/maths.scm (maxima)[inputs]: Add ecl. [configure-flags]: Build with ecl. [install]: Install maxima.fas. --- gnu/packages/maths.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index e32a71100e..b250649a45 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4357,6 +4357,7 @@ (define-public maxima (build-system gnu-build-system) (inputs `(("bash" ,bash-minimal) + ("ecl" ,ecl) ("gnuplot" ,gnuplot) ;for plots ("sbcl" ,sbcl) ("sed" ,sed) @@ -4365,7 +4366,8 @@ (define-public maxima (list texinfo perl python)) (arguments `(#:configure-flags - ,#~(list "--enable-sbcl" + ,#~(list "--enable-sbcl" "--enable-ecl" + (string-append "--with-ecl=" #$ecl "/bin/ecl") (string-append "--with-sbcl=" #$sbcl "/bin/sbcl") (string-append "--with-posix-shell=" #$bash-minimal "/bin/sh") (string-append "--with-wish=" #$tk "/bin/wish" @@ -4409,6 +4411,10 @@ (define-public maxima "--lisp=sbcl " "--batch-string=\"run_testsuite();\" " "| grep -q \"No unexpected errors found\"")))) + (add-after 'install 'install-fas + (lambda* (#:key outputs #:allow-other-keys) + (install-file "src/binary-ecl/maxima.fas" + (string-append (assoc-ref outputs "out") "/lib/maxima/" ,version "/binary-ecl")))) ;; Make sure the doc and emacs files are found in the ;; standard location. Also configure maxima to find gnuplot ;; without having it on the PATH. base-commit: 0d9eef0a06ffcb6a0f66d272ea036597b521ffb6 -- 2.37.0