GNU bug report logs -
#65857
[PATCH v2 2/2] gnu: scilab: Set SCIHOME default to respect XDG base dirs.
Previous Next
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/maths.scm (scilab): Set SCIHOME default to respect XDG base dirs.
[arguments](phases): Add phase respect-xdg-base-dirs.
---
gnu/packages/maths.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 900a9f0fac..8162ab95d1 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -8553,7 +8553,14 @@ (define-public scilab
"/bin/dirname"))
(("basename")
#$(file-append (this-package-input "coreutils")
- "/bin/basename"))))))))
+ "/bin/basename")))))
+ (add-after 'hardcode-script-inputs 'respect-xdg-base-dirs
+ (lambda _
+ (substitute* (string-append #$output "/bin/scilab")
+ (("IS_SCILAB_BINARY=0" all)
+ (string-append all
+ "\n[ -n \"$SCIHOME\" ] &&\
+ SCIHOME=\"${XDG_STATE_HOME}/scilab\""))))))))
(home-page "https://scilab.org")
(synopsis "Software for engineers and scientists")
(description "This package provides the non-graphical version of the Scilab
--
2.41.0
This bug report was last modified 1 year and 183 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.