[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/03: gnu: Add ruby-nokogiri.
From: |
David Thompson |
Subject: |
03/03: gnu: Add ruby-nokogiri. |
Date: |
Sun, 06 Sep 2015 00:27:34 +0000 |
davexunit pushed a commit to branch master
in repository guix.
commit e920bfcacf894243ad2d89fb2d9409c91563ff41
Author: David Thompson <address@hidden>
Date: Sat Aug 29 08:35:54 2015 -0400
gnu: Add ruby-nokogiri.
Co-Authored-By: Pjotr Prins <address@hidden>
* gnu/packages/ruby.scm (ruby-nokogiri): New variable.
---
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 5f13318..5fea056 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)))