3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: scilab: Add phase set-version.

* gnu/packages/maths.scm (scilab): Add phase set-version.
[arguments](phases): Add phase set-version.

Change-Id: I0e461a229931d159196cae73d1db584250c579b2
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Nicolas Graves 2023-11-06 00:51:50 +01:00 committed by Ludovic Courtès
parent 9d33830fd1
commit 671592c2dd
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -9667,6 +9667,13 @@ computation is supported via MPI.")
(substitute* "modules/Makefile.am"
(("libscilab_cli_la_LDFLAGS = .*\\)" all)
(string-append all " -lcurl")))))
(add-after 'unpack 'set-version
(lambda _
(substitute* "modules/core/includes/version.h.in"
(("scilab-branch-main") ; version
(string-append
"scilab-"
#$(version-major+minor (package-version this-package)))))))
(add-after 'unpack 'restrain-to-scilab-cli
(lambda _
;; Install only scilab-cli.desktop