From patchwork Thu Aug 25 17:22:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 41962 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1E52127BBEA; Thu, 25 Aug 2022 18:24:46 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 94D0527BBE9 for ; Thu, 25 Aug 2022 18:24:45 +0100 (BST) Received: from localhost ([::1]:32958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRGay-00050g-N4 for patchwork@mira.cbaines.net; Thu, 25 Aug 2022 13:24:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRGaJ-00050U-7n for guix-patches@gnu.org; Thu, 25 Aug 2022 13:24:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33193) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRGaI-0008FP-Up for guix-patches@gnu.org; Thu, 25 Aug 2022 13:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oRGaI-0006Yj-EO for guix-patches@gnu.org; Thu, 25 Aug 2022 13:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57410] [PATCH] gnu: Add eccodes. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Aug 2022 17:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57410 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57410@debbugs.gnu.org Cc: Antero Mejr X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166144818225140 (code B ref -1); Thu, 25 Aug 2022 17:24:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Aug 2022 17:23:02 +0000 Received: from localhost ([127.0.0.1]:51175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRGZK-0006XC-3g for submit@debbugs.gnu.org; Thu, 25 Aug 2022 13:23:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:37420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRGZG-0006Wj-7t for submit@debbugs.gnu.org; Thu, 25 Aug 2022 13:23:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRGZF-0004we-ME for guix-patches@gnu.org; Thu, 25 Aug 2022 13:22:58 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:35848) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1oRGZC-00086E-Hi for guix-patches@gnu.org; Thu, 25 Aug 2022 13:22:57 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4MD8tJ03zNz9sX2 for ; Thu, 25 Aug 2022 19:22:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1661448168; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=KRJTqiek/uDp7ZOJGgEYQrITlq1mToc2VmHIye6ne8w=; b=fs3xWm4I07BXZA1AS9LYVem+7LO83wiulMGOLmV2UA1yIxp+jo9vujCagr++3ZPDnKNx7D g1fVLcglg8u3PF1Z0JRwzR3Q9+3eA4onixQLjmmR3W+pNYR8ZJu4any2a/ANyP7oYSiVpZ ttR5FktF/HILhtUF05kjxNInST5FB//HuXUZq2Sk0d7CMLTvYg8girTS8r/j3FZG+BC9ma Q+0AjH9LCtj7mauxMO9sC9mXDHo5KIX63FbiQIXZyVGEih9K0wBclzKUYaStkbJDzZVnrh 1XEchKqGCXWFuxT+tikGE5ZSQsEqzVZLlyg1+xJnM2LaAIIyAJ6EoYvrJk+ROw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1661448165; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=KRJTqiek/uDp7ZOJGgEYQrITlq1mToc2VmHIye6ne8w=; b=kAvdUsDclisPvKWq3sdbOgqh8djCyGAf8UCVxLoM40rifdTTjNKryh66eKAWo9umhEAPta a21WYVFH3HMsNT5AtKbgJge2aIPx98RmGLkFhI5YHY5302NKp1Cg7t/u2tZDC7bb7M0uw/ qOWEwIAnL2sHAJzgHw3iep3JSk1b62twwJYbN0jelYPTO1NaKb50YF8X4BBM4Sjb+9TXZg LRUx7QlfZuTDfdonxenUEomdG1UL+YmyVn0anjIaMH788HZCfN2JJDungaTu4EWKcNliXS 0wLJ+po8xiI7Gg2WNwIeNvOeFHxQLTaDHJDxNzIXtZwaJf3rFWoyXFoXjImCVg== Date: Thu, 25 Aug 2022 13:22:27 -0400 Message-Id: <20220825172227.1110221-1-antero@mailbox.org> MIME-Version: 1.0 X-MBO-RS-ID: 85124bd92a5a759261d X-MBO-RS-META: 6k14j3rcqss7iuhbcz5z1r11cwdc87kh Received-SPF: pass client-ip=80.241.56.171; envelope-from=antero@mailbox.org; helo=mout-p-201.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches X-Patchwork-Original-From: Antero Mejr via Guix-patches via From: Antero Mejr X-getmail-retrieved-from-mailbox: Patches * 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)))