* [bug#57410] [PATCH] gnu: Add eccodes.
@ 2022-08-25 17:22 Antero Mejr via Guix-patches via
2022-08-25 17:27 ` [bug#57410] [PATCH] gnu: Add ecbuild Antero Mejr via Guix-patches via
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Antero Mejr via Guix-patches via @ 2022-08-25 17:22 UTC (permalink / raw)
To: 57410; +Cc: Antero Mejr
* gnu/packages/geo.scm (eccodes): New variable.
---
gnu/packages/geo.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 0c869fdebb..f1151fa95c 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -64,6 +64,7 @@ (define-module (gnu packages geo)
#:use-module (gnu packages boost)
#:use-module (gnu packages build-tools)
#:use-module (gnu packages check)
+ #:use-module (gnu packages cmake)
#:use-module (gnu packages compression)
#:use-module (gnu packages cpp)
#:use-module (gnu packages cups)
@@ -76,6 +77,7 @@ (define-module (gnu packages geo)
#:use-module (gnu packages flex)
#:use-module (gnu packages fonts)
#:use-module (gnu packages fontutils)
+ #:use-module (gnu packages gcc)
#:use-module (gnu packages gettext)
#:use-module (gnu packages gl)
#:use-module (gnu packages glib)
@@ -112,6 +114,7 @@ (define-module (gnu packages geo)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages qt)
#:use-module (gnu packages readline)
+ #:use-module (gnu packages shells)
#:use-module (gnu packages swig)
#:use-module (gnu packages sqlite)
#:use-module (gnu packages textutils)
@@ -2797,3 +2800,35 @@ (define-public libaec
point representations are not directly supported, they can also be efficiently
coded by grouping exponents and mantissa.")
(license license:bsd-2)))
+
+(define-public eccodes
+ (package
+ (name "eccodes")
+ (version "2.27.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ecmwf/eccodes")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1hd4lli6g4m77rdfqwq8kxqpgn9na7lhv0j47w0sw9ihy8qllq41"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list #:configure-flags #~(list "-DECBUILD_DISABLE_NEW_DTAGS=OFF"
+ "-DENABLE_PNG=ON")))
+ (native-inputs (list ecbuild gfortran perl))
+ (inputs (list oksh libaec libpng netcdf openjpeg))
+ (home-page "https://confluence.ecmwf.int/display/ECC")
+ (synopsis "Encoder/decoder for GRIB and BUFR meteorological data files")
+ (description "ecCodes is a package developed by ECMWF which provides an
+application programming interface and a set of tools for decoding and encoding
+messages in the following formats:
+
+@itemize
+@item WMO FM-92 GRIB edition 1 and edition 2
+@item WMO FM-94 BUFR edition 3 and edition 4
+@item WMO GTS abbreviated header (only decoding)
+@end itemize")
+ (license license:asl2.0)))
--
2.37.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#57410] [PATCH] gnu: Add ecbuild.
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
2022-08-28 15:22 ` 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
2 siblings, 1 reply; 6+ messages in thread
From: Antero Mejr via Guix-patches via @ 2022-08-25 17:27 UTC (permalink / raw)
To: 57410; +Cc: Antero Mejr
* 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
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#57410] [PATCH] gnu: Add libaec.
2022-08-25 17:22 [bug#57410] [PATCH] gnu: Add eccodes Antero Mejr via Guix-patches via
2022-08-25 17:27 ` [bug#57410] [PATCH] gnu: Add ecbuild Antero Mejr via Guix-patches via
@ 2022-08-25 17:30 ` Antero Mejr via Guix-patches via
2022-08-29 17:32 ` [bug#57410] [PATCH] gnu: Add ecbuild Antero Mejr via Guix-patches via
2 siblings, 0 replies; 6+ messages in thread
From: Antero Mejr via Guix-patches via @ 2022-08-25 17:30 UTC (permalink / raw)
To: 57410; +Cc: Antero Mejr
* gnu/packages/geo.scm (libaec): New variable.
---
gnu/packages/geo.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 66c97d3d6a..f23a8c1f4e 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -2773,3 +2773,27 @@ (define-public gplates
reconstructions of geological and paleogeographic features through geological
time. Interactively visualize vector, raster and volume data.")
(license license:gpl2+)))
+
+(define-public libaec
+ (package
+ (name "libaec")
+ (version "1.0.6")
+ (home-page "https://gitlab.dkrz.de/k202009/libaec")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "14myrmmiz9z6wgxqywf3a63cq514vrzsd6z4zvpwigvawlk30iip"))))
+ (build-system cmake-build-system)
+ (synopsis "Adaptive Entropy Coding library")
+ (description "Libaec provides fast lossless compression of 1 up to 32 bit
+wide signed or unsigned integers (samples). The library achieves best results
+for low entropy data as often encountered in space imaging instrument data or
+numerical model output from weather or climate simulations. While floating
+point representations are not directly supported, they can also be efficiently
+coded by grouping exponents and mantissa.")
+ (license license:bsd-2)))
--
2.37.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#57410] [PATCH] gnu: Add ecbuild.
2022-08-25 17:27 ` [bug#57410] [PATCH] gnu: Add ecbuild Antero Mejr via Guix-patches via
@ 2022-08-28 15:22 ` Maxime Devos
0 siblings, 0 replies; 6+ messages in thread
From: Maxime Devos @ 2022-08-28 15:22 UTC (permalink / raw)
To: Antero Mejr, 57410
[-- Attachment #1.1.1: Type: text/plain, Size: 1005 bytes --]
On 25-08-2022 19:27, Antero Mejr via Guix-patches via wrote:
> + (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}"))))))
This 'source' is only usable inside Guix as it embeds store items, which
makes "guix build --source" less useful for sharing source code (see:
(guix)Snippets versus Phases).
Try doing this in a snippet instead.
Greetings,
Maxime.
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#57410] [PATCH] gnu: Add ecbuild.
2022-08-25 17:22 [bug#57410] [PATCH] gnu: Add eccodes Antero Mejr via Guix-patches via
2022-08-25 17:27 ` [bug#57410] [PATCH] gnu: Add ecbuild Antero Mejr via Guix-patches via
2022-08-25 17:30 ` [bug#57410] [PATCH] gnu: Add libaec Antero Mejr via Guix-patches via
@ 2022-08-29 17:32 ` Antero Mejr via Guix-patches via
2023-09-02 4:13 ` Vagrant Cascadian
2 siblings, 1 reply; 6+ messages in thread
From: Antero Mejr via Guix-patches via @ 2022-08-29 17:32 UTC (permalink / raw)
To: 57410; +Cc: antero, maximedevos
* gnu/packages/cmake.scm (ecbuild): New variable.
---
Patch Guix-specific paths in a build step rather than a snippet (from review).
gnu/packages/cmake.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index cf930c57fc..be4271f84c 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,36 @@ (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"))))
+ (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)))
--
2.37.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#57410] [PATCH] gnu: Add ecbuild.
2022-08-29 17:32 ` [bug#57410] [PATCH] gnu: Add ecbuild Antero Mejr via Guix-patches via
@ 2023-09-02 4:13 ` Vagrant Cascadian
0 siblings, 0 replies; 6+ messages in thread
From: Vagrant Cascadian @ 2023-09-02 4:13 UTC (permalink / raw)
To: Antero Mejr, 57410; +Cc: antero, maximedevos
[-- Attachment #1: Type: text/plain, Size: 417 bytes --]
retitle 57410 gnu: Add ecbuild.
thanks
On 2022-08-29, Antero Mejr wrote:
> * gnu/packages/cmake.scm (ecbuild): New variable.
The other two new packages proposed in this bug, eccodes and libaec,
have already been merged into guix:
1504edd84f1a0b4afda11cab99edc602d82085c1 gnu: Add eccodes.
d03b6fb0e3f0b81b35a9b35b89c213c144c59fe6 gnu: Add libaec.
Retitling bug to reflect outstanding issue.
live well,
vagrant
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-09-02 4:14 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-25 17:22 [bug#57410] [PATCH] gnu: Add eccodes Antero Mejr via Guix-patches via
2022-08-25 17:27 ` [bug#57410] [PATCH] gnu: Add ecbuild Antero Mejr via Guix-patches via
2022-08-28 15:22 ` 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
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).