GNU bug report logs - #68360
[PATCH v2] gnu: Add cl-command-line-args

Previous Next

Package: guix-patches;

Reported by: Charles <charles <at> charje.net>

Date: Wed, 10 Jan 2024 02:17:02 UTC

Severity: normal

Tags: patch

Done: Guillaume Le Vaillant <glv <at> posteo.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 68360 in the body.
You can then email your comments to 68360 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to glv <at> posteo.net, cox.katherine.e+guix <at> gmail.com, me <at> bonfacemunyoki.com, jgart <at> dismail.de, guix-patches <at> gnu.org:
bug#68360; Package guix-patches. (Wed, 10 Jan 2024 02:17:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Charles <charles <at> charje.net>:
New bug report received and forwarded. Copy sent to glv <at> posteo.net, cox.katherine.e+guix <at> gmail.com, me <at> bonfacemunyoki.com, jgart <at> dismail.de, guix-patches <at> gnu.org. (Wed, 10 Jan 2024 02:17:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Charles <charles <at> charje.net>
To: guix-patches <at> gnu.org
Cc: Charles <charles <at> charje.net>
Subject: [PATCH v2] gnu: Add cl-command-line-args
Date: Tue,  9 Jan 2024 18:44:59 -0600
* gnu/packages/lisp-xyz.scm (cl-command-line-args, ecl-command-line-args,
sbcl-command-line-args): New variables.

Change-Id: I6a829e6934b93c58a9c2a3673bb553d1e2132007
---
I remembered that I need to run guix lint, so I fixed those issues.

 gnu/packages/lisp-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index aa3ea7c9ce..f5c45b8d44 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -1067,6 +1067,42 @@ (define-public cl-clingon
 (define-public ecl-clingon
   (sbcl-package->ecl-package sbcl-clingon))
 
+(define-public sbcl-command-line-args
+  (package
+    (name "sbcl-command-line-args")
+    (version "0.0.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://git.sr.ht/~whereiseveryone/command-line-args")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "01p52zxr1b49c15ichlc3zadd1mrmwxzria53j949ayl2j6k8w1b"))))
+    (build-system asdf-build-system/sbcl)
+    (arguments
+     '(#:asd-systems '("whereiseveryone.command-line-args")))
+    (inputs
+     (list sbcl-alexandria
+           sbcl-serapeum
+           sbcl-cl-str
+           sbcl-trivia))
+    (home-page "https://git.sr.ht/~whereiseveryone/command-line-args")
+    (synopsis "Automatically create a CLI parser for a given Common Lisp function definition")
+    (description "Command-Line-Args provides a main macro (@code{command})
+that wraps a @code{defun} form and creates a new function that parses the
+command line arguments.  It has support for command-line options, positoinal,
+and variadic arguments.  It also generates a basic help message.  The
+interface is meant to be easy and non-intrusive.")
+    (license license:agpl3+)))
+
+(define-public cl-command-line-args
+  (sbcl-package->cl-source-package sbcl-command-line-args))
+
+(define-public ecl-command-line-args
+  (sbcl-package->ecl-package sbcl-command-line-args))
+
 (define-public sbcl-cl-irc
   (let ((commit "963823537c7bfcda2edd4c44d172192da6722175")
         (revision "0"))

base-commit: 3de361d9c9d320aefbd43710124d7b07af891de1
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#68360; Package guix-patches. (Fri, 12 Jan 2024 14:54:01 GMT) Full text and rfc822 format available.

Message #8 received at 68360 <at> debbugs.gnu.org (full text, mbox):

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: Charles <charles <at> charje.net>
Cc: Munyoki Kilyungi <me <at> bonfacemunyoki.com>, jgart <jgart <at> dismail.de>,
 Katherine Cox-Buday <cox.katherine.e+guix <at> gmail.com>, 68360 <at> debbugs.gnu.org
Subject: Re: [bug#68360] [PATCH v2] gnu: Add cl-command-line-args
Date: Fri, 12 Jan 2024 14:47:17 +0000
[Message part 1 (text/plain, inline)]
Charles <charles <at> charje.net> skribis:

> * gnu/packages/lisp-xyz.scm (cl-command-line-args, ecl-command-line-args,
> sbcl-command-line-args): New variables.
>
> [...]
>
> +(define-public sbcl-command-line-args
> +  (package
> +    (name "sbcl-command-line-args")
> +    (version "0.0.0")
> +    (source
> +     (origin
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url "https://git.sr.ht/~whereiseveryone/command-line-args")

Hi.
I tried applying this patch, but I can't download the sources. I get
a timeout error when connecting to sr.ht.
Does it work for you?
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#68360; Package guix-patches. (Fri, 12 Jan 2024 17:36:02 GMT) Full text and rfc822 format available.

Message #11 received at 68360 <at> debbugs.gnu.org (full text, mbox):

From: Charles <charles <at> charje.net>
To: 68360 <at> debbugs.gnu.org
Subject: Re: [bug#68360] [PATCH v2] gnu: Add cl-command-line-args
Date: Fri, 12 Jan 2024 11:35:39 -0600
Hello. Thank you for taking a look at my patch.

The source is hosted on git.st.ht (source hut) which is currently experiencing a ddos attack. This patch will have to wait until that is resolved or the source is moved. Either way I can send another email here to let you know.




Reply sent to Guillaume Le Vaillant <glv <at> posteo.net>:
You have taken responsibility. (Sat, 13 Jan 2024 13:08:02 GMT) Full text and rfc822 format available.

Notification sent to Charles <charles <at> charje.net>:
bug acknowledged by developer. (Sat, 13 Jan 2024 13:08:02 GMT) Full text and rfc822 format available.

Message #16 received at 68360-done <at> debbugs.gnu.org (full text, mbox):

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: Charles <charles <at> charje.net>
Cc: 68360-done <at> debbugs.gnu.org
Subject: Re: [bug#68360] [PATCH v2] gnu: Add cl-command-line-args
Date: Sat, 13 Jan 2024 13:06:36 +0000
[Message part 1 (text/plain, inline)]
I was able to fetch the sources. Patch applied as
f7f608d3b408e64e1fdcec5f6254e1aa534a64a1.
Thanks.
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 11 Feb 2024 12:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 125 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.