all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Tomáš Čech" <sleep_walker@gnu.org>
To: guix-devel@gnu.org
Subject: Re: bug#24145: [PATCH] gnu: asciidoc: Use local docbook-xsl package.
Date: Tue, 30 Aug 2016 18:51:15 +0200	[thread overview]
Message-ID: <20160830165115.gnrfgky7h3jsrhvy@venom> (raw)
In-Reply-To: <87zinvzins.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1983 bytes --]

On Mon, Aug 29, 2016 at 05:41:59PM +0200, Ludovic Courtès wrote:
>Hello,
>
>Tomáš Čech <sleep_walker@gnu.org> skribis:
>
>> * gnu/packages/documentation.scm(asciidoc): New input docbook-xsl,
>>   replace use of online source and prefer docbook-xsl package.
>
>Rather:
>
>* gnu/packages/documentation (asciidoc)[inputs]: Add PYTHON-2 and
>DOCBOOK-XSL.
>(arguments): Add 'make-local-docbook-xsl' phase.

Shouldn't that be rather
[arguments]:
as it is in "the same level" as [inputs]?
(and python-2 was already among inputs already)

Thanks for your patience!

>> 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)))
>
>Otherwise LGTM, please push!

I'm afraid that Leo already pushed that.

Thanks

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2016-08-30 16:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-03 17:14 bug#24145: asciidoc depends on Internet connection instead of docbook-xsl package Tomáš Čech
2016-08-03 21:07 ` bug#24145: [PATCH] gnu: asciidoc: Use local " Tomáš Čech
2016-08-10 18:48   ` Leo Famulari
2016-08-14 17:17     ` Tomáš Čech
2016-08-19 19:08       ` Tomáš Čech
2016-08-21 21:44         ` Leo Famulari
2016-08-22  6:04           ` Tomáš Čech
2016-08-22  6:44             ` bug#24145: " Leo Famulari
2016-08-22  6:04           ` Tomáš Čech
2016-08-29 15:41   ` Ludovic Courtès
2016-08-30 16:51     ` Tomáš Čech [this message]
2016-08-29 15:41   ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160830165115.gnrfgky7h3jsrhvy@venom \
    --to=sleep_walker@gnu.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.