From 90ab3ef812341b6f031e4724a56c0d7663977be9 Mon Sep 17 00:00:00 2001 From: phodina Date: Fri, 5 Nov 2021 05:48:58 +0000 Subject: gnu: Add lowdown. * gnu/packages/markup.scm (lowdown): New variable. Signed-off-by: Liliana Marie Prikler --- gnu/packages/markup.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'gnu/packages/markup.scm') diff --git a/gnu/packages/markup.scm b/gnu/packages/markup.scm index 368976bfde..40b7a3d8c6 100644 --- a/gnu/packages/markup.scm +++ b/gnu/packages/markup.scm @@ -7,6 +7,8 @@ ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2020 EuAndreh ;;; Copyright © 2021 Noisytoot +;;; Copyright © 2021 Zhu Zihao +;;; Copyright © 2021 Petr Hodina ;;; ;;; This file is part of GNU Guix. ;;; @@ -25,6 +27,7 @@ (define-module (gnu packages markup) #:use-module (guix licenses) + #:use-module ((guix licenses) #:prefix license:) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix packages) @@ -34,6 +37,7 @@ (define-module (gnu packages markup) #:use-module (guix build-system perl) #:use-module (guix build-system python) #:use-module (guix utils) + #:use-module (gnu packages base) #:use-module (gnu packages compression) #:use-module (gnu packages) #:use-module (gnu packages perl) @@ -114,6 +118,36 @@ (define-public markdown (license (non-copyleft "file://License.text" "See License.text in the distribution.")))) +(define-public lowdown + (package + (name "lowdown") + (version "0.10.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://kristaps.bsd.lv/lowdown/snapshots/lowdown-" + version ".tar.gz")) + (sha256 + (base32 "15v2kk4ffqw3n6y6n9plch4qcib3ynnhw0ih8wn2v9qgn4jssp5p")))) + (build-system gnu-build-system) + (arguments + `(#:test-target "regress" + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (invoke "./configure" + (string-append "PREFIX=" out) + (string-append "MANDIR=" out "/share/man")))))))) + (native-inputs + `(("which" ,which))) + (home-page "https://kristaps.bsd.lv/lowdown/") + (synopsis "Simple Markdown translator") + (description "Lowdown is a Markdown translator producing HTML5, +roff documents in the ms and man formats, LaTeX, gemini, and terminal output.") + (license license:isc))) + (define-public discount (package (name "discount") -- cgit v1.2.3 From 43cb6aa4a0898ebd160ed6ca61daf8440eaebc63 Mon Sep 17 00:00:00 2001 From: phodina Date: Fri, 5 Nov 2021 05:49:55 +0000 Subject: gnu: Use license: prefix. * gnu/packages/markup.scm (hoedown, markdown, discount, perl-text-markdown-discount, cmark, smu, md4c, python-mistletoe) [license]: Prefix with license:. Signed-off-by: Liliana Marie Prikler --- gnu/packages/markup.scm | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'gnu/packages/markup.scm') diff --git a/gnu/packages/markup.scm b/gnu/packages/markup.scm index 40b7a3d8c6..06e653a1c9 100644 --- a/gnu/packages/markup.scm +++ b/gnu/packages/markup.scm @@ -26,7 +26,6 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages markup) - #:use-module (guix licenses) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix download) #:use-module (guix git-download) @@ -71,7 +70,7 @@ (define-public hoedown (description "Hoedown is a standards compliant, fast, secure markdown processing library written in C.") (home-page "https://github.com/hoedown/hoedown") - (license expat))) + (license license:expat))) (define-public markdown (package @@ -115,8 +114,8 @@ (define-public markdown "Markdown is a text-to-HTML conversion tool for web writers. It allows 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.")))) + (license (license:non-copyleft "file://License.text" + "See License.text in the distribution.")))) (define-public lowdown (package @@ -192,7 +191,7 @@ (define-public discount "Discount is a markdown implementation, written in C. It provides a @command{markdown} command, and a library.") (home-page "https://www.pell.portland.or.us/~orc/Code/discount/") - (license bsd-3))) + (license license:bsd-3))) (define-public perl-text-markdown-discount (package @@ -237,7 +236,7 @@ (define-public perl-text-markdown-discount use Text::Markdown::Discount; my $html = markdown($text) @end example") - (license perl-license))) + (license license:perl-license))) (define-public cmark (package @@ -277,7 +276,7 @@ (define-public cmark ;; 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)))) + (license (list license:bsd-2 license:expat license:cc-by-sa4.0)))) (define-public smu (package @@ -313,7 +312,7 @@ (define-public smu Smu was started as a rewrite of Markdown but became something more lightweight and consistent. The biggest difference between Markdown and smu is that smu doesn't support reference style links.") - (license x11))) + (license license:x11))) (define-public md4c (package @@ -335,7 +334,7 @@ (define-public md4c (description "MD4C is a C Markdown parser with a SAX-like interface. It is compliant to the CommonMark specification, with a few extensions.") - (license expat))) + (license license:expat))) (define-public python-mistletoe (package @@ -357,4 +356,4 @@ (define-public python-mistletoe Parsing Markdown into an abstract syntax tree also allows @code{mistletoe} to swap out renderers for different output formats, without touching any of the core components.") - (license expat))) + (license license:expat))) -- cgit v1.2.3