gnu: ruby-html-proofer: Update to 5.0.3.
* gnu/packages/ruby.scm (ruby-html-proofer): Update to 5.0.3. [arguments]: Add replace-git-ls-files and relax-requirements phases. [native-inputs]: Delete field. [propagated-inputs]: Replace ruby-nokogumbo with ruby-nokogiri.
This commit is contained in:
parent
8c002eefdf
commit
d163a379b9
1 changed files with 25 additions and 12 deletions
|
@ -11565,7 +11565,7 @@ characteristics.")
|
||||||
(define-public ruby-html-proofer
|
(define-public ruby-html-proofer
|
||||||
(package
|
(package
|
||||||
(name "ruby-html-proofer")
|
(name "ruby-html-proofer")
|
||||||
(version "3.18.5")
|
(version "5.0.3")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -11575,22 +11575,35 @@ characteristics.")
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1pxb0fajb3l3lm7sqj548qwl7vx6sx3jy7n4cns9d4lqx7s9r9xb"))))
|
"01ksss3ikppc45z2q33bx8bb9785bqlp1rdqascaqg9mhs392adk"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(;; FIXME: Tests depend on rubocop-standard.
|
(list
|
||||||
#:tests? #f))
|
;; Tests require vcr, which is under the Hippocratic license, which is
|
||||||
(native-inputs
|
;; not a free software license (see:
|
||||||
(list ruby-awesome-print
|
;; https://www.gnu.org/licenses/license-list.html#hippocratic).
|
||||||
ruby-redcarpet
|
#:tests? #f
|
||||||
ruby-rspec
|
#:phases
|
||||||
ruby-rubocop
|
#~(modify-phases %standard-phases
|
||||||
ruby-rubocop-performance
|
(add-after 'extract-gemspec 'relax-requirements
|
||||||
ruby-pry-byebug))
|
(lambda _
|
||||||
|
(substitute* "html-proofer.gemspec"
|
||||||
|
(("required_ruby_version = \\[\">= 3.1\"")
|
||||||
|
"required_ruby_version = [\">= 2.6\""))))
|
||||||
|
(replace 'replace-git-ls-files
|
||||||
|
(lambda _
|
||||||
|
;; The html-proofer.gemspec file contains 'all_files = %x(git
|
||||||
|
;; ls-files -z).split("\x0")', but the original phase matches on
|
||||||
|
;; `git ls-files -z`.
|
||||||
|
;; TODO: Improve ruby-build-system patterns on core-updates.
|
||||||
|
(substitute* "html-proofer.gemspec"
|
||||||
|
(("git ls-files -z")
|
||||||
|
"find . -type f -not -regex '.*\\.gem$' -print0 \
|
||||||
|
| sort -z | cut -zc3-")))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list ruby-addressable
|
(list ruby-addressable
|
||||||
ruby-mercenary
|
ruby-mercenary
|
||||||
ruby-nokogumbo
|
ruby-nokogiri
|
||||||
ruby-parallel
|
ruby-parallel
|
||||||
ruby-rainbow
|
ruby-rainbow
|
||||||
ruby-typhoeus
|
ruby-typhoeus
|
||||||
|
|
Reference in a new issue