me
/
guix
Archived
1
0
Fork 0

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>
master
Nicolas Graves 2023-11-06 00:51:47 +01:00 committed by Ludovic Courtès
parent 70b1ac2bc5
commit a4d7310ab9
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 21 additions and 1 deletions

View File

@ -9708,7 +9708,27 @@ computation is supported via MPI.")
(apply invoke "make" (apply invoke "make"
"src/cpp/parse/parsescilab.cpp" "src/cpp/parse/parsescilab.cpp"
"src/cpp/parse/scanscilab.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/") (home-page "https://www.scilab.org/")
(synopsis "Software for engineers and scientists") (synopsis "Software for engineers and scientists")
(description "This package provides the non-graphical version of the Scilab (description "This package provides the non-graphical version of the Scilab