From patchwork Fri Feb 9 15:52:34 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: 59961 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 556E127BBEB; Fri, 9 Feb 2024 15:54:17 +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=ham 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 A364327BBE2 for ; Fri, 9 Feb 2024 15:54:11 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYTCO-0007Ty-9z; Fri, 09 Feb 2024 10:54:00 -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 1rYTCF-0007Tb-8X for guix-patches@gnu.org; Fri, 09 Feb 2024 10:53:48 -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 1rYTCF-0004L7-0U for guix-patches@gnu.org; Fri, 09 Feb 2024 10:53:47 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rYTCT-0000eH-VO for guix-patches@gnu.org; Fri, 09 Feb 2024 10:54:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69001] [PATCH] gnu: Add dbg-macro. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 09 Feb 2024 15:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69001 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69001@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.17074940172424 (code B ref -1); Fri, 09 Feb 2024 15:54:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Feb 2024 15:53:37 +0000 Received: from localhost ([127.0.0.1]:47549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYTC4-0000d2-FC for submit@debbugs.gnu.org; Fri, 09 Feb 2024 10:53:36 -0500 Received: from lists.gnu.org ([2001:470:142::17]:50014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYTC2-0000cb-7Y for submit@debbugs.gnu.org; Fri, 09 Feb 2024 10:53:35 -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 1rYTBh-0007Rr-8Z for guix-patches@gnu.org; Fri, 09 Feb 2024 10:53:13 -0500 Received: from mail-4323.proton.ch ([185.70.43.23]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rYTBb-0004GH-Eq for guix-patches@gnu.org; Fri, 09 Feb 2024 10:53:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1707493981; x=1707753181; bh=6i1exSzKOojHZX97S+52pGuxZF+OckWhwF+fG6Ie5X4=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=XWWfeXNC+DR+jMGj7LZjSbO4TNvYu2jWZByANzwk8mCLAI2Mkzd1Lq/WdgF7A3qya WtBsVeNlFp2hk6CwSjXCBdEBnhwOQtiTXY4LC1pB/fShx2o+TgEYTzPba35DRiuQFM lsyMImsy79fh4eo+yE+S495SUZgeLS9Vdko3FP/TpLvpDIuZmDq+BML8E8eZhdY4et /o+g+Rye2fHpuXWyqTbFlXRLbQFrkpvXVlURDakPlgZX0UUhUs+JkHANnnQvVK3Rvm 0H4FmVFJlO1/t35h6565DkGnKQQiuW2R34a/joVZI6NovNdqDWcx5qZ3YueFvXMBo/ 3kaAwylW6h/Vg== Date: Fri, 09 Feb 2024 15:52:34 +0000 From: "Paul A. Patience" Message-ID: <2df0e5cd9e2c955fadad22157d45dedfa88f719e.1707493900.git.paul@apatience.com> Feedback-ID: 19227857:user:proton MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.43.23; envelope-from=paul@apatience.com; helo=mail-4323.proton.ch X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_MSPIKE_H4=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=no 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 (dbg-macro): New variable. Change-Id: If6c6cc5d3a309ee2f8987a1a3903069e29b6fdb0 --- gnu/packages/cpp.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) base-commit: 570ef13a87bb54d3410c431700ba78316a2641e2 diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 62a1923571..575bef895e 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -3048,3 +3048,37 @@ (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 dbg-macro + (package + (name "dbg-macro") + (version "0.5.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/sharkdp/dbg-macro") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "03nkvvy32rf00wwbx1hcv4k4kskvwp6sghqj4hdxr00wr7bgg4y2")) + (modules '((guix build utils))) + ;; Remove bundled Catch2. + (snippet #~(delete-file-recursively "tests/Catch2")))) + (build-system cmake-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-cmake-test + (lambda _ + (substitute* "CMakeLists.txt" + (("add_subdirectory\\(tests/Catch2\\)") + "find_package(Catch2 REQUIRED)") + (("^ *list\\(APPEND CMAKE_MODULE_PATH .*\\btests/Catch2\\b.*") + ""))))))) + (native-inputs (list catch2)) + (home-page "https://github.com/sharkdp/dbg-macro") + (synopsis "@code{dbg(…)} macro for @code{printf}-style debugging in C++") + (description "@code{dbg(…)} is a header-only implementation of a same-named +macro which facilitates @code{printf}-style debugging in C++.") + (license license:expat)))