unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#51153] [PATCH] gnu: Add cl-readline
@ 2021-10-12  7:48 Foo Chuan Wei
  2021-10-13  8:52 ` bug#51153: " Guillaume Le Vaillant
  0 siblings, 1 reply; 2+ messages in thread
From: Foo Chuan Wei @ 2021-10-12  7:48 UTC (permalink / raw)
  To: 51153

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

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 5d9db448d0..24a409f78c 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -84,6 +84,7 @@
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-xyz)
+  #:use-module (gnu packages readline)
   #:use-module (gnu packages sdl)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages tcl)
@@ -18841,3 +18842,48 @@ formats within this framework.")
 
 (define-public cl-feeder
   (sbcl-package->cl-source-package sbcl-feeder))
+
+(define-public sbcl-readline
+  (let ((commit "8438c9ebd92ccc95ebab9cc9cbe6c72d44fccc58")
+        (revision "1"))
+    (package
+      (name "sbcl-readline")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                       (url "https://github.com/vindarel/cl-readline")
+                       (commit commit)))
+                (sha256
+                  (base32
+                    "14iskvqfw71ssaav483vmqw62lrpznysjs800gjjppxs785p1fa0"))))
+      (build-system asdf-build-system/sbcl)
+      (inputs `(("alexandria" ,sbcl-alexandria)
+                ("cffi" ,sbcl-cffi)
+                ("readline" ,readline)))
+      (arguments '(#:asd-systems '("cl-readline")
+                   #:phases
+                   (modify-phases %standard-phases
+                     (add-after 'unpack 'fix-paths
+                       (lambda* (#:key inputs #:allow-other-keys)
+                         (substitute* "cl-readline.lisp"
+                           (("libreadline.so")
+                            (string-append (assoc-ref inputs "readline")
+                                           "/lib/libreadline.so")))
+                         #t)))))
+      (home-page "https://github.com/vindarel/cl-readline")
+      (synopsis "Common Lisp bindings to the GNU Readline library")
+      (description
+        "The Readline library provides a set of functions for use by
+applications that allow users to edit command lines as they are typed in. Both
+Emacs and vi editing modes are available. The Readline library includes
+additional functions to maintain a list of previously-entered command lines, to
+recall and perhaps reedit those lines, and perform csh-like history expansion on
+previous commands.")
+      (license license:gpl3))))
+
+(define-public cl-readline
+  (sbcl-package->cl-source-package sbcl-readline))
+
+(define-public ecl-readline
+  (sbcl-package->ecl-package sbcl-readline))

base-commit: 35aaf1fe10488ae9ed732fb2c383d09a70c109c0
-- 
2.25.1





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#51153: [PATCH] gnu: Add cl-readline
  2021-10-12  7:48 [bug#51153] [PATCH] gnu: Add cl-readline Foo Chuan Wei
@ 2021-10-13  8:52 ` Guillaume Le Vaillant
  0 siblings, 0 replies; 2+ messages in thread
From: Guillaume Le Vaillant @ 2021-10-13  8:52 UTC (permalink / raw)
  To: Foo Chuan Wei; +Cc: 51153-done

[-- Attachment #1: Type: text/plain, Size: 91 bytes --]

Patch pushed as f0c8cdb56519371432ed8b62c8eff446d8c5be6f with a few
modifications.
Thanks.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-13  8:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-12  7:48 [bug#51153] [PATCH] gnu: Add cl-readline Foo Chuan Wei
2021-10-13  8:52 ` bug#51153: " Guillaume Le Vaillant

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).