gnu: ruby_version: Update to 1.0.2.
* gnu/packages/ruby.scm (ruby_version): Update to 1.0.2. [phases]: Adapt the fix-dependencies phase. [native-inputs]: Add ruby-rdoc and ruby-rubygems-tasks. Remove bundler. [description]: Reformat.master
parent
92ebbaad09
commit
1097fdbea7
|
@ -7581,44 +7581,40 @@ display width of strings in Ruby.")
|
||||||
(define-public ruby_version
|
(define-public ruby_version
|
||||||
(package
|
(package
|
||||||
(name "ruby_version")
|
(name "ruby_version")
|
||||||
(version "1.0.1")
|
(version "1.0.2")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (rubygems-uri "ruby_version" version))
|
(uri (rubygems-uri "ruby_version" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0854i1bjy56176anr05l5m0vc81nl53c7fyfg7sljj62m1d64dgj"))))
|
"0lvc7bd5ps3w2vq2wb02i0pi3vfcx2rnckx2ix4rjym1qf52kb2j"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-before 'check 'fix-dependencies
|
(add-before 'check 'fix-dependencies
|
||||||
(lambda _
|
(lambda _
|
||||||
;; Remove the Gemfile.lock, as we want to use Guix packages at
|
;; Remove the Gemfile.lock, as we want to use Guix packages at
|
||||||
;; whatever versions.
|
;; whatever versions.
|
||||||
(delete-file "Gemfile.lock")
|
(delete-file "Gemfile.lock")
|
||||||
;; Remove the incldued gem file as it's unnecessary.
|
;; Remove the included gem files as they unnecessary.
|
||||||
(delete-file "pkg/ruby_version-1.0.0.gem")
|
(delete-file-recursively "pkg/")
|
||||||
|
;; Accept any version of rake, rdoc and rspec
|
||||||
(substitute* "ruby_version.gemspec"
|
(substitute* "ruby_version.gemspec"
|
||||||
;; Don't require rdoc and rubygems-tasks as they're unnecessary
|
|
||||||
((".*rdoc.*") "\n")
|
|
||||||
((".*rubygems-tasks.*") "\n")
|
|
||||||
;; Accept any version of rake and rspec
|
|
||||||
(("%q<rake.*") "%q<rake>)\n")
|
(("%q<rake.*") "%q<rake>)\n")
|
||||||
|
(("%q<rdoc.*") "%q<rdoc>)\n")
|
||||||
(("%q<rspec.*") "%q<rspec>)\n"))
|
(("%q<rspec.*") "%q<rspec>)\n"))
|
||||||
;; Remove the use of rubygems-tasks from the Rakefile, as it's
|
;; Do not use bundler.
|
||||||
;; unnecessary.
|
|
||||||
(substitute* "Rakefile"
|
(substitute* "Rakefile"
|
||||||
(("^require 'rubygems/tasks'") "")
|
(("Bundler\\.setup.*") "nil\n"))
|
||||||
(("Gem::Tasks.new") ""))
|
|
||||||
#t)))))
|
#t)))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("bundler" ,bundler)
|
`(("ruby-rdoc" ,ruby-rdoc)
|
||||||
("ruby-rspec" ,ruby-rspec)))
|
("ruby-rspec" ,ruby-rspec)
|
||||||
|
("ruby-rubygems-tasks", ruby-rubygems-tasks)))
|
||||||
(synopsis "Ruby library to help check the Ruby version")
|
(synopsis "Ruby library to help check the Ruby version")
|
||||||
(description
|
(description "@code{ruby_version} provides a @code{RubyVersion} module to simplify
|
||||||
"@code{ruby_version} provides a @code{RubyVersion} module to simplify
|
|
||||||
checking for the right Ruby version in software.")
|
checking for the right Ruby version in software.")
|
||||||
(home-page "https://github.com/janlelis/ruby_version")
|
(home-page "https://github.com/janlelis/ruby_version")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
Reference in New Issue