* [PATCH] gnu: Add cmark.
@ 2016-09-21 2:22 Erik Edrosa
2016-09-24 0:57 ` Leo Famulari
0 siblings, 1 reply; 2+ messages in thread
From: Erik Edrosa @ 2016-09-21 2:22 UTC (permalink / raw)
To: guix-devel
* gnu/packages/markdown.scm (cmark): New variable.
---
gnu/packages/markdown.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/markdown.scm b/gnu/packages/markdown.scm
index dab3d4e..d192e57 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,30 @@ 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 C 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")
+ (license (list bsd-2 expat cc-by-sa4.0))))
--
2.10.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gnu: Add cmark.
2016-09-21 2:22 [PATCH] gnu: Add cmark Erik Edrosa
@ 2016-09-24 0:57 ` Leo Famulari
0 siblings, 0 replies; 2+ messages in thread
From: Leo Famulari @ 2016-09-24 0:57 UTC (permalink / raw)
To: Erik Edrosa; +Cc: guix-devel
On Tue, Sep 20, 2016 at 10:22:54PM -0400, Erik Edrosa wrote:
> * gnu/packages/markdown.scm (cmark): New variable.
Thanks! Pushed with the following changes:
> + (synopsis "CommonMark C reference implementation")
I put the word "Markdown" in the synopsis.
> + (license (list bsd-2 expat cc-by-sa4.0))))
I added some information to help explain this list.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-24 0:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-21 2:22 [PATCH] gnu: Add cmark Erik Edrosa
2016-09-24 0:57 ` Leo Famulari
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).