diff options
| -rw-r--r-- | gnu/packages/web.scm | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 6e94953bfe6..4bf714bfe7a 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm | |||
| @@ -528,25 +528,19 @@ help you implement simple HTTP servers.") | |||
| 528 | (alist-cons-before | 528 | (alist-cons-before |
| 529 | 'build 'pre-build | 529 | 'build 'pre-build |
| 530 | (lambda* (#:key inputs #:allow-other-keys #:rest args) | 530 | (lambda* (#:key inputs #:allow-other-keys #:rest args) |
| 531 | ;; This stuff is needed, because without it, xmlint etc tries | 531 | ;; Uncommenting the next two lines may assist in debugging |
| 532 | ;; to download docbookx.dtd and docbook.xsl from the net | 532 | ;; (substitute* "docs/man5/Makefile" (("a2x") "a2x -v")) |
| 533 | (let ((build (assoc-ref %standard-phases 'build)) | 533 | ;; (setenv "XML_DEBUG_CATALOG" "1") |
| 534 | (docbook-xml (assoc-ref inputs "docbook-xml")) | 534 | |
| 535 | (docbook-xsl (assoc-ref inputs "docbook-xsl")) | 535 | (setenv "XML_CATALOG_FILES" |
| 536 | (our-catalog "/tmp/docbook-xml.xml")) | 536 | (string-append |
| 537 | (setenv "XML_CATALOG_FILES" our-catalog) | 537 | (assoc-ref inputs "docbook-xsl") |
| 538 | (with-output-to-file our-catalog | 538 | "/xml/xsl/docbook-xsl-1.78.1/catalog.xml" |
| 539 | (lambda () | 539 | ;; Contrary to the documentation, the file names must |
| 540 | (display (string-append | 540 | ;; be separated by a space, not a colon. |
| 541 | "<?xml version=\"1.0\"?> | 541 | " " |
| 542 | <!DOCTYPE catalog PUBLIC \"-//OASIS//DTD XML Catalogs V1.0//EN\" | 542 | (assoc-ref inputs "docbook-xml") |
| 543 | \"file:///usr/share/xml/schema/xml-core/catalog.dtd\"> | 543 | "/xml/dtd/docbook/catalog.xml"))) |
| 544 | <catalog xmlns=\"urn:oasis:names:tc:entity:xmlns:xml:catalog\"> | ||
| 545 | <system systemId=\"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd\" | ||
| 546 | uri=\"file://" docbook-xml "/xml/dtd/docbook/docbookx.dtd\"/> | ||
| 547 | <system systemId=\"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" | ||
| 548 | uri=\"file://" docbook-xsl "/xml/xsl/docbook-xsl-1.72.0/manpages/docbook.xsl\"/> | ||
| 549 | </catalog>\n")))))) | ||
| 550 | %standard-phases))) | 544 | %standard-phases))) |
| 551 | ;; All of the below are used to generate the documentation | 545 | ;; All of the below are used to generate the documentation |
| 552 | ;; (Should they be propagated inputs of asciidoc ??) | 546 | ;; (Should they be propagated inputs of asciidoc ??) |
