summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2015-07-19 10:41:34 -0400
committerDavid Thompson <dthompson2@worcester.edu>2015-07-20 09:16:58 -0400
commit7782d3a6ffd8d25371cc28834a4966ac302dd469 (patch)
tree22f2f157fdbe026d4820df41aed5883e9fb3d343 /gnu
parentb56724ec5ff996053e0ae3d7ca476fc34f67b097 (diff)
gnu: Add hoedown.
* gnu/packages/markdown.scm: New file. * gnu-system.am (GNU_SYSTEM_MODULES): Add it.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/markdown.scm58
1 files changed, 58 insertions, 0 deletions
diff --git a/gnu/packages/markdown.scm b/gnu/packages/markdown.scm
new file mode 100644
index 00000000000..58ca10277ad
--- /dev/null
+++ b/gnu/packages/markdown.scm
@@ -0,0 +1,58 @@
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 David Thompson <davet@gnu.org>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages markdown)
20 #:use-module (guix licenses)
21 #:use-module (guix download)
22 #:use-module (guix packages)
23 #:use-module (guix build-system gnu)
24 #:use-module (gnu packages python)
25 #:use-module (gnu packages web))
26
27(define-public hoedown
28 (package
29 (name "hoedown")
30 (version "3.0.3")
31 (source (origin
32 (method url-fetch)
33 (uri (string-append "https://github.com/hoedown/hoedown/archive/"
34 version ".tar.gz"))
35 (file-name (string-append name "-" version ".tar.gz"))
36 (sha256
37 (base32
38 "0mmmkfayqgh6k39kbi3pq68mg03x35aiygy3zypxzvwx9y8b53ky"))))
39 (build-system gnu-build-system)
40 (arguments
41 '(#:phases (modify-phases %standard-phases
42 (add-before 'build 'fix-makefile
43 (lambda* (#:key outputs #:allow-other-keys)
44 (setenv "CC" "gcc")
45 (substitute* '("Makefile")
46 (("/usr/local")
47 (assoc-ref outputs "out")))
48 #t))
49 (delete 'configure)) ; no configure script
50 #:test-target "test"))
51 (native-inputs
52 `(("python" ,python-2)
53 ("tidy" ,tidy)))
54 (synopsis "Markdown processing library")
55 (description "Hoedown is a standards compliant, fast, secure markdown
56processing library written in C.")
57 (home-page "https://github.com/hoedown/hoedown")
58 (license expat)))