guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: Add cmark.


From: Leo Famulari
Subject: 01/01: gnu: Add cmark.
Date: Sat, 24 Sep 2016 00:57:01 +0000 (UTC)

lfam pushed a commit to branch master
in repository guix.

commit 80588800176c3cfb2443fa22fbd0ab627f0f7a6c
Author: Erik Edrosa <address@hidden>
Date:   Tue Sep 20 22:22:54 2016 -0400

    gnu: Add cmark.
    
    * gnu/packages/markdown.scm (cmark): New variable.
    
    Signed-off-by: Leo Famulari <address@hidden>
---
 gnu/packages/markdown.scm |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/markdown.scm b/gnu/packages/markdown.scm
index dab3d4e..ae54b0b 100644
--- a/gnu/packages/markdown.scm
+++ b/gnu/packages/markdown.scm
@@ -24,6 +24,7 @@
   #:use-module (guix packages)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system trivial)
+  #:use-module (guix build-system cmake)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages python)
   #:use-module (gnu packages web)
@@ -99,3 +100,33 @@ you to write using an easy-to-read, easy-to-write plain 
text format, then
 convert it to structurally valid XHTML (or HTML).")
     (license (non-copyleft "file://License.text"
                            "See License.text in the distribution."))))
+
+(define-public cmark
+  (package
+    (name "cmark")
+    (version "0.26.1")
+    (source (origin
+             (method url-fetch)
+             (uri (string-append "https://github.com/jgm/cmark/archive/";
+                                 version ".tar.gz"))
+             (file-name (string-append name "-" version ".tar.gz"))
+             (sha256
+              (base32
+               "1mpmcy4bbmc8m058zqs9dwx49lcfi7bdnfszsr9y66cwgylia1mm"))))
+    (build-system cmake-build-system)
+    (arguments
+     '(#:test-target "test"))
+    (native-inputs `(("python" ,python)))
+    (synopsis "CommonMark Markdown reference implementation")
+    (description "CommonMark is a strongly defined, highly compatible
+specification of Markdown.  cmark is the C reference implementation of
+CommonMark.  It provides @code{libcmark} shared library for parsing
+CommonMark to an abstract syntax tree (AST) and rendering the document
+as HTML, groff man, LaTeX, CommonMark, or an XML representation of the
+AST.  The package also provides the command-line program @command{cmark}
+for parsing and rendering CommonMark.")
+    (home-page "http://commonmark.org";)
+    ;; cmark is distributed with a BSD-2 license, but some components are Expat
+    ;; licensed. The CommonMark specification is Creative Commons CC-BY-SA 4.0
+    ;; licensed. See 'COPYING' in the source distribution for more information.
+    (license (list bsd-2 expat cc-by-sa4.0))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]