mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: ruby-ruby-engine: Update to 2.0.0.
* gnu/packages/ruby.scm (ruby-ruby-engine): Update to 2.0.0. [phases]: Move the 'clean-up phase after 'extract-gemspec. Use a single backslash for escaping quotes in patterns. Make the phase more lenient to version changes.
This commit is contained in:
parent
c997403a80
commit
77d098bf81
1 changed files with 8 additions and 7 deletions
|
@ -6718,19 +6718,19 @@ (define-public ruby-eventmachine
|
|||
(define-public ruby-ruby-engine
|
||||
(package
|
||||
(name "ruby-ruby-engine")
|
||||
(version "1.0.1")
|
||||
(version "2.0.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (rubygems-uri "ruby_engine" version))
|
||||
(sha256
|
||||
(base32
|
||||
"1d0sd4q50zkcqhr395wj1wpn2ql52r0fpwhzjfvi1bljml7k546v"))))
|
||||
"0wqdcv8gxybp1y7kjhh18g3r9dczacs62d4ahcvyhz32bih8c9fm"))))
|
||||
(build-system ruby-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'check 'clean-up
|
||||
(add-after 'extract-gemspec 'clean-up
|
||||
(lambda _
|
||||
(delete-file "Gemfile.lock")
|
||||
(substitute* "ruby_engine.gemspec"
|
||||
|
@ -6739,18 +6739,19 @@ (define-public ruby-ruby-engine
|
|||
((".*<rdoc.*") "")
|
||||
((".*<rubygems-tasks.*") "")
|
||||
;; Remove extraneous .gem file
|
||||
(("\\\"pkg/ruby_engine-1.0.0.gem\\\",") "")
|
||||
(("\"pkg/ruby_engine-[0-9.]+\\.gem\".freeze, ") "")
|
||||
(("\"Gemfile.lock\".freeze, ") "")
|
||||
;; Soften rake dependency
|
||||
(("%q<rake>.freeze, \\[\\\"~> 10.0\\\"\\]")
|
||||
(("%q<rake>.freeze, \\[\"~> 10.0\"\\]")
|
||||
"%q<rake>.freeze, [\">= 10.0\"]")
|
||||
;; Soften the rspec dependency
|
||||
(("%q<rspec>.freeze, \\[\\\"~> 2.4\\\"\\]")
|
||||
(("%q<rspec>.freeze, \\[\"~> 2.4\"\\]")
|
||||
"%q<rspec>.freeze, [\">= 2.4\"]"))
|
||||
(substitute* "Rakefile"
|
||||
(("require 'rubygems/tasks'") "")
|
||||
(("Gem::Tasks.new") ""))
|
||||
;; Remove extraneous .gem file that otherwise gets installed.
|
||||
(delete-file "pkg/ruby_engine-1.0.0.gem")
|
||||
(delete-file-recursively "pkg")
|
||||
#t)))))
|
||||
(native-inputs
|
||||
`(("bundler" ,bundler)
|
||||
|
|
Loading…
Reference in a new issue