gnu: ruby-cucumber-messages: Update to 21.0.1.

* gnu/packages/ruby.scm (ruby-cucumber-messages): Update to 21.0.1.
[source]: Adjust to upstream URI change and use url-fetch.
[phases]: Delete patch-protobuf.rb and compile phases.  Move check phase after
install phase, and augment GEM_PATH in check phase.
[propagated-inputs]: Delete field.
[native-inputs]: Add ruby-cucumber-compatibility-kit-bootstrap.
[home-page]: Update URL.
This commit is contained in:
Maxim Cournoyer 2023-03-06 15:12:27 -05:00
parent 6c9a9e823e
commit 860fc8b895
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -7992,40 +7992,30 @@ Cucumber implementation's support for the Cucumber Messages protocol.")
(define-public ruby-cucumber-messages (define-public ruby-cucumber-messages
(package (package
(name "ruby-cucumber-messages") (name "ruby-cucumber-messages")
(version "12.2.0") (version "21.0.1")
(source (origin (source (origin
(method git-fetch) (method url-fetch)
(uri (git-reference (uri (rubygems-uri "cucumber-messages" version))
(url "https://github.com/cucumber/messages-ruby")
(commit "12cd07eac87bce7843fd1bb0bf64bc4da09f097c")))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"16wwqfpsq7crvxc3q08lphgyh12cl2d83p1c79p312q4jmy9cn5a")))) "0482a63y7my0arn2bv208g401dq8525f0gwhnwaa11mhv6ph0q5i"))))
(build-system ruby-build-system) (build-system ruby-build-system)
(arguments (arguments
`(#:phases (modify-phases %standard-phases (list #:phases
(add-after 'unpack 'patch-protobuf.rb #~(modify-phases %standard-phases
(lambda _ ;; The test suite requires the gem to be installed, so move it
(substitute* "rake/protobuf.rb" ;; after the install phase.
(("load 'protobuf/tasks/compile.rake'") (delete 'check)
"require 'protobuf/tasks'")) (add-after 'install 'check
#t)) (lambda* (#:key tests? #:allow-other-keys)
(add-before 'build 'compile (setenv "GEM_PATH" (string-append
(lambda _ (getenv "GEM_PATH") ":"
(substitute* "Makefile" #$output "/lib/ruby/vendor_ruby"))
(("bundle exec ") "") (when tests?
(("include default.mk.*" all) (invoke "rspec")))))))
(string-append "#" all)))
(invoke "make")))
(replace 'check
(lambda _
(invoke "rspec"))))))
(propagated-inputs
`(("ruby-protobuf" ,ruby-protobuf-cucumber)))
(native-inputs (native-inputs
(list ruby-rspec)) (list ruby-cucumber-compatibility-kit-bootstrap ruby-rspec))
(home-page "https://github.com/cucumber/messages-ruby") (home-page "https://github.com/cucumber/messages/")
(synopsis "Cucumber Messages for Ruby (Protocol Buffers)") (synopsis "Cucumber Messages for Ruby (Protocol Buffers)")
(description "Cucumber Messages for Ruby is a library which allows (description "Cucumber Messages for Ruby is a library which allows
serialization and deserialization of the protocol buffer messages used in serialization and deserialization of the protocol buffer messages used in