unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#49234] Add cl-markkup-reader
@ 2021-06-26 15:36 Charles via Guix-patches via
  2021-06-27  9:16 ` bug#49234: " Guillaume Le Vaillant
  0 siblings, 1 reply; 2+ messages in thread
From: Charles via Guix-patches via @ 2021-06-26 15:36 UTC (permalink / raw)
  To: 49234


[-- Attachment #1.1: Type: text/plain, Size: 86 bytes --]

Patch is attatched. Like last time, I'm still new to this and appreciate any feedback.

[-- Attachment #1.2: Type: text/html, Size: 97 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-cl-markup-reader.patch --]
[-- Type: text/x-patch; name=0001-gnu-Add-cl-markup-reader.patch, Size: 2364 bytes --]

From 0b18edbfc77292bb7dd55b70e0abcd9279a45c54 Mon Sep 17 00:00:00 2001
From: Charles <charles.b.jackson@protonmail.com>
Date: Sat, 26 Jun 2021 09:31:11 -0500
Subject: [PATCH] gnu: Add cl-markup-reader.

* gnu/packages/fonts.scm (sbcl-markup-reader): Add new variable.
* gnu/packages/fonts.scm (ecl-markup-reader): Add new variable.
* gnu/packages/fonts.scm (cl-markup-reader): Add new variable.
---
 gnu/packages/lisp-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 1bd35d5812..f8aae805ed 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -3591,6 +3591,43 @@ Lisp, featuring:
 (define-public ecl-cl-markup
   (sbcl-package->ecl-package sbcl-cl-markup))
 
+(define-public sbcl-markup-reader
+  (package
+    (name "sbcl-markup-reader")
+    (version "0.0.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/moderninterpreters/markup")
+             (commit "d2d4d7b073554f47c24223a9304452966608702e")))
+       (file-name (git-file-name "markup-reader" version))
+       (sha256
+        (base32 "0i3v938j8zpzkd6p9j8gadp5zndjcdxhswj1qgsp592v6497rpzj"))))
+    (build-system asdf-build-system/sbcl)
+    (arguments
+     '(#:asd-files '("markup.asd")
+       #:asd-systems '("markup")))
+    (inputs
+     `(("sbcl-cl-str" ,sbcl-cl-str)
+       ("sbcl-alexandria" ,sbcl-alexandria)
+       ("sbcl-named-readtables" ,sbcl-named-readtables)
+       ("sbcl-trivial-gray-streams" ,sbcl-trivial-gray-streams)))
+    (home-page "https://github.com/moderninterpreters/markup")
+    (synopsis "Markup provides a reader-macro to read HTML tags inside of
+Common Lisp code")
+    (description "Markup allows the use of HTML syntax with in Common Lisp code.
+This has the advantage of being able to copy HTML snippets and have the
+instantly be functional, less double quotes than a s-expression approach, and
+designers will be able to understand the embeded HTML.")
+    (license license:asl2.0)))
+
+(define-public ecl-markup-reader
+  (sbcl-package->ecl-package sbcl-markup-reader))
+
+(define-public cl-markup-reader
+  (sbcl-package->cl-source-package sbcl-markup-reader))
+
 (define-public sbcl-cl-mustache
   (package
     (name "sbcl-cl-mustache")
-- 
2.32.0


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

* bug#49234: Add cl-markkup-reader
  2021-06-26 15:36 [bug#49234] Add cl-markkup-reader Charles via Guix-patches via
@ 2021-06-27  9:16 ` Guillaume Le Vaillant
  0 siblings, 0 replies; 2+ messages in thread
From: Guillaume Le Vaillant @ 2021-06-27  9:16 UTC (permalink / raw)
  To: Charles; +Cc: 49234-done

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

Patch pushed as 1afffdaa63d34a810943aa5a6b8cc03d42cc3bd2 with the
following modifications:
 - copyright line for you added
 - 'commit' and 'revision' declared at the top of the package definition
 - use of the 'git-version' function to define the version
 - '#:asd-files' argument removed as it is not necessary in this case
   (all the asd files are read by default)
 - "fiveam" added to native-inputs as it is required by the
   "markup.test" system
 - inputs sorted
 - synopsis shortened a little
 - commit message fixed (you wrote "fonts.scm" instead of "lisp-xyz.scm")

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-06-27  9:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-26 15:36 [bug#49234] Add cl-markkup-reader Charles via Guix-patches via
2021-06-27  9:16 ` bug#49234: " 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).