diff mbox series

[bug#50537,02/27] gnu: Add ruby-niceogiri.

Message ID 20210912030532.7439-2-singpolyma@singpolyma.net
State New
Headers show
Series [bug#50537,01/27] gnu: Add ruby-sucker-punch | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue
cbaines/applying patch success View Laminar job
cbaines/issue success View issue
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Stephen Paul Weber Sept. 12, 2021, 3:05 a.m. UTC
* gnu/packages/ruby.scm (ruby-niceogiri): New variable.
---
 gnu/packages/ruby.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index bb2ace23d3..1eb6a0fb82 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -12520,3 +12520,37 @@  management, status tracking and reporting.")
     (home-page
       "https://github.com/brandonhilkert/sucker_punch")
     (license license:expat)))
+
+(define-public ruby-niceogiri
+  (package
+    (name "ruby-niceogiri")
+    (version "1.1.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (rubygems-uri "niceogiri" version))
+        (sha256
+          (base32
+            "1ha93211bc9cvh23s9w89zz7rq8irpf64ccd9arvg8v1sxg2798a"))))
+    (build-system ruby-build-system)
+    (arguments
+     `(#:test-target "spec"
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'extract-gemspec 'less-strict-dependencies
+           (lambda _
+             (substitute* "niceogiri.gemspec"
+               (("2.7") "3.8")
+               ((".*guard-rspec.*") "\n"))
+             #t)))))
+    (propagated-inputs
+      `(("ruby-nokogiri" ,ruby-nokogiri)))
+    (native-inputs
+     `(("ruby-rspec" ,ruby-rspec)
+       ("ruby-yard" ,ruby-yard)))
+    (synopsis "Make dealing with XML less painful")
+    (description
+      "Make dealing with XML less painful")
+    (home-page
+      "https://github.com/benlangfeld/Niceogiri")
+    (license license:expat)))