From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djr8L-0000l4-8B for guix-patches@gnu.org; Mon, 21 Aug 2017 14:09:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1djr8J-0002xm-1G for guix-patches@gnu.org; Mon, 21 Aug 2017 14:09:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:39493) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1djr8I-0002xg-Tv for guix-patches@gnu.org; Mon, 21 Aug 2017 14:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1djr8I-0006qo-Od for guix-patches@gnu.org; Mon, 21 Aug 2017 14:09:02 -0400 Subject: [bug#28177] [PATCH 01/12] gnu: Add discount. Resent-Message-ID: From: Christopher Baines Date: Mon, 21 Aug 2017 19:08:21 +0100 Message-Id: <20170821180832.23356-1-mail@cbaines.net> In-Reply-To: <20170821190443.7056f624@cbaines.net> References: <20170821190443.7056f624@cbaines.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28177@debbugs.gnu.org This is required by perl-text-markdown-discount, which is required by ikiwiki. * gnu/packages/markdown.scm (discount) New variable. --- gnu/packages/markup.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/markup.scm b/gnu/packages/markup.scm index 121e6cdbf..6d7f7fd40 100644 --- a/gnu/packages/markup.scm +++ b/gnu/packages/markup.scm @@ -102,6 +102,47 @@ convert it to structurally valid XHTML (or HTML).") (license (non-copyleft "file://License.text" "See License.text in the distribution.")))) +(define-public discount + (package + (name "discount") + (version "2.2.2") + (source (origin + (method url-fetch) + (uri (string-append + "http://www.pell.portland.or.us/~orc/Code/" + name "/" name "-" version ".tar.bz2")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0r4gjyk1ngx47zhb25q0gkjm3bz2m5x8ngrk6rim3y1y3rricygc")))) + (build-system gnu-build-system) + (arguments + `(#:test-target "test" + #:make-flags (list + (string-append "LFLAGS=-L. -Wl,-rpath=" + (assoc-ref %outputs "out") "/lib")) + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key inputs outputs #:allow-other-keys) + (setenv "CC" "gcc") + (zero? (system* + "./configure.sh" + (string-append "--prefix=" (assoc-ref outputs "out")) + "--shared")))) + (add-before 'configure 'set_ac_default_path + (lambda args + (substitute* "configure.inc" + (("ac_default_path=\".*\"") + (string-append "ac_default_path=\"" (getenv "PATH") "\""))) + #t))))) + (synopsis "Markdown processing library, written in C") + (description + "Discount is a markdown implementation, written in C. It provides a +@command{markdown} command, and a library.") + (home-page "http://www.pell.portland.or.us/~orc/Code/discount/") + (license bsd-3))) + (define-public cmark (package (name "cmark") -- 2.14.1