Subject: [bug#51147] [PATCH] gnu: Add cl-terminfo

From: Foo Chuan Wei <[email-masked]>
Date: Tue, 12 Oct 2021 05:05:32 +0000

* gnu/packages/lisp-xyz.scm (sbcl-terminfo, cl-terminfo, ecl-terminfo):
  New variables.
---
 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 5d9db448d0..f4a3f65669 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -18841,3 +18841,36 @@ formats within this framework.")
 
 (define-public cl-feeder
   (sbcl-package->cl-source-package sbcl-feeder))
+
+(define-public sbcl-terminfo
+  (let ((commit "b8b2e3ed786bfcf9f1aa4a264cee2e93135080f5")
+        (revision "1"))
+    (package
+      (name "sbcl-terminfo")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                       (url "https://github.com/npatrick04/terminfo")
+                       (commit commit)))
+                (sha256
+                  (base32
+                    "1nmin9rr6f75xdhxysba66xa1dh62fh27w9ad1cvmj0062armf6b"))))
+      (build-system asdf-build-system/sbcl)
+      (synopsis "A terminfo database front end in Common Lisp")
+      (home-page "https://github.com/npatrick04/terminfo")
+      (description
+        "A terminfo database front end in Common Lisp. The package provides a
+method for determining which capabilities a terminal (e.g. \"xterm\") has and
+methods to compile or put commands to a stream.
+
+Based on terminfo by Paul Foley, terminfo was later modified for use in linedit
+and the hemlock text editor. This library consolidates changes to the terminfo
+package to provide a flexible interface.")
+      (license license:expat))))
+
+(define-public cl-terminfo
+  (sbcl-package->cl-source-package sbcl-terminfo))
+
+(define-public ecl-terminfo
+  (sbcl-package->ecl-package sbcl-terminfo))

base-commit: 0105f33a4ddd7d3ef3d66bd16e16595dd500d404
-- 
2.25.1