guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

08/15: gnu: scilab: Add phase set-version.


From: guix-commits
Subject: 08/15: gnu: scilab: Add phase set-version.
Date: Thu, 23 Nov 2023 06:58:15 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 671592c2dddb06e5be448a65b3a9f7f152e04e40
Author: Nicolas Graves <ngraves@ngraves.fr>
AuthorDate: Mon Nov 6 00:51:50 2023 +0100

    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>
---
 gnu/packages/maths.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 44e62f774d..2e1d9f9570 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]