mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-14 23:20:29 -05:00
gnu: ruby-json-pure: Update to 2.3.1.
* gnu/packages/ruby.scm (ruby-json-pure): Update to 2.3.1. [arguments]: Remove custom 'regenerate-gemspec, 'fix-json-java.gemspec phases. Remove part of custom 'fix-rakefile phase. [native-inputs]: Add which.
This commit is contained in:
parent
df10452b2f
commit
fb204d0a21
1 changed files with 5 additions and 20 deletions
|
@ -6225,13 +6225,13 @@ (define-public ruby-json
|
|||
(define-public ruby-json-pure
|
||||
(package
|
||||
(name "ruby-json-pure")
|
||||
(version "2.2.0")
|
||||
(version "2.3.1")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (rubygems-uri "json_pure" version))
|
||||
(sha256
|
||||
(base32
|
||||
"0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439"))))
|
||||
"00pziwkfqwk8vj19s65sdki31q1wvmf5v9b3sfglxm94qfvas1lx"))))
|
||||
(build-system ruby-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
|
@ -6240,28 +6240,13 @@ (define-public ruby-json-pure
|
|||
(lambda _
|
||||
(substitute* "Rakefile"
|
||||
;; Since this is not a git repository, do not call 'git'.
|
||||
(("`git ls-files`") "`find . -type f |sort`")
|
||||
;; Loosen dependency constraint.
|
||||
(("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
|
||||
#t))
|
||||
(add-after 'replace-git-ls-files 'regenerate-gemspec
|
||||
(lambda _
|
||||
;; Regenerate gemspec so loosened dependency constraints are
|
||||
;; propagated.
|
||||
(invoke "rake" "gemspec")))
|
||||
(add-after 'regenerate-gemspec 'fix-json-java.gemspec
|
||||
(lambda _
|
||||
;; This gemspec doesn't look to be generated by the above
|
||||
;; command, so patch it separately.
|
||||
(substitute* "json-java.gemspec"
|
||||
(("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
|
||||
"%q<test-unit>.freeze, [\">= 2.0\"]"))
|
||||
#t)))))
|
||||
(("`git ls-files`") "`find . -type f |sort`")))))))
|
||||
(native-inputs
|
||||
`(("bundler" ,bundler)
|
||||
("ragel" ,ragel)
|
||||
("ruby-simplecov" ,ruby-simplecov)
|
||||
("ruby-test-unit" ,ruby-test-unit)))
|
||||
("ruby-test-unit" ,ruby-test-unit)
|
||||
("which" ,which)))
|
||||
(synopsis "JSON implementation in pure Ruby")
|
||||
(description
|
||||
"This package provides a JSON implementation written in pure Ruby.")
|
||||
|
|
Loading…
Reference in a new issue