gnu: ruby-protobuf: Fix build.
* gnu/packages/protobuf.scm (ruby-protobuf)[arguments]: Update style. [native-inputs]: Remove ruby-pry-byebug.
This commit is contained in:
parent
fc3aa9f602
commit
e0a1fcb1d1
1 changed files with 39 additions and 39 deletions
|
@ -563,49 +563,49 @@ source files.")
|
||||||
"12hp1clg83jfl35x1h2ymzpj5w83wrnqw7hjfc6mqa8lsvpw535r"))))
|
"12hp1clg83jfl35x1h2ymzpj5w83wrnqw7hjfc6mqa8lsvpw535r"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
(add-after 'unpack 'do-not-use-bundler-for-tests
|
#~(modify-phases %standard-phases
|
||||||
(lambda _
|
(add-after 'unpack 'do-not-use-bundler-for-tests
|
||||||
(substitute* "spec/spec_helper.rb"
|
(lambda _
|
||||||
(("Bundler\\.setup.*") ""))))
|
(substitute* "spec/spec_helper.rb"
|
||||||
(add-after 'unpack 'relax-version-requirements
|
(("Bundler\\.setup.*") ""))))
|
||||||
(lambda _
|
(add-after 'unpack 'relax-version-requirements
|
||||||
(substitute* ((@@ (guix build ruby-build-system) first-gemspec))
|
(lambda _
|
||||||
(("'rake',.*")
|
(substitute* ((@@ (guix build ruby-build-system) first-gemspec))
|
||||||
"'rake'\n")
|
(("'rake',.*")
|
||||||
(("\"rubocop\",.*")
|
"'rake'\n")
|
||||||
"'rubocop'\n")
|
(("\"rubocop\",.*")
|
||||||
(("\"parser\",.*")
|
"'rubocop'\n")
|
||||||
"'parser'\n"))))
|
(("\"parser\",.*")
|
||||||
(add-after 'unpack 'patch-protoc
|
"'parser'\n"))))
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(add-after 'unpack 'patch-protoc
|
||||||
(substitute* "lib/protobuf/tasks/compile.rake"
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(("\"protoc\"")
|
(substitute* "lib/protobuf/tasks/compile.rake"
|
||||||
(string-append "\"" (search-input-file inputs "bin/protoc")
|
(("\"protoc\"")
|
||||||
"\"")))))
|
(string-append "\"" (search-input-file inputs "bin/protoc")
|
||||||
(add-after 'unpack 'skip-failing-test
|
"\"")))))
|
||||||
;; See: https://github.com/ruby-protobuf/protobuf/issues/419
|
(add-after 'unpack 'skip-failing-test
|
||||||
(lambda _
|
;; See: https://github.com/ruby-protobuf/protobuf/issues/419
|
||||||
(substitute* "spec/lib/protobuf/rpc/connectors/ping_spec.rb"
|
(lambda _
|
||||||
(("expect\\(::IO\\)\\.to receive\\(:select\\).*" all)
|
(substitute* "spec/lib/protobuf/rpc/connectors/ping_spec.rb"
|
||||||
(string-append " pending\n" all)))))
|
(("expect\\(::IO\\)\\.to receive\\(:select\\).*" all)
|
||||||
(add-after 'replace-git-ls-files 'replace-more-git-ls-files
|
(string-append " pending\n" all)))))
|
||||||
(lambda _
|
(add-after 'replace-git-ls-files 'replace-more-git-ls-files
|
||||||
(substitute* ((@@ (guix build ruby-build-system) first-gemspec))
|
(lambda _
|
||||||
(("`git ls-files -- \\{test,spec,features\\}/*`")
|
(substitute* ((@@ (guix build ruby-build-system) first-gemspec))
|
||||||
"`find test spec features -type f | sort`")
|
(("`git ls-files -- \\{test,spec,features\\}/*`")
|
||||||
(("`git ls-files -- bin/*`")
|
"`find test spec features -type f | sort`")
|
||||||
"`find bin -type f | sort`"))))
|
(("`git ls-files -- bin/*`")
|
||||||
(replace 'check
|
"`find bin -type f | sort`"))))
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(replace 'check
|
||||||
(when tests?
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(invoke "rspec")))))))
|
(when tests?
|
||||||
|
(invoke "rspec")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list ruby-benchmark-ips
|
(list ruby-benchmark-ips
|
||||||
ruby-ffi-rzmq
|
ruby-ffi-rzmq
|
||||||
ruby-parser
|
ruby-parser
|
||||||
ruby-pry-byebug
|
|
||||||
ruby-pry-stack-explorer
|
ruby-pry-stack-explorer
|
||||||
ruby-rake
|
ruby-rake
|
||||||
ruby-rspec
|
ruby-rspec
|
||||||
|
|
Reference in a new issue