unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Antero Mejr via Guix-patches via <guix-patches@gnu.org>
To: 57410@debbugs.gnu.org
Cc: Antero Mejr <antero@mailbox.org>
Subject: [bug#57410] [PATCH] gnu: Add ecbuild.
Date: Thu, 25 Aug 2022 13:27:02 -0400	[thread overview]
Message-ID: <20220825172702.1111386-1-antero@mailbox.org> (raw)
In-Reply-To: <20220825172227.1110221-1-antero@mailbox.org>

* gnu/packages/cmake.scm (ecbuild): New variable.
---
 gnu/packages/cmake.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index cf930c57fc..aa89d4815c 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -32,6 +32,7 @@ (define-module (gnu packages cmake)
   #: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 @@ (define-module (gnu packages cmake)
   #: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)
@@ -406,3 +408,33 @@ (define-public emacs-cmake-mode
     (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"))
+              (modules '((guix build utils)))
+              (snippet #~(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)))
-- 
2.37.2





  reply	other threads:[~2022-08-25 17:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-25 17:22 [bug#57410] [PATCH] gnu: Add eccodes Antero Mejr via Guix-patches via
2022-08-25 17:27 ` Antero Mejr via Guix-patches via [this message]
2022-08-28 15:22   ` [bug#57410] [PATCH] gnu: Add ecbuild Maxime Devos
2022-08-25 17:30 ` [bug#57410] [PATCH] gnu: Add libaec Antero Mejr via Guix-patches via
2022-08-29 17:32 ` [bug#57410] [PATCH] gnu: Add ecbuild Antero Mejr via Guix-patches via
2023-09-02  4:13   ` Vagrant Cascadian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220825172702.1111386-1-antero@mailbox.org \
    --to=guix-patches@gnu.org \
    --cc=57410@debbugs.gnu.org \
    --cc=antero@mailbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).