From: Ricardo Wurmus <rekado@elephly.net>
To: Pjotr Prins <pjotr.public12@thebird.nl>
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: [PATCH] gnu: Add ruby-nokogiri
Date: Tue, 14 Jul 2015 16:25:39 +0200 [thread overview]
Message-ID: <87y4iihl3w.fsf@elephly.net> (raw)
In-Reply-To: <20150714090613.GA1523@thebird.nl>
> + (arguments
> + '(#:tests? #f ;; test fails because nokogiri can only test with
> + ;; an installed extension (now part of install
> + ;; phase
You should use a single semicolon for each line here or convert the
comment to not share a line with ‘#:tests?’.
> + #:gem-flags (list "--use-system-libraries"
> + (string-append "--with-xml2-include="
> + (assoc-ref %build-inputs "libxml2")
> + "/include/libxml2" ))
The alignment here is wrong. ‘(string-append’ should be aligned with
‘"--use-system-libraries"’ and ‘(assoc-ref’ should be aligned with
‘"--with-xml2-include="’, if I’m not mistaken.
> + #:phases
> + (modify-phases %standard-phases
> + (replace 'build
> + (lambda _
> + ;; calling rake gem 2x begets a gem. The first time
> + ;; only the build-dir is created
If this is so, could we not just create the build directory before
running rake?
> + (zero? (begin
> + (system* "rake" "gem")
> + (system* "rake" "gem"))))))))
> + (native-inputs
> + `(("ruby-hoe" ,ruby-hoe)
> + ("ruby-rake-compiler", ruby-rake-compiler)))
> + (inputs
> + `(("zlib" ,zlib)
> + ("libxml2" ,libxml2)
> + ("libxslt" ,libxslt)))
> + (synopsis "Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser")
> + (description "Nokogiri parses and searches XML/HTML very quickly,
> +and also has correctly implemented CSS3 selector support as well as
> +XPath 1.0 support.")
> + (home-page "http://www.nokogiri.org/")
> + (license license:x11)))
> +
~~ Ricardo
next prev parent reply other threads:[~2015-07-14 14:25 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-13 13:09 [PATCH] gnu: Add ruby-nokogiri Pjotr Prins
2015-07-13 13:24 ` Ricardo Wurmus
2015-07-14 9:06 ` Pjotr Prins
2015-07-14 14:25 ` Ricardo Wurmus [this message]
2016-02-17 22:37 ` Pjotr Prins
2016-02-17 23:05 ` Ben Woodcroft
2016-02-18 6:25 ` Foreign packages (formerly Re: [PATCH] gnu: Add ruby-nokogiri) Pjotr Prins
2016-02-21 11:16 ` Ricardo Wurmus
2016-02-21 11:50 ` Ben Woodcroft
2016-02-21 12:05 ` Pjotr Prins
2016-02-21 17:22 ` Foreign packages and reproducibility " Pjotr Prins
2016-02-21 17:31 ` Pjotr Prins
2016-02-22 12:51 ` Pjotr Prins
2016-02-23 18:52 ` Pjotr Prins
2016-03-02 10:33 ` Ricardo Wurmus
2016-03-02 18:50 ` Pjotr Prins
2016-02-21 12:02 ` Foreign packages " Pjotr Prins
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=87y4iihl3w.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=guix-devel@gnu.org \
--cc=pjotr.public12@thebird.nl \
/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.