[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/15: gnu: scilab: Add phase rewrap-scilab-cli.
From: |
guix-commits |
Subject: |
05/15: gnu: scilab: Add phase rewrap-scilab-cli. |
Date: |
Thu, 23 Nov 2023 06:58:15 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit a4d7310ab97e45166ea845deb574cc4efbd1b915
Author: Nicolas Graves <ngraves@ngraves.fr>
AuthorDate: Mon Nov 6 00:51:47 2023 +0100
gnu: scilab: Add phase rewrap-scilab-cli.
* gnu/packages/maths.scm (scilab): Add phase rewrap-scilab-cli.
Change-Id: Ia3ca5df1a4795c34b6c1cdc8c3b0d7cc2badf0cb
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/maths.scm | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index abc0dc748d..9113e2e28d 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -9708,7 +9708,27 @@ computation is supported via MPI.")
(apply invoke "make"
"src/cpp/parse/parsescilab.cpp"
"src/cpp/parse/scanscilab.cpp"
- make-flags))))))))
+ make-flags))))
+ ;; The startup script is mostly there to define the following env
+ ;; variables properly. We can do this with guix directly.
+ (add-after 'install 'rewrap-scilab-cli
+ (lambda _
+ (define (bin path) (string-append #$output "/bin/" path))
+ (delete-file (bin "scilab-cli"))
+ (wrap-program (bin "scilab-cli-bin")
+ `("SCI" = (,(string-append #$output "/share/scilab")))
+ `("LD_LIBRARY_PATH" ":" prefix
+ (,(string-append #$output "/lib/scilab")))
+ `("TCL_LIBRARY" = (,(string-append #$tcl "/lib")))
+ `("TK_LIBRARY" = (,(string-append #$tk "/lib"))))
+ (copy-file (bin "scilab-cli-bin") (bin "scilab-cli"))
+ (copy-file (bin ".scilab-cli-bin-real") (bin "scilab-cli-bin"))
+ (delete-file (bin ".scilab-cli-bin-real"))
+ (substitute* (bin "scilab-cli")
+ (("\\.scilab-cli-bin-real")
+ "scilab-cli-bin")
+ (("export SCI=")
+ "unset LANGUAGE\nexport SCI="))))))))
(home-page "https://www.scilab.org/")
(synopsis "Software for engineers and scientists")
(description "This package provides the non-graphical version of the Scilab
- branch master updated (5023424f16 -> 8d596af2c9), guix-commits, 2023/11/23
- 01/15: services: Add oci-container-service-type., guix-commits, 2023/11/23
- 02/15: gnu: scilab: Remove uneeded code., guix-commits, 2023/11/23
- 04/15: gnu: scilab: Use gexp for tcl and tk libraries., guix-commits, 2023/11/23
- 09/15: gnu: scilab: Set default SCIHOME value., guix-commits, 2023/11/23
- 11/15: gnu: Add coq-for-coqtail., guix-commits, 2023/11/23
- 15/15: gnu: folly: Update to 2023.11.06.00., guix-commits, 2023/11/23
- 03/15: gnu: scilab: Activate tests and disable failing tests., guix-commits, 2023/11/23
- 05/15: gnu: scilab: Add phase rewrap-scilab-cli.,
guix-commits <=
- 06/15: gnu: scilab: Reindent., guix-commits, 2023/11/23
- 08/15: gnu: scilab: Add phase set-version., guix-commits, 2023/11/23
- 07/15: gnu: scilab: Update to 2024.0.0., guix-commits, 2023/11/23
- 10/15: gnu: Add vim-vader., guix-commits, 2023/11/23
- 13/15: gnu: guile-ts: Update to 0.2.0., guix-commits, 2023/11/23
- 14/15: gnu: mpd: Update to 0.23.14., guix-commits, 2023/11/23
- 12/15: gnu: Add vim-coqtail., guix-commits, 2023/11/23