summaryrefslogtreecommitdiff
path: root/gnu/packages/cpp.scm
diff options
context:
space:
mode:
authorLars Bilke <lars.bilke@ufz.de>2025-08-14 11:49:01 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-10 15:39:04 +0100
commitb28c150fa31e2230aff71ab2acb7f338ac3b6072 (patch)
tree9d9f6287c0eb7dfcdd8d346b6118245172ac7bdb /gnu/packages/cpp.scm
parent969562ae00805a6ba4d270a2ad6a2b1020143259 (diff)
gnu: Add mgis
* gnu/packages/cpp.scm (mgis): New variable. Change-Id: I82ffeb466a13c65307434a9dee809f297024f1e8 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/cpp.scm')
-rw-r--r--gnu/packages/cpp.scm54
1 files changed, 54 insertions, 0 deletions
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 1d877ef043a..cf136ae9e34 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")