From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-ID: <1405449096-29230-3-git-send-email-jmd@gnu.org> References: <1405449096-29230-1-git-send-email-jmd@gnu.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X77WB-00008Q-Fj for guix-devel@gnu.org; Tue, 15 Jul 2014 14:32:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X77W1-0003iu-9r for guix-devel@gnu.org; Tue, 15 Jul 2014 14:31:59 -0400 In-Reply-To: <1405449096-29230-1-git-send-email-jmd@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Cc: John Darrington * 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