diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2022-10-25 21:50:59 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2022-10-25 21:50:59 +0300 |
commit | 6ff203663e696b74e711ab09d6f4b35c2c332f0f (patch) | |
tree | 4bf2c77c62fa60febba527a76b1ecffaa0a00a0d /gnu/packages/markup.scm | |
parent | 408a4ed071c9c52de207d799a698781d49fa727d (diff) | |
parent | a0751e3250dfea7e52468c8090e18c3118d93a60 (diff) |
Merge remote-tracking branch 'origin/master' into staging
Diffstat (limited to 'gnu/packages/markup.scm')
-rw-r--r-- | gnu/packages/markup.scm | 28 |
1 files changed, 28 insertions, 0 deletions
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 @@ #: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 @@ for parsing and rendering CommonMark.") ;; 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) |