diff options
author | David Thompson <dthompson2@worcester.edu> | 2015-08-29 08:35:54 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2015-09-05 20:24:08 -0400 |
commit | e920bfcacf894243ad2d89fb2d9409c91563ff41 (patch) | |
tree | af36ee4b25f3bba0204abc6930d1bc42404183d4 /gnu/packages/ruby.scm | |
parent | bea1c0e24645d527f0719e78779e3e4512ef45c5 (diff) | |
download | patches-e920bfcacf894243ad2d89fb2d9409c91563ff41.tar patches-e920bfcacf894243ad2d89fb2d9409c91563ff41.tar.gz |
gnu: Add ruby-nokogiri.
Co-Authored-By: Pjotr Prins <pjotr.public01@thebird.nl>
* gnu/packages/ruby.scm (ruby-nokogiri): New variable.
Diffstat (limited to 'gnu/packages/ruby.scm')
-rw-r--r-- | gnu/packages/ruby.scm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 5f13318011..5fea0566d9 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -36,6 +36,7 @@ #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix build-system gnu) + #:use-module (gnu packages xml) #:use-module (guix build-system ruby)) (define-public ruby @@ -809,3 +810,37 @@ It provides a standard way to compile against specific versions of libraries to reproduce user environments.") (home-page "http://github.com/flavorjones/mini_portile") (license license:expat))) + +(define-public ruby-nokogiri + (package + (name "ruby-nokogiri") + (version "1.6.6.2") + (source (origin + (method url-fetch) + (uri (rubygems-uri "nokogiri" version)) + (sha256 + (base32 + "1j4qv32qjh67dcrc1yy1h8sqjnny8siyy4s44awla8d6jk361h30")))) + (build-system ruby-build-system) + (arguments + ;; Tests fail because Nokogiri can only test with an installed extension, + ;; and also because many test framework dependencies are missing. + '(#:tests? #f + #:gem-flags (list "--" "--use-system-libraries" + (string-append "--with-xml2-include=" + (assoc-ref %build-inputs "libxml2") + "/include/libxml2" )))) + (native-inputs + `(("ruby-hoe" ,ruby-hoe) + ("ruby-rake-compiler", ruby-rake-compiler))) + (inputs + `(("zlib" ,zlib) + ("libxml2" ,libxml2) + ("libxslt" ,libxslt))) + (propagated-inputs + `(("ruby-mini-portile" ,ruby-mini-portile))) + (synopsis "HTML, XML, SAX, and Reader parser for Ruby") + (description "Nokogiri (鋸) parses and searches XML/HTML, and features +both CSS3 selector and XPath 1.0 support.") + (home-page "http://www.nokogiri.org/") + (license license:expat))) |