summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorKei Kebreau <kei@openmailbox.org>2017-03-16 01:37:42 -0400
committerKei Kebreau <kei@openmailbox.org>2017-03-16 21:35:50 -0400
commit3078821d1380c26c738be6b5d430c595327d401f (patch)
tree6738f6a268fe38bc3233b3c2f53c7dc6149ddb54 /gnu
parentf9cdf1c15b83392fc85e7dcbfa019d184356591b (diff)
downloadguix-3078821d1380c26c738be6b5d430c595327d401f.tar.gz
gnu: asciidoc: Use local docbook-xml package.
* gnu/packages/documentation.scm (asciidoc)[inputs]: Add docbook-xml.
[arguments]: Add 'make-local-docbook-xml' phase.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/documentation.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/packages/documentation.scm b/gnu/packages/documentation.scm
index 94e979c881..8b943788a6 100644
--- a/gnu/packages/documentation.scm
+++ b/gnu/packages/documentation.scm
@@ -83,8 +83,17 @@ release/xsl/current")
                            (string-append (assoc-ref inputs "docbook-xsl")
                                           "/xml/xsl/docbook-xsl-"
                                           ,(package-version docbook-xsl)))))
+                       #t))
+         ;; Do the same for docbook-xml.
+         (add-before 'install 'make-local-docbook-xml
+                     (lambda* (#:key inputs #:allow-other-keys)
+                       (substitute* "docbook45.conf"
+                         (("http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd")
+                          (string-append (assoc-ref inputs "docbook-xml")
+                                         "/xml/dtd/docbook/docbookx.dtd")))
                        #t)))))
     (inputs `(("python" ,python-2)
+              ("docbook-xml" ,docbook-xml)
               ("docbook-xsl" ,docbook-xsl)
               ("libxml2" ,libxml2)
               ("libxslt" ,libxslt)))