From patchwork Thu Aug 25 17:27:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 41963 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 56C6127BBEA; Thu, 25 Aug 2022 18:28:18 +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 012B027BBE9 for ; Thu, 25 Aug 2022 18:28:18 +0100 (BST) Received: from localhost ([::1]:38892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRGeP-00063R-5l for patchwork@mira.cbaines.net; Thu, 25 Aug 2022 13:28:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRGeA-000630-DS for guix-patches@gnu.org; Thu, 25 Aug 2022 13:28:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33200) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRGeA-0000Of-4w for guix-patches@gnu.org; Thu, 25 Aug 2022 13:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oRGe9-0006el-UA for guix-patches@gnu.org; Thu, 25 Aug 2022 13:28:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57410] [PATCH] gnu: Add ecbuild. References: <20220825172227.1110221-1-antero@mailbox.org> In-Reply-To: <20220825172227.1110221-1-antero@mailbox.org> Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Aug 2022 17:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57410 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57410@debbugs.gnu.org Cc: Antero Mejr Received: via spool by 57410-submit@debbugs.gnu.org id=B57410.166144844825541 (code B ref 57410); Thu, 25 Aug 2022 17:28:01 +0000 Received: (at 57410) by debbugs.gnu.org; 25 Aug 2022 17:27:28 +0000 Received: from localhost ([127.0.0.1]:51182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRGdb-0006dt-T4 for submit@debbugs.gnu.org; Thu, 25 Aug 2022 13:27:28 -0400 Received: from mout-p-101.mailbox.org ([80.241.56.151]:46986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRGdX-0006db-M5 for 57410@debbugs.gnu.org; Thu, 25 Aug 2022 13:27:26 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::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-101.mailbox.org (Postfix) with ESMTPS id 4MD8zS4Qkhz9sV6 for <57410@debbugs.gnu.org>; Thu, 25 Aug 2022 19:27:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1661448436; 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=t9NgK1rVe9WEm2D4bCFJNhE/Zkx9S1H7dRPEVqOyqd0=; b=cbyLaMZP1kpJAMUaxPs0iv2deD9B5Fi6DB0Exzrrh1Lha/wZU1CKEPRH3hoFZ/wV0+AJ3m XRQuK15b4gS5RyD1ELAW59CIjVFfRXJO5zb2TLciqWlNa5CPO/CpI0MDGFGCoBhV88uO4n OYHqSQaWfhm8oUtzo9t0Lu5D2b5GEIhjAHJlzSFflbOHXpJ3Ni/xHJMKLyzfdXzH4p61lD 0DBpj+VcTIYb7CkMcB3/t0QVtuideWZTEixf1y/CL//pZSYgf07SQDOzmwcw8M4aYN+JPq EjpqomGF8cD67xd9r4C5S1mEOkTg8HfUGfS7yCiG9AV7vwz6oYEu/p9bA6i8Zg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1661448434; 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=t9NgK1rVe9WEm2D4bCFJNhE/Zkx9S1H7dRPEVqOyqd0=; b=H9dAhugfMvyvXwWnEANCtt/2vPs8R6C3hX9RKBbSALkiTf+jbjouQlX6gCz7ImpwCaA/BT p2tbhDN/jwc9vPfT4vhN4IIS3aohh5qGw68zHBwxvp5GyQ+NMusRG2GtTXf/+xzAz2YGgT q4dlUHAUIg9L0ccvRqr/Ug5Bqca94bl8as0M4sOkSfgsT26x+QtjeUtUDFjabM7tE5XViU j+FlBYwztaVreVk5/+mhIDKBOb8QZ/rYK+UO8L0HfcmlqO/Cq3TqqVmfd89bM64za7l/ZA GGQcbf4TIBLUhEHn4MORG8uYMFmOeXg5qpmg4TzF+VrS71yv9h4C9Wisa/ts8A== Date: Thu, 25 Aug 2022 13:27:02 -0400 Message-Id: <20220825172702.1111386-1-antero@mailbox.org> MIME-Version: 1.0 X-MBO-RS-META: x34s7a1rm1dq5m8hmt1zdygqhgcu1ro6 X-MBO-RS-ID: 1a93c208ab01aa5c983 X-Rspamd-Queue-Id: 4MD8zS4Qkhz9sV6 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/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)))