Subject: bug#75282: closed (Re: [bug#75282] [PATCH v3] gnu: Add tclap.)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 18 Jan 2025 21:25:02 +0000

Your bug report

#75282: [PATCH] gnu: Add tclap.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
75282: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=75282
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#75282] [PATCH v3] gnu: Add tclap.
From: Ludovic Courtès <[email-masked]>
To: Lars Bilke <[email-masked]>
Cc: [email-masked], [email-masked]
Date: Sat, 18 Jan 2025 22:23:51 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Lars Bilke <[email-masked]> skribis:

> * gnu/packages/cpp.scm (tclap): New variable.
>
> Change-Id: I21e0eb623abe0b5add59647dec5606c706063e00

Applied, thanks!

Note that normally we don’t package release candidates (RC) so please be
sure to upgrade this one as soon as the new version is out.

Thanks,
Ludo’.

Subject: [PATCH] gnu: Add tclap.
From: Lars Bilke <[email-masked]>
To: [email-masked]
Cc: Lars Bilke <[email-masked]>
Date: Thu, 02 Jan 2025 13:57:08 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/cpp.scm (tclap): New variable.

Change-Id: I21e0eb623abe0b5add59647dec5606c706063e00
---
 gnu/packages/cpp.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index d3a8223a9c..cc39fc8851 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -3531,3 +3531,35 @@ (define-public cpp-ada-url-parser
      "Ada is a fast and spec-compliant URL parser written in C++.
 Specification for URL parser can be found from the WHATWG website.")
     (license license:gpl3+)))
+
+(define-public tclap
+  (package
+    (name "tclap")
+    (synopsis "Templatized Command Line Argument Parser")
+    (license license:expat)
+    (description
+     "This is a simple C++ library that facilitates parsing command line
+arguments in a type independent manner.")
+    (home-page "https://sourceforge.net/p/tclap/discussion/")
+    (version "1.4.0-1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://git.code.sf.net/p/tclap/code")
+             (commit "81b3d2a0c47895c22e9bb8c577f5ab521f76e5d2")))
+       (sha256
+        (base32 "0w06phgcjjnskxl9f0vmy5lgx5y2irbx14j9c2k8fis8a9sdiq51"))))
+    (build-system cmake-build-system)
+    (native-inputs (list python))
+    (arguments
+     (list
+      #:phases #~(modify-phases %standard-phases
+                   (replace 'check
+                     (lambda* (#:key tests? parallel-tests? #:allow-other-keys)
+                       (if tests?
+                           (invoke "ctest" "-j"
+                                   (if parallel-tests?
+                                       (number->string (parallel-job-count))
+                                       "1"))
+                           (format #t "test suite not run~%")))))))))

base-commit: ab43d883a0a88adbcfd3c3ab8d4c097cd9054b90
-- 
2.46.1