all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#58588] [PATCH] gnu: Add perl-commonmark.
@ 2022-10-17 20:38 EuAndreh via Guix-patches via
  2022-10-18 10:22 ` bug#58588: " Christopher Baines
  0 siblings, 1 reply; 2+ messages in thread
From: EuAndreh via Guix-patches via @ 2022-10-17 20:38 UTC (permalink / raw)
  To: 58588; +Cc: EuAndreh

* gnu/packages/markup.scm (perl-commonmark): New variable.
---

Formatted with './pre-inst-env guix style'.

 gnu/packages/markup.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/markup.scm b/gnu/packages/markup.scm
index 791035deb3..35dd6d257b 100644
--- a/gnu/packages/markup.scm
+++ b/gnu/packages/markup.scm
@@ -46,6 +46,7 @@ (define-module (gnu packages markup)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages libffi)
   #:use-module (gnu packages perl)
+  #:use-module (gnu packages perl-check)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-xyz)
@@ -360,6 +361,33 @@ (define-public cmark
     ;; licensed. See 'COPYING' in the source distribution for more information.
     (license (list license:bsd-2 license:expat license:cc-by-sa4.0))))
 
+(define-public perl-commonmark
+  (package
+    (name "perl-commonmark")
+    (version "0.290000")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://cpan/authors/id/N/NW/NWELLNHOF/CommonMark-"
+                    version ".tar.gz"))
+              (sha256
+               (base32
+                "1pgaqa4f00i9r5z7l9xiya0q51ysq0nhpvgr0f3rza3cxz1v80d5"))))
+    (build-system perl-build-system)
+    (arguments
+     `(#:make-maker-flags
+       ;; MakeMaker ignores LIBRARY_PATH.
+       (list (format #f "LIBS=-L~a/lib -lcmark"
+                     (assoc-ref %build-inputs "cmark")))))
+    (inputs (list cmark perl-test-leaktrace perl-devel-checklib
+                  perl-module-build))
+    (home-page "https://metacpan.org/release/CommonMark")
+    (synopsis "Interface to the CommonMark C library")
+    (description
+     "This module is an XS wrapper around the official
+CommonMark C library libcmark.  It closely follows the original API.")
+    (license license:perl-license)))
+
 (define-public cmark-gfm
   (package
     (inherit cmark)
-- 
2.38.0





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

* bug#58588: [PATCH] gnu: Add perl-commonmark.
  2022-10-17 20:38 [bug#58588] [PATCH] gnu: Add perl-commonmark EuAndreh via Guix-patches via
@ 2022-10-18 10:22 ` Christopher Baines
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher Baines @ 2022-10-18 10:22 UTC (permalink / raw)
  To: EuAndreh; +Cc: 58588-done

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


EuAndreh via Guix-patches via <guix-patches@gnu.org> writes:

> * gnu/packages/markup.scm (perl-commonmark): New variable.
> ---
>
> Formatted with './pre-inst-env guix style'.
>
>  gnu/packages/markup.scm | 28 ++++++++++++++++++++++++++++
>  1 file changed, 28 insertions(+)

Thanks, pushed to master as 6d32d835aa40f655a42422765348cae9ba8eb334.

Chris

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

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

end of thread, other threads:[~2022-10-18 10:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-17 20:38 [bug#58588] [PATCH] gnu: Add perl-commonmark EuAndreh via Guix-patches via
2022-10-18 10:22 ` bug#58588: " Christopher Baines

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.