Subject: [bug#35221] [PATCH 2/2] Re: Add log4cl packages

From: JesseJohnGildersleve <[email-masked]>
Date: Wed, 10 Apr 2019 19:02:09 +0000

Sorry for the mistake, that was an older version of the patch before I linted it and cleaned it up, here is the final version:

>From 2ac9d70a78cc48dc4f1011aed09968d5538d8f42 Mon Sep 17 00:00:00 2001
From: frozenpigs <[email-masked]>
Date: Wed, 10 Apr 2019 20:01:21 +0100
Subject: [PATCH] gnu: Add sbcl-log4cl, cl-log4cl and ecl-log4cl

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

diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index e0f3e0ae40..94ddda3bde 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -5239,3 +5239,36 @@ Python's WSGI and Ruby's Rack.")

 (define-public cl-clack
   (sbcl-package->cl-source-package sbcl-clack))
+
+(define-public sbcl-log4cl
+  (let ((commit "611e094458504b938d49de904eab141285328c7c")
+        (revision "1"))
+    (package
+      (name "sbcl-log4cl")
+      (build-system asdf-build-system/sbcl)
+      (version "1.1.2")
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/sharplispers/log4cl")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "08jly0s0g26b56hhpfizxsb4j0yvbh946sd205gr42dkzv8l7dsc"))))
+      ;; FIXME: tests require stefil, sbcl-hu.dwim.stefil wont work
+      (arguments
+       `(#:tests? #f))
+      (inputs `(("bordeaux-threads" ,sbcl-bordeaux-threads)))
+      (synopsis "Common Lisp logging framework, modeled after Log4J")
+      (home-page "https://github.com/7max/log4cl")
+      (description "This is a common lisp logging framework that can log at
+various levels and mix text with expressions.")
+      (license license:asl2.0))))
+
+(define-public cl-log4cl
+  (sbcl-package->cl-source-package sbcl-log4cl))
+
+(define-public ecl-log4cl
+  (sbcl-package->ecl-package sbcl-log4cl))
--
2.21.0

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, April 10, 2019 7:30 PM, JesseJohnGildersleve <[email-masked]> wrote:

> Was meant to be [PATCH 2/2]
>
> Sent with ProtonMail Secure Email.
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Wednesday, April 10, 2019 7:29 PM, JesseJohnGildersleve [email-masked] wrote:
>
> > From 5ea316ec3873737bd1a99591d4127dc48d8b471a Mon Sep 17 00:00:00 2001
> > From: frozenpigs [email-masked]
> > Date: Wed, 10 Apr 2019 19:25:50 +0100
> > Subject: [PATCH] gnu: Add sbcl-log4cl, cl-log4cl and ecl-log4cl
> >
> > gnu/packages/lisp.scm | 28 ++++++++++++++++++++++++++++
> > 1 file changed, 28 insertions(+)
> > diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
> > index e0f3e0ae40..2a51a98240 100644
> > --- a/gnu/packages/lisp.scm
> > +++ b/gnu/packages/lisp.scm
> > @@ -5239,3 +5239,31 @@ Python's WSGI and Ruby's Rack.")
> > (define-public cl-clack
> > (sbcl-package->cl-source-package sbcl-clack))
> >
> > -
> >
> > +(define-public sbcl-log4cl
> >
> > -   (package
> >
> > -   (name "sbcl-log4cl")
> >
> > -   (build-system asdf-build-system/sbcl)
> >
> > -   (source
> >
> > -         (origin
> >
> >
> > -           (method git-fetch)
> >
> >
> > -           (uri (git-reference
> >
> >
> > -                          (url "https://github.com/sharplispers/log4cl")
> >
> >
> > -                          (commit "611e094458504b938d49de904eab141285328c7c")))
> >
> >
> > -           (sha256
> >
> >
> > -            (base32
> >
> >
> > -             "08jly0s0g26b56hhpfizxsb4j0yvbh946sd205gr42dkzv8l7dsc"))))
> >
> >
> > -   (arguments
> >
> > -         `(#:tests? #f))
> >
> >
> > -   (inputs `(("bordeaux-threads" ,sbcl-bordeaux-threads)))
> >
> > -   (version "1.1.2")
> >
> > -   (synopsis "Common Lisp logging framework, modeled after Log4J")
> >
> > -   (home-page "https://github.com/7max/log4cl")
> >
> > -   (description "Common Lisp logging framework, modeled after Log4J")
> >
> > -   (license license:expat)))
> >
> > -
> >
> > +(define-public cl-log4cl
> >
> > -   (sbcl-package->cl-source-package sbcl-log4cl))
> >
> > -
> >
> > +(define-public ecl-log4cl
> >
> > -   (sbcl-package->ecl-package sbcl-log4cl))
> >
> > --
> > 2.21.0