gnu: scilab: Set default SCIHOME value.
* gnu/packages/maths.scm (scilab): Set default SCIHOME value. [argmuments](phases)[rewrap-scilab-cli]: Set default -scihome option to respect XDG base dirs specification. Change-Id: I9b55758a3ca1fbc523c3e40e891a2462f3246390 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
671592c2dd
commit
c7742721d1
@ -9739,8 +9739,12 @@ computation is supported via MPI.")
|
||||
(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")
|
||||
;; Also set SCIHOME to sensible XDG base dirs value.
|
||||
(("\\.scilab-cli-bin-real\"")
|
||||
(string-append
|
||||
"scilab-cli-bin\" -scihome "
|
||||
"\"${XDG_STATE_HOME:-$HOME/.local/state}/scilab/"
|
||||
#$(package-version this-package) "\""))
|
||||
(("export SCI=")
|
||||
"unset LANGUAGE\nexport SCI="))))))))
|
||||
(home-page "https://www.scilab.org/")
|
||||
|
Loading…
Reference in New Issue
Block a user