Subject: [PATCH 10/16] gnu: Add cl-enhanced-eval-when.

From: jgart <[email-masked]>
Date: Wed, 7 Sep 2022 19:48:58 -0500

* gnu/packages/lisp-xyz.scm (cl-enhanced-eval-when,
ecl-enhanced-eval-when, sbcl-enhanced-eval-when): New variables.
---
 gnu/packages/lisp-xyz.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index d0aff38e35..8c2b46fd76 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -23569,6 +23569,37 @@ (define-public cl-evaled-when
 (define-public ecl-evaled-when
   (sbcl-package->ecl-package sbcl-evaled-when))
 
+(define-public sbcl-enhanced-eval-when
+  (package
+      (name "sbcl-enhanced-eval-when")
+      (version "1.0")
+      (source
+        (origin
+          (method git-fetch)
+          (uri (git-reference
+                (url "https://github.com/Hexstream/enhanced-eval-when")
+                (commit (string-append "v" version))))
+          (file-name (git-file-name name version))
+          (sha256
+           (base32 "1ws1v297plcbqmcvckg7vqzzgnrwfyx5kd7281r1wrhc26998rx2"))))
+      (build-system asdf-build-system/sbcl)
+      ;; https://github.com/Hexstream/enhanced-eval-when/issues/1
+      (arguments
+        (list #:tests? #f)) ; There are no tests in version 1.0.
+      (home-page "https://www.hexstreamsoft.com/libraries/enhanced-eval-when/")
+      (synopsis "Shortcuts for EVAL-WHEN")
+      (description
+"Provides an enhanced @code{EVAL-WHEN} macro that supports a shorthand
+for @code{(eval-when (:compile-toplevel :load-toplevel :execute) ...)},
+addressing concerns about verbosity.")
+      (license license:unlicense)))
+
+(define-public cl-enhanced-eval-when
+  (sbcl-package->cl-source-package sbcl-enhanced-eval-when))
+
+(define-public ecl-enhanced-eval-when
+  (sbcl-package->ecl-package sbcl-enhanced-eval-when))
+
 (define-public sbcl-smug
   (let ((commit "647a2428df297e1dd183ba7c19574bdb1320ae79")
         (revision "0"))
-- 
2.37.2