Subject: [PATCH] gnu: Add sbcl-cacle.
From: Roman Scherer <[email-masked]>
To: [email-masked]
Cc: Roman Scherer <[email-masked]>
Date: Tue, 29 Oct 2024 09:17:31 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/lisp-xyz.scm (sbcl-cacle): New variable.

Change-Id: I67e6702d132fed017d86be82665e44021c1b081f
---
 gnu/packages/lisp-xyz.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index d93c67ca5d..a44ec26f32 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -2686,6 +2686,39 @@ (define-public cl-cache-while
 (define-public ecl-cache-while
   (sbcl-package->ecl-package sbcl-cache-while))
 
+(define-public sbcl-cacle
+  (let ((commit "4cbe8cfe227d2e097eaced14766f4f37aa05e617")
+        (revision "1"))
+    (package
+      (name "sbcl-cacle")
+      (version (git-version "1.0.1" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/jlahd/cacle")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0h0dk0sfkfl8g0sbrs76ydb9l4znssqhx8nc5k1sg7zxpni5a4qy"))))
+      (build-system asdf-build-system/sbcl)
+      (inputs
+       (list sbcl-bordeaux-threads))
+      (home-page "https://github.com/jlahd/cacle")
+      (synopsis "Extensible cache services for Common Lisp")
+      (description "This package provides implements a generic cache management facility
+with configurable and extensible cache replacement policies.  The
+actual cached data can be stored anywhere, with cacle taking charge of
+keeping track of which entry is to be discarded next when more space
+is needed for a new entry.")
+      (license (list license:expat)))))
+
+(define-public cl-cacle
+  (sbcl-package->cl-source-package sbcl-cacle))
+
+(define-public ecl-cacle
+  (sbcl-package->ecl-package sbcl-cacle))
+
 (define-public sbcl-calispel
   (let ((commit "e9f2f9c1af97f4d7bb4c8ac25fb2a8f3e8fada7a"))
     (package

base-commit: 4491dec50a97dbdebd7dd6d41a5596358b155b79
-- 
2.46.0