gnu: ruby-spec-its: Accept any version of ruby-ffi.

* gnu/packages/ruby.scm (ruby-rspec-its)[arguments]: Change Gemfile
substitution so that any ffi gem is accepted.  While at it, tighten the regex
and rename the phase to be more accurate.
This commit is contained in:
Marius Bakke 2020-05-29 13:11:12 +02:00
parent a904223ec5
commit 7c8eb479a4
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -645,10 +645,12 @@ (define-public ruby-rspec-its
(("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
""))
#t))
(add-before 'build 'update-ffi-in-gemfile
(add-before 'build 'loosen-ffi-requirement
(lambda _
;; Accept any version of ruby-ffi.
(substitute* "Gemfile"
((" gem 'ffi', '~> 1.9.25'") " gem 'ffi', '~> 1.10.0'"))
((" gem 'ffi', '~> 1\\.9\\.25'")
" gem 'ffi'"))
#t))
(add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
(lambda _