gnu: Add ruby-terminal-table.

* gnu/packages/ruby.scm (ruby-terminal-table): New variable.
This commit is contained in:
EuAndreh 2021-02-08 14:26:16 -03:00 committed by Nicolas Goaziou
parent 8367ab5d92
commit d4be9f846b
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -11157,6 +11157,47 @@ (define-public ruby-pathutil
Pathname.")
(license license:expat)))
(define-public ruby-terminal-table
(package
(name "ruby-terminal-table")
(version "2.0.0")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "terminal-table" version))
(sha256
(base32
"18rbrh464ysqbdv53iwj0r8frshn65566kyj044cp3x9c2754jwh"))))
(arguments
'(#:phases
(modify-phases %standard-phases
(add-before 'check 'remove-gemfile-lock
(lambda _
(delete-file "Gemfile.lock")))
(add-before 'check 'remove-unnecessary-dependencies
(lambda _
(substitute* "terminal-table.gemspec"
(("s.add_runtime_dependency.*") "\n")
(("s.add_development_dependency.*") "\n"))
(substitute* "Gemfile"
((".*tins.*") "\n"))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "rspec")))))))
(build-system ruby-build-system)
(propagated-inputs
`(("ruby-unicode-display-width" ,ruby-unicode-display-width)))
(native-inputs
`(("ruby-rspec" ,ruby-rspec)))
(home-page "https://github.com/tj/terminal-table")
(synopsis "Simple, feature rich ASCII table generation library")
(description
"Terminal Table is a fast and simple, yet feature rich
table generator written in Ruby. It supports ASCII and
Unicode formatted tables.")
(license license:expat)))
(define-public jekyll
(package
(name "jekyll")