aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorTomáš Čech <sleep_walker@gnu.org>2016-08-19 21:08:43 +0200
committerLeo Famulari <leo@famulari.name>2016-08-21 17:42:57 -0400
commitdd10ba6356df83cc7e44fc6cadaa2c8c9749bd69 (patch)
tree549e21ed9285cc04a00f6500b365496ce688fe7e /gnu
parentc20e552baf1ecb96f8d3d910b621d5f38e78276b (diff)
downloadguix-dd10ba6356df83cc7e44fc6cadaa2c8c9749bd69.tar
guix-dd10ba6356df83cc7e44fc6cadaa2c8c9749bd69.tar.gz
gnu: asciidoc: Use local docbook-xsl package.
* gnu/packages/documentation.scm (asciidoc)[inputs]: Add docbook-xsl. [arguments]: Add 'make-local-docbook-xsl' phase. Signed-off-by: Leo Famulari <leo@famulari.name>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/documentation.scm21
1 files changed, 19 insertions, 2 deletions
diff --git a/gnu/packages/documentation.scm b/gnu/packages/documentation.scm
index 72af708dbd..080c0dba8e 100644
--- a/gnu/packages/documentation.scm
+++ b/gnu/packages/documentation.scm
@@ -49,8 +49,25 @@
(base32
"1w71nk527lq504njmaf0vzr93pgahkgzzxzglrq6bay8cw2rvnvq"))))
(build-system gnu-build-system)
- (arguments '(#:tests? #f)) ; no 'check' target
- (inputs `(("python" ,python-2)))
+ (arguments
+ `(#:tests? #f ; no 'check' target
+ #:phases
+ (modify-phases %standard-phases
+ ;; Make asciidoc use the local docbook-xsl package instead of fetching
+ ;; it from the internet at run-time.
+ (add-before 'install 'make-local-docbook-xsl
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* (find-files "docbook-xsl" ".*\\.xsl$")
+ (("xsl:import href=\"http://docbook.sourceforge.net/\
+release/xsl/current")
+ (string-append
+ "xsl:import href=\""
+ (string-append (assoc-ref inputs "docbook-xsl")
+ "/xml/xsl/docbook-xsl-"
+ ,(package-version docbook-xsl)))))
+ #t)))))
+ (inputs `(("python" ,python-2)
+ ("docbook-xsl" ,docbook-xsl)))
(home-page "http://www.methods.co.nz/asciidoc/")
(synopsis "Text-based document generation system")
(description