gnu: ruby-term-ansicolor: Fix build.

* gnu/packages/ruby.scm (ruby-term-ansicolor)[arguments]: Update style.
[native-inputs]: Remove ruby-minitest-tu-shim.
This commit is contained in:
Christopher Baines 2023-06-27 12:08:21 +01:00
parent 280c0f092d
commit 058294caed
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -7469,20 +7469,21 @@ (define-public ruby-term-ansicolor
;; Rebuilding the gemspec seems to require git, even though this is not a
;; git repository, so we just build the gem from the existing gemspec.
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-test
(lambda -
(substitute* "tests/hsl_triple_test.rb"
(("0\\\\\\.0%")
"0\\.?0?%"))))
(replace 'build
(lambda _
(invoke "gem" "build" "term-ansicolor.gemspec"))))))
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-test
(lambda -
(substitute* "tests/hsl_triple_test.rb"
(("0\\\\\\.0%")
"0\\.?0?%"))))
(replace 'build
(lambda _
(invoke "gem" "build" "term-ansicolor.gemspec"))))))
(propagated-inputs
(list ruby-tins))
(native-inputs
(list ruby-gem-hadar ruby-minitest-tu-shim))
(list ruby-gem-hadar))
(synopsis "Ruby library to control the attributes of terminal output")
(description
"This Ruby library uses ANSI escape sequences to control the attributes