* [bug#69002] [PATCH] gnu: Add icecream-cpp.
@ 2024-02-09 16:27 Paul A. Patience
0 siblings, 0 replies; only message in thread
From: Paul A. Patience @ 2024-02-09 16:27 UTC (permalink / raw)
To: 69002; +Cc: Paul A. Patience
* gnu/packages/cpp.scm (icecream-cpp): New variable.
Change-Id: Idfc9fd789fe4f0a163cc8a8be8ad2a3b35d50dfd
---
gnu/packages/cpp.scm | 38 +++++++++++++++++++++++++++++++++++++-
1 file changed, 37 insertions(+), 1 deletion(-)
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 <liliana.prikler@gmail.com>
;;; Copyright © 2023 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
;;; Copyright © 2023 Foundation Devices, Inc. <hello@foundationdevices.com>
-;;; Copyright © 2023 Paul A. Patience <paul@apatience.com>
+;;; Copyright © 2023-2024 Paul A. Patience <paul@apatience.com>
;;;
;;; 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 <catch2/catch.hpp>")))))))
+ (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))))
base-commit: 570ef13a87bb54d3410c431700ba78316a2641e2
--
2.41.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-09 17:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-09 16:27 [bug#69002] [PATCH] gnu: Add icecream-cpp Paul A. Patience
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).