>From 24edad0eac9972e946b80e5919adc99d4fe11d8b Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Tue, 29 Dec 2015 14:11:21 +1000 Subject: [PATCH 01/12] gnu: Add ruby-ansi. * gnu/packages/ruby.scm (ruby-ansi): New variable. --- gnu/packages/ruby.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index a3eafb1..0037407 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -2884,3 +2884,39 @@ programs to concentrate on the implementation of network protocols. It can be used to create both network servers and clients.") (home-page "http://rubyeventmachine.com") (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT + +(define-public ruby-ansi + (package + (name "ruby-ansi") + (version "1.5.0") + (source + (origin + (method url-fetch) + ;; fetch from github as the gem does not contain testing code + (uri (string-append + "https://github.com/rubyworks/ansi/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1zdip30hivyipi8hndhb457bhiz033awd00bgrsk5axjrwp6zhly")))) + (build-system ruby-build-system) + (arguments + ;; disable testing to break the cycle ansi, ae, ansi, as well as the cycle + ;; ansi, qed, ansi. Instead simply test that the library can be require'd. + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (zero? (system* "ruby" "-Ilib" "-r" "ansi"))))))) + (synopsis "ANSI escape code related libraries") + (description + "The ANSI project is a collection of ANSI escape code related libraries +enabling ANSI colorization and stylization of console output. Included in the +library are the Code module, which defines ANSI codes as constants and +methods, a Mixin module for including color methods, a Logger, a ProgressBar, +and a String subclass. The library also includes a Terminal module which +provides information about the current output device.") + (home-page "http://rubyworks.github.io/ansi") + (license license:bsd-2))) + -- 2.6.3