[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/13: gnu: ruby-nokogumbo: Update to 2.0.2.
From: |
guix-commits |
Subject: |
10/13: gnu: ruby-nokogumbo: Update to 2.0.2. |
Date: |
Fri, 29 May 2020 09:42:28 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 2e366b0a8337b7b5f01a88edf209dc92c2530238
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Fri May 29 14:19:23 2020 +0200
gnu: ruby-nokogumbo: Update to 2.0.2.
* gnu/packages/ruby.scm (ruby-nokogumbo): Update to 2.0.2.
[arguments]: Remove.
[native-inputs]: Add RUBY-RAKE-COMPILER.
---
gnu/packages/ruby.scm | 87 +++++++++++++++------------------------------------
1 file changed, 26 insertions(+), 61 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 87c1e99..396d4a0 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -5288,68 +5288,33 @@ multibyte strings, internationalization, time zones,
and testing.")
(license license:expat)))
(define-public ruby-nokogumbo
- (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd"))
- (package
- (name "ruby-nokogumbo")
- (version (string-append "1.4.7-1." (string-take commit 8)))
- (source (origin
- ;; We use the git reference, because there's no Rakefile in the
- ;; published gem and the tarball on Github is outdated.
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/rubys/nokogumbo.git")
- (commit "d56f954d20a")))
- (file-name (string-append name "-" version "-checkout"))
- (sha256
- (base32
- "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl"))))
- (build-system ruby-build-system)
- (arguments
- `(#:modules ((guix build ruby-build-system)
- (guix build utils)
- (ice-9 rdelim))
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'build-gemspec
- (lambda _
- (substitute* "Rakefile"
- ;; Build Makefile even without a copy of gumbo-parser sources
- (("'gumbo-parser/src',") "")
- ;; We don't bundle gumbo-parser sources
- (("'gumbo-parser/src/\\*',") "")
- (("'gumbo-parser/visualc/include/\\*',") "")
- ;; The definition of SOURCES will be cut in gemspec, and
- ;; "FileList" will be undefined.
- (("SOURCES \\+ FileList\\[")
- "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c',
"))
-
- ;; Copy the Rakefile and cut out the gemspec.
- (copy-file "Rakefile" ".gemspec")
- (with-atomic-file-replacement ".gemspec"
- (lambda (in out)
- (let loop ((line (read-line in 'concat))
- (skipping? #t))
- (if (eof-object? line)
- #t
- (let ((skip-next? (if skipping?
- (not (string-prefix? "SPEC ="
line))
- (string-prefix? "end" line))))
- (when (or (not skipping?)
- (and skipping? (not skip-next?)))
- (format #t "~a" line)
- (display line out))
- (loop (read-line in 'concat) skip-next?))))))
- #t)))))
- (inputs
- `(("gumbo-parser" ,gumbo-parser)))
- (propagated-inputs
- `(("ruby-nokogiri" ,ruby-nokogiri)))
- (synopsis "Ruby bindings to the Gumbo HTML5 parser")
- (description
- "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
+ (package
+ (name "ruby-nokogumbo")
+ (version "2.0.2")
+ (source (origin
+ ;; We use the git reference, because there's no Rakefile in the
+ ;; published gem and the tarball on Github is outdated.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rubys/nokogumbo.git")
+ (commit (string-append "v" version))))
+ (file-name (string-append name "-" version "-checkout"))
+ (sha256
+ (base32
+ "1qg0iyw450lw6d0j1ghzg79a6l60nm1m4qmrzwzybi585861jxcx"))))
+ (build-system ruby-build-system)
+ (native-inputs
+ `(("ruby-rake-compiler" ,ruby-rake-compiler)))
+ (inputs
+ `(("gumbo-parser" ,gumbo-parser)))
+ (propagated-inputs
+ `(("ruby-nokogiri" ,ruby-nokogiri)))
+ (synopsis "Ruby bindings to the Gumbo HTML5 parser")
+ (description
+ "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
access the result as a Nokogiri parsed document.")
- (home-page "https://github.com/rubys/nokogumbo/")
- (license license:asl2.0))))
+ (home-page "https://github.com/rubys/nokogumbo/")
+ (license license:asl2.0)))
(define-public ruby-sanitize
(package
- branch master updated (ebfe0e6 -> 1ca44ae), guix-commits, 2020/05/29
- 01/13: gnu: love: Remove unused input., guix-commits, 2020/05/29
- 02/13: gnu: physfs: Do not build the static library., guix-commits, 2020/05/29
- 04/13: gnu: ruby-ffi: Update to 1.12.2., guix-commits, 2020/05/29
- 03/13: gnu: ruby-spec-its: Accept any version of ruby-ffi., guix-commits, 2020/05/29
- 07/13: gnu: ruby-libffi: Enable tests and unbundle LibFFI., guix-commits, 2020/05/29
- 06/13: gnu: ruby-rubygems-tasks: Update to 0.2.5., guix-commits, 2020/05/29
- 08/13: gnu: ruby-crass: Update to 1.0.6., guix-commits, 2020/05/29
- 09/13: gnu: ruby-nokogiri: Update to 1.10.9., guix-commits, 2020/05/29
- 10/13: gnu: ruby-nokogumbo: Update to 2.0.2.,
guix-commits <=
- 11/13: gnu: ruby-sanitize: Update to 5.1.0., guix-commits, 2020/05/29
- 12/13: utils: Add 'cc-for-target'., guix-commits, 2020/05/29
- 05/13: gnu: ruby-rake-compiler: Update to 1.1.0., guix-commits, 2020/05/29
- 13/13: gnu: Use 'cc-for-target' instead of custom implementations., guix-commits, 2020/05/29