From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Tom=C3=A1=C5=A1_?= =?UTF-8?Q?=C4=8Cech?= Subject: bug#24145: [PATCH] gnu: asciidoc: Use local docbook-xsl package. Date: Wed, 3 Aug 2016 23:07:52 +0200 Message-ID: <20160803210752.16650-1-sleep_walker@gnu.org> References: <20160803171453.GB9060@venom> Return-path: In-Reply-To: <20160803171453.GB9060@venom> Sender: "Debbugs-submit" Resent-Message-ID: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: guix-devel@gnu.org Cc: 24145@debbugs.gnu.org List-Id: guix-devel.gnu.org * gnu/packages/documentation.scm(asciidoc): New input docbook-xsl, replace use of online source and prefer docbook-xsl package. --- gnu/packages/documentation.scm | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/gnu/packages/documentation.scm b/gnu/packages/documentation.scm index 72af708..98d30e7 100644 --- a/gnu/packages/documentation.scm +++ b/gnu/packages/documentation.scm @@ -49,8 +49,22 @@ (base32 "1w71nk527lq504njmaf0vzr93pgahkgzzxzglrq6bay8cw2rvnvq")))) (build-system gnu-build-system) - (arguments '(#:tests? #f)) ; no 'check' target - (inputs `(("python" ,python-2))) + (arguments + `(#:tests? #f ; no 'check' target + #:phases + (modify-phases %standard-phases + (add-before + 'install 'make-local-docbook-xsl + (lambda* (#:key inputs #:allow-other-keys) + (substitute* (find-files "docbook-xsl" ".*\\.xsl$") + (("xsl:import href=\"http://docbook.sourceforge.net/release/xsl/current") + (string-append + "xsl:import href=\"" + (string-append (assoc-ref inputs "docbook-xsl") + "/xml/xsl/docbook-xsl-" + ,(package-version docbook-xsl)))))))))) + (inputs `(("python" ,python-2) + ("docbook-xsl" ,docbook-xsl))) (home-page "http://www.methods.co.nz/asciidoc/") (synopsis "Text-based document generation system") (description -- 2.9.2