summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntero Mejr <antero@mailbox.org>2022-08-29 13:32:12 -0400
committerGuix Patches Tester <>2022-11-18 12:57:32 +0100
commit4364f5626159d881d726efd83a9ac8fbce59c5d4 (patch)
tree564d74873f204a4ea56b3981d976ebc5b4b7f652
parent983906ab72307a5b848a54233b30d9744356de07 (diff)
downloadguix-patches-4364f5626159d881d726efd83a9ac8fbce59c5d4.tar
guix-patches-4364f5626159d881d726efd83a9ac8fbce59c5d4.tar.gz
gnu: Add ecbuild.issue-57410
* gnu/packages/cmake.scm (ecbuild): New variable.
-rw-r--r--gnu/packages/cmake.scm35
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index 87fde01f63..3c4dc99108 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -32,6 +32,7 @@
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix utils)
#:use-module (guix deprecation)
@@ -49,6 +50,7 @@
#:use-module (gnu packages kde-frameworks)
#:use-module (gnu packages libevent)
#:use-module (gnu packages ncurses)
+ #:use-module (gnu packages perl)
#:use-module (gnu packages serialization)
#:use-module (gnu packages sphinx)
#:use-module (gnu packages texinfo)
@@ -422,3 +424,36 @@ and workspaces that can be used in the compiler environment of your choice.")
(description "@code{cmakeos-mode} provides an Emacs major mode for editing
Cmake files. It supports syntax highlighting, indenting and refilling of
comments.")))
+
+(define-public ecbuild
+ ;; when using set the configure flag "-DECBUILD_DISABLE_NEW_DTAGS=OFF"
+ ;; otherwise validate-runpath build step will fail when building Guix packages
+ (package
+ (name "ecbuild")
+ (version "3.7.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ecmwf/ecbuild")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1mcjdqwvkzli7xj2wlnr4hshfh3wi5rs585f9nvqjfpgwvn0ym14"))))
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-cmake-binary-path
+ (lambda _
+ (substitute* "bin/ecbuild"
+ (("cmake=\\$\\{cmakebin:=cmake\\}")
+ (string-append "cmake=${cmakebin:="
+ #$cmake-minimal "/bin/cmake}"))))))))
+ (build-system cmake-build-system)
+ (native-inputs (list perl))
+ (inputs (list cmake-minimal))
+ (home-page "https://ecbuild.readthedocs.io/en/latest/")
+ (synopsis "CMake wrapper and collection of macros")
+ (description "ecBuild is built on top of CMake and consists of a set of
+macros as well as a wrapper around CMake. Calling @code{ecbuild $SRC_DIR} is
+equivalent to @code{cmake -DCMAKE_MODULE_PATH=$ECBUILD_DIR/cmake $SRC_DIR}.")
+ (license license:asl2.0)))