summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Darrington <jmd@gnu.org>2014-07-13 16:37:52 +0200
committerJohn Darrington <jmd@gnu.org>2014-07-16 06:28:01 +0200
commit6217ca12c5abd5f0f37b415d91d3afa409c93f5c (patch)
tree7fa3d00f85454e5b4552b8ba7168107960f4a1df
parentb4ce630048e0c755897c35670560d7c0bb9ce044 (diff)
gnu: Tinyproxy: Cleanup xml dependencies
* gnu/packages/web.scm (tinyproxy): Use the XML catalog from docbook instead of generating a temporary one.
-rw-r--r--gnu/packages/web.scm32
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\"
546uri=\"file://" docbook-xml "/xml/dtd/docbook/docbookx.dtd\"/>
547<system systemId=\"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\"
548uri=\"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 ??)