File gnu/packages/markup.scm changed (mode: 100644) (index 9569436729..9076bb77ed) |
3 |
3 |
;;; Copyright © 2015 David Thompson <davet@gnu.org> |
;;; Copyright © 2015 David Thompson <davet@gnu.org> |
4 |
4 |
;;; Copyright © 2016, 2019 Efraim Flashner <efraim@flashner.co.il> |
;;; Copyright © 2016, 2019 Efraim Flashner <efraim@flashner.co.il> |
5 |
5 |
;;; Copyright © 2017 Nikita <nikita@n0.is> |
;;; Copyright © 2017 Nikita <nikita@n0.is> |
6 |
|
;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr> |
|
|
6 |
|
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> |
7 |
7 |
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com> |
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com> |
8 |
8 |
;;; |
;;; |
9 |
9 |
;;; This file is part of GNU Guix. |
;;; This file is part of GNU Guix. |
|
... |
... |
convert it to structurally valid XHTML (or HTML).") |
113 |
113 |
(define-public discount |
(define-public discount |
114 |
114 |
(package |
(package |
115 |
115 |
(name "discount") |
(name "discount") |
116 |
|
(version "2.2.4") |
|
|
116 |
|
(version "2.2.7") |
117 |
117 |
(source (origin |
(source (origin |
118 |
118 |
(method url-fetch) |
(method url-fetch) |
119 |
119 |
(uri (string-append |
(uri (string-append |
|
... |
... |
convert it to structurally valid XHTML (or HTML).") |
121 |
121 |
"discount/discount-" version ".tar.bz2")) |
"discount/discount-" version ".tar.bz2")) |
122 |
122 |
(sha256 |
(sha256 |
123 |
123 |
(base32 |
(base32 |
124 |
|
"199hwajpspqil0a4y3yxsmhdp2dm73gqkzfk4mrwzsmlq8y1xzbl")))) |
|
|
124 |
|
"024mxv0gpvilyfczarcgy5m7h4lv6qvhjfpf5i73qkxhszjjn9mi")))) |
125 |
125 |
(build-system gnu-build-system) |
(build-system gnu-build-system) |
126 |
126 |
(arguments |
(arguments |
127 |
127 |
`(#:test-target "test" |
`(#:test-target "test" |
|
128 |
|
#:parallel-build? #f ; libmarkdown won't be built in time |
128 |
129 |
#:make-flags (list |
#:make-flags (list |
129 |
130 |
(string-append "LFLAGS=-L. -Wl,-rpath=" |
(string-append "LFLAGS=-L. -Wl,-rpath=" |
130 |
131 |
(assoc-ref %outputs "out") "/lib")) |
(assoc-ref %outputs "out") "/lib")) |
|
... |
... |
convert it to structurally valid XHTML (or HTML).") |
139 |
140 |
#t)) |
#t)) |
140 |
141 |
(replace 'configure |
(replace 'configure |
141 |
142 |
(lambda* (#:key inputs outputs #:allow-other-keys) |
(lambda* (#:key inputs outputs #:allow-other-keys) |
142 |
|
(setenv "CC" ,(cc-for-target)) |
|
143 |
|
(invoke "./configure.sh" |
|
144 |
|
(string-append "--prefix=" (assoc-ref outputs "out")) |
|
145 |
|
"--shared")))))) |
|
|
143 |
|
(let ((out (assoc-ref outputs "out"))) |
|
144 |
|
(setenv "CC" ,(cc-for-target)) |
|
145 |
|
;; The ‘validate-runpath’ phase fails otherwise. |
|
146 |
|
(setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib")) |
|
147 |
|
(invoke "./configure.sh" |
|
148 |
|
(string-append "--prefix=" out) |
|
149 |
|
"--shared"))))))) |
146 |
150 |
(synopsis "Markdown processing library, written in C") |
(synopsis "Markdown processing library, written in C") |
147 |
151 |
(description |
(description |
148 |
152 |
"Discount is a markdown implementation, written in C. It provides a |
"Discount is a markdown implementation, written in C. It provides a |