summaryrefslogtreecommitdiff
path: root/gnu/packages/ruby.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2015-11-20 12:10:49 +0100
committerRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2015-11-20 15:21:24 +0100
commitc1f52261e2379316869d7829023dda4759be150b (patch)
treefb15844c81b42c57a2cf0bfbf584ea6a72d59f5d /gnu/packages/ruby.scm
parente2333ea39181d74d3ffb9a5d2c83172278694423 (diff)
downloadpatches-c1f52261e2379316869d7829023dda4759be150b.tar
patches-c1f52261e2379316869d7829023dda4759be150b.tar.gz
gnu: Add ruby-gettext.
* gnu/packages/ruby.scm (ruby-gettext): New variable.
Diffstat (limited to 'gnu/packages/ruby.scm')
-rw-r--r--gnu/packages/ruby.scm29
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 0a31efbab4..9aff0e9b2c 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1008,6 +1008,35 @@ Soundex, Metaphone, Double Metaphone, Porter Stemming.")
(home-page "http://github.com/threedaymonk/text")
(license license:expat)))
+(define-public ruby-gettext
+ (package
+ (name "ruby-gettext")
+ (version "3.1.7")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "gettext" version))
+ (sha256
+ (base32
+ "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
+ (build-system ruby-build-system)
+ ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
+ ;; which needs ruby-gettext. To break the dependency cycle we disable
+ ;; tests.
+ (arguments `(#:tests? #f))
+ (propagated-inputs
+ `(("ruby-locale" ,ruby-locale)
+ ("ruby-text" ,ruby-text)))
+ (native-inputs
+ `(("bundler" ,bundler)
+ ("ruby-yard" ,ruby-yard)))
+ (synopsis "GNU gettext-like program for Ruby")
+ (description
+ "Gettext is a GNU gettext-like program for Ruby. The catalog
+file (po-file) used is the same as that used by GNU gettext, allowing you to
+use GNU gettext tools for maintenance.")
+ (home-page "http://ruby-gettext.github.com/")
+ (license (list license:lgpl3+ license:ruby))))
+
(define-public ruby-minitest
(package
(name "ruby-minitest")