From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Edrosa Subject: [PATCH] gnu: Add cmark. Date: Tue, 20 Sep 2016 22:22:54 -0400 Message-ID: <20160921022254.6701-1-erik.edrosa@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmXBg-00035P-T1 for guix-devel@gnu.org; Tue, 20 Sep 2016 22:23:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmXBf-0005Uo-6J for guix-devel@gnu.org; Tue, 20 Sep 2016 22:23:04 -0400 Received: from mail-pa0-x242.google.com ([2607:f8b0:400e:c03::242]:36309) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmXBf-0005UZ-05 for guix-devel@gnu.org; Tue, 20 Sep 2016 22:23:03 -0400 Received: by mail-pa0-x242.google.com with SMTP id my20so1610050pab.3 for ; Tue, 20 Sep 2016 19:23:02 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * 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