guix_mirror_bot pushed a commit to branch master
in repository guix.

commit b28c150fa31e2230aff71ab2acb7f338ac3b6072
Author: Lars Bilke <[email protected]>
AuthorDate: Thu Aug 14 11:49:01 2025 +0200

    gnu: Add mgis
    
    * gnu/packages/cpp.scm (mgis): New variable.
    
    Change-Id: I82ffeb466a13c65307434a9dee809f297024f1e8
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/cpp.scm | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 1d877ef043..cf136ae9e3 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -4119,6 +4119,60 @@ related domain specific languages into plain C++ on top 
of the TFEL library.")
     ;; exception or the CECILL-A licence:
     (license (list license:gpl3+ license:cecill))))
 
+(define-public mgis
+  (package
+    (name "mgis")
+    (version "2.2") ;Keep in sync with compatible version of tfel
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/thelfer/MFrontGenericInterfaceSupport";)
+             (commit (string-append "MFrontGenericInterfaceSupport-" 
version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "00ij7gaqrzakvc3n6irq5z5b5nd08kik5i87prvnp9604ssa6h8k"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list
+      #:configure-flags
+      #~(list "-Denable-doxygen-doc=OFF" "-Denable-portable-build=ON")
+      #:phases
+      #~(modify-phases %standard-phases
+          ;; Test targets are not build by default. By building these
+          ;; additional targets some tests can be run.
+          (add-after 'build 'build-test-targets
+            (lambda* (#:key tests? parallel-build? #:allow-other-keys)
+              (if tests?
+                  (invoke "make"
+                          "BehaviourTest"
+                          "MFrontGenericBehaviourInterfaceTest"
+                          "MFrontGenericBehaviourInterfaceTest2"
+                          "MFrontGenericBehaviourInterfaceTest3"
+                          "-j"
+                          (if parallel-build?
+                              (number->string (parallel-job-count)) "1"))
+                  (format #t "test suite not run~%"))))
+          (replace 'check
+            (lambda* (#:key tests? parallel-tests? #:allow-other-keys)
+              (if tests?
+                  (invoke "ctest" "-R" "MFrontGenericBehaviourInterfaceTest"
+                          "-j"
+                          (if parallel-tests?
+                              (number->string (parallel-job-count)) "1"))
+                  (format #t "test suite not run~%")))))))
+    (inputs (list tfel))
+    (home-page "https://thelfer.github.io/mgis/web/index.html";)
+    (synopsis
+     "MFrontGenericInterfaceSupport provides tools to handle MFront 
behaviours")
+    (description
+     "Those tools are meant to be used by solver developers to e.g. load
+MFront behaviours from external shared libraries and retrieve all relevant
+meta data function.")
+    ;; MFrontGenericInterfaceSupport is released under either the GNU LGPL 
license
+    ;; or the CECILL-C license:
+    (license (list license:lgpl3 license:cecill-c))))
+
 (define-public tsl-hopscotch-map
   (package
     (name "tsl-hopscotch-map")

Reply via email to