guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 3/6] gnu: docbook-xml: Substite remote xml_catalog uris with loca


From: John Darrington
Subject: [PATCH 3/6] gnu: docbook-xml: Substite remote xml_catalog uris with local ones.
Date: Tue, 15 Jul 2014 20:31:33 +0200

* gnu/packages/docbook.scm: substitute remote uri with local ones.
---
 gnu/packages/docbook.scm |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm
index 1a48d97..431da7f 100644
--- a/gnu/packages/docbook.scm
+++ b/gnu/packages/docbook.scm
@@ -50,8 +50,12 @@
                           (dtd    (string-append out "/xml/dtd/docbook")))
                      (mkdir-p dtd)
                      (with-directory-excursion dtd
-                       (system* unzip source))))
-       #:modules ((guix build utils))))
+                       (system* unzip source))
+                     (substitute* (string-append out 
"/xml/dtd/docbook/catalog.xml")
+                       (("uri=\"") 
+                        (string-append 
+                         "uri=\"file://" dtd "/")))))
+                 #:modules ((guix build utils))))
     (native-inputs `(("unzip" ,unzip)))
     (home-page "http://docbook.org";)
     (synopsis "DocBook XML DTDs for document authoring")
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]