unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Foo Chuan Wei <chuanwei.foo@hotmail.com>
To: 51168@debbugs.gnu.org
Subject: [bug#51168] [PATCH 2/3] gnu: Add cl-libyaml
Date: Tue, 12 Oct 2021 19:18:45 +0000	[thread overview]
Message-ID: <PU1PR01MB21559BD5AD7271CB2BF755C48DB69@PU1PR01MB2155.apcprd01.prod.exchangelabs.com> (raw)
In-Reply-To: <PU1PR01MB2155FE75108C27C706BBBE178DB69@PU1PR01MB2155.apcprd01.prod.exchangelabs.com>

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

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 8e26b40b5e..4395e54899 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 serialization)
   #:use-module (gnu packages sdl)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages tcl)
@@ -18875,3 +18876,45 @@ CDR-8 standard.")
 
 (define-public ecl-generic-comparability
   (sbcl-package->ecl-package sbcl-generic-comparability))
+
+(define-public sbcl-libyaml
+  (let ((commit "a7fe9f68bddfd00b7ca467b65b3b41b276336843")
+        (revision "1"))
+    (package
+      (name "sbcl-libyaml")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                       (url "https://github.com/eudoxia0/cl-libyaml")
+                       (commit commit)))
+                (sha256
+                  (base32
+                    "06pvmackyhq03rjmihpx6w63m6cy8wx78ll5xpwwvd85bgrqq817"))
+                (file-name (git-file-name name version))))
+      (build-system asdf-build-system/sbcl)
+      (inputs `(("cffi" ,sbcl-cffi)
+                ("libyaml" ,libyaml)))
+      (arguments '(#:asd-systems '("cl-libyaml")
+                   #:phases
+                   (modify-phases %standard-phases
+                     (add-after 'unpack 'fix-paths
+                       (lambda* (#:key inputs #:allow-other-keys)
+                         (substitute* "src/library.lisp"
+                           (("libyaml.so")
+                            (string-append (assoc-ref inputs "libyaml")
+                                           "/lib/libyaml.so")))
+                         #t)))))
+      (home-page "https://github.com/eudoxia0/cl-libyaml")
+      (synopsis "libyaml bindings for Common Lisp")
+      (description
+        "This is a home-spun binding to the libyaml library. It's not meant as
+a full library for YAML, just a bare binding with a couple of utility macros.
+For a YAML parser and emitter using this, check out cl-yaml.")
+      (license license:expat))))
+
+(define-public cl-libyaml
+  (sbcl-package->cl-source-package sbcl-libyaml))
+
+(define-public ecl-libyaml
+  (sbcl-package->ecl-package sbcl-libyaml))
-- 
2.25.1





  parent reply	other threads:[~2021-10-12 19:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-12 19:12 [bug#51168] [PATCH 0/3] Add cl-yaml Foo Chuan Wei
2021-10-12 19:16 ` [bug#51168] [PATCH 1/3] gnu: Add cl-generic-comparability Foo Chuan Wei
2021-10-12 19:18 ` Foo Chuan Wei [this message]
2021-10-12 19:21 ` [bug#51168] [PATCH 3/3] gnu: Add cl-yaml Foo Chuan Wei
2021-10-13  8:53 ` bug#51168: [PATCH 0/3] " Guillaume Le Vaillant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PU1PR01MB21559BD5AD7271CB2BF755C48DB69@PU1PR01MB2155.apcprd01.prod.exchangelabs.com \
    --to=chuanwei.foo@hotmail.com \
    --cc=51168@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).