diff options
author | EuAndreh <eu@euandre.org> | 2021-02-08 14:26:16 -0300 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-02-09 11:11:52 +0100 |
commit | d4be9f846bedc0cf16cc08bc888f88863c7b1226 (patch) | |
tree | 8057c5e288a733a0dce3da03f7402602ee165dbc /gnu/packages/ruby.scm | |
parent | 8367ab5d92742920ac48125f07c7635c68cb5e36 (diff) | |
download | guix-d4be9f846bedc0cf16cc08bc888f88863c7b1226.tar.gz |
gnu: Add ruby-terminal-table.
* gnu/packages/ruby.scm (ruby-terminal-table): New variable.
Diffstat (limited to 'gnu/packages/ruby.scm')
-rw-r--r-- | gnu/packages/ruby.scm | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index ab56e944b4..c1a1c3fc1f 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -11157,6 +11157,47 @@ methods for your source as @code{Forwardable::Extended}.") 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") |