From patchwork Fri Feb 9 16:27:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 59963 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 5D7CB27BBE2; Fri, 9 Feb 2024 17:53:15 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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 0582627BBEA for ; Fri, 9 Feb 2024 17:53:11 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYV3S-0004rk-NV; Fri, 09 Feb 2024 12:52:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rYV3Q-0004rN-8u for guix-patches@gnu.org; Fri, 09 Feb 2024 12:52:49 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rYV3Q-00053T-00 for guix-patches@gnu.org; Fri, 09 Feb 2024 12:52:48 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rYV3e-0005uf-IY for guix-patches@gnu.org; Fri, 09 Feb 2024 12:53:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69002] [PATCH] gnu: Add icecream-cpp. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 09 Feb 2024 17:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69002 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69002@debbugs.gnu.org Cc: "Paul A. Patience" X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170750117222693 (code B ref -1); Fri, 09 Feb 2024 17:53:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Feb 2024 17:52:52 +0000 Received: from localhost ([127.0.0.1]:54424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYV3U-0005tw-4W for submit@debbugs.gnu.org; Fri, 09 Feb 2024 12:52:52 -0500 Received: from lists.gnu.org ([2001:470:142::17]:41396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYV3Q-0005tC-6X for submit@debbugs.gnu.org; Fri, 09 Feb 2024 12:52:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rYTig-0004rV-5X for guix-patches@gnu.org; Fri, 09 Feb 2024 11:27:18 -0500 Received: from mail-4317.proton.ch ([185.70.43.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rYTid-0003a6-50 for guix-patches@gnu.org; Fri, 09 Feb 2024 11:27:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1707496032; x=1707755232; bh=GDbiffkR4pY0K9JHWBLBt1IXMcckJLMR0K+uIzfjDcE=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=IREngoNcsMHVbUA7PiB51y576CiEy4PNDMoOaOW2kMQvbW+aAWSzdTqz0+aQ95kKc 9BrLalzjzb9eeegRpL8gznGc0Y2/lSYn5JIyPbjwgE89m3vF7E8n6Jdzy91jGbE2FG uqydq5bh21qP7ga6iqMA17gZWlHvXs9HnMDu+e9VFfOUOzIXExwVcremqYu5bDolOy gitivMilcGKplNztF1L4wmyo/4cEv5FC5fnTsP7zbv4s38+pEAT7yMmickstslVIRK 4/Pb+kePdlEljUka3fAYSI1f6BB9CEidusQog+Xu9hYWm0vawuHbv9ytzxl0asfFd+ bV5t6/NHhUUSQ== Date: Fri, 09 Feb 2024 16:27:04 +0000 From: "Paul A. Patience" Message-ID: <394beb84d63b1760b1c0e40859e349a25a0dc221.1707496006.git.paul@apatience.com> Feedback-ID: 19227857:user:proton MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.43.17; envelope-from=paul@apatience.com; helo=mail-4317.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/cpp.scm (icecream-cpp): New variable. Change-Id: Idfc9fd789fe4f0a163cc8a8be8ad2a3b35d50dfd --- gnu/packages/cpp.scm | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) base-commit: 570ef13a87bb54d3410c431700ba78316a2641e2 diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 62a1923571..d589d44e43 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -38,7 +38,7 @@ ;;; Copyright © 2023 Liliana Marie Prikler ;;; Copyright © 2023 Denis 'GNUtoo' Carikli ;;; Copyright © 2023 Foundation Devices, Inc. -;;; Copyright © 2023 Paul A. Patience +;;; Copyright © 2023-2024 Paul A. Patience ;;; ;;; This file is part of GNU Guix. ;;; @@ -3048,3 +3048,39 @@ (define-public tl-optional the std::optional for C++11/14/17, with support for monadic operations added in C++23.") (license license:cc0))) + +(define-public icecream-cpp + ;; Last release was in 2020, last commit in 2023. + (let ((commit "04e8d3697e64e68d5150a6bc36ba8ebb8690f425") + (revision "0")) + (package + (name "icecream-cpp") + (version (git-version "0.3.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/renatoGarcia/icecream-cpp") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1adahzwm3wlk8d4cjzjakvrw2mm825vpxf37m0ffxxzd3kzrn6qy")) + ;; Remove bundled Catch2. + (snippet #~(delete-file "test/catch.hpp")))) + (build-system cmake-build-system) + (arguments + (list #:configure-flags #~(list "-DBUILD_TESTING=ON") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-test + (lambda _ + (substitute* "test/test.cpp" + (("#include \"catch\\.hpp\"") + "#include "))))))) + (native-inputs (list boost catch2)) + (home-page "https://github.com/renatoGarcia/icecream-cpp") + (synopsis "C++ library for @code{printf} debugging") + (description "IceCream-Cpp is a C++ library for @code{printf} debugging. +It is inspired by the @url{https://github.com/gruns/icecream, Python library} +of the same name.") + (license license:expat))))