[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/20: gnu: Add ruby-fast-gettext.
From: |
guix-commits |
Subject: |
14/20: gnu: Add ruby-fast-gettext. |
Date: |
Wed, 20 May 2020 17:53:33 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 4a98314da9f308bba230fa3e5117e404f7aedd51
Author: Marius Bakke <address@hidden>
AuthorDate: Wed May 20 19:45:20 2020 +0200
gnu: Add ruby-fast-gettext.
* gnu/packages/ruby.scm (ruby-fast-gettext): New public variable.
---
gnu/packages/ruby.scm | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 70ed0df..97789c1 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -2406,6 +2406,65 @@ interface for Ruby programs.")
(home-page "https://github.com/mperham/connection_pool")
(license license:expat)))
+(define-public ruby-fast-gettext
+ (package
+ (name "ruby-fast-gettext")
+ (version "2.0.2")
+ (home-page "https://github.com/grosser/fast_gettext")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1rd48fp89k1sclgn2v26br2glwl3iv7z72mizzzmkdmqalqfn1sa"))))
+ (build-system ruby-build-system)
+ (arguments
+ '(#:test-target "spec"
+ #:phases (modify-phases %standard-phases
+ (add-before 'check 'remove-version-constraints
+ (lambda _
+ (delete-file "Gemfile.lock")
+ #t))
+ (add-before 'check 'remove-activerecord-test
+ (lambda _
+ ;; FIXME: This test fails because ActiveRecord depends on
+ ;; a different version of ruby-sqlite than the currently
+ ;; available one.
+ (delete-file
+ "spec/fast_gettext/translation_repository/db_spec.rb")
+ #t))
+ (add-before 'check 'disable-i18n-test
+ (lambda _
+ ;; XXX: This test checks i18n intricasies with Rails 3
and
+ ;; automatically disables itself for Rails 4.0, but does
+ ;; not know about newer versions as it has not been
updated
+ ;; since 2014. Disable for later versions of Rails too.
+ (substitute* "spec/fast_gettext/vendor/string_spec.rb"
+ (((string-append "ActiveRecord::VERSION::MAJOR == 4
and "
+ "ActiveRecord::VERSION::MINOR == 0"))
+ "ActiveRecord::VERSION::MAJOR >= 4"))
+ #t)))))
+ (native-inputs
+ `(;; For tests.
+ ("ruby-activerecord" ,ruby-activerecord)
+ ("ruby-activesupport" ,ruby-activesupport)
+ ("ruby-bump" ,ruby-bump)
+ ("ruby-forking-test-runner" ,ruby-forking-test-runner)
+ ("ruby-i18n" ,ruby-i18n)
+ ("ruby-rubocop" ,ruby-rubocop)
+ ("ruby-rspec" ,ruby-rspec)
+ ("ruby-single-cov" ,ruby-single-cov)
+ ("ruby-sqlite3" ,ruby-sqlite3)
+ ("ruby-wwtd" ,ruby-wwtd)))
+ (synopsis "Fast implementation of @code{GetText}")
+ (description
+ "This package provides an alternative implementation of the Ruby
+@code{GetText} library that is approximately 12x faster yet thread safe.")
+ ;; Some parts are covered by the Ruby license, see file headers.
+ (license (list license:expat license:ruby))))
+
(define-public ruby-net-http-persistent
(package
(name "ruby-net-http-persistent")
- 02/20: gnu: Add ruby-hocon., (continued)
- 02/20: gnu: Add ruby-hocon., guix-commits, 2020/05/20
- 03/20: gnu: Add ruby-wwtd., guix-commits, 2020/05/20
- 04/20: gnu: Add ruby-single-cov., guix-commits, 2020/05/20
- 07/20: gnu: Add ruby-maxitest., guix-commits, 2020/05/20
- 05/20: gnu: ruby-mocha: Update to 1.11.2., guix-commits, 2020/05/20
- 06/20: gnu: ruby-mocha: Update license., guix-commits, 2020/05/20
- 08/20: gnu: Add ruby-fakefs., guix-commits, 2020/05/20
- 09/20: gnu: Add ruby-gherkin-ruby., guix-commits, 2020/05/20
- 10/20: gnu: Add ruby-colorize., guix-commits, 2020/05/20
- 13/20: gnu: Add ruby-forking-test-runner., guix-commits, 2020/05/20
- 14/20: gnu: Add ruby-fast-gettext.,
guix-commits <=
- 15/20: gnu: varnish-modules: Update to 0.16.0., guix-commits, 2020/05/20
- 20/20: gnu: python-shouldbe: Python 3.8 compatibility., guix-commits, 2020/05/20
- 11/20: gnu: Add ruby-spinach., guix-commits, 2020/05/20
- 12/20: gnu: Add ruby-parallel-tests., guix-commits, 2020/05/20
- 16/20: gnu: varnish-modules: Update description., guix-commits, 2020/05/20
- 17/20: gnu: fontconfig: Add replacement with font-dejavu instead of gs-fonts., guix-commits, 2020/05/20
- 18/20: gnu: Add python-random-user-agent., guix-commits, 2020/05/20
- 19/20: gnu: racket-minimal: Fix hash for version 7.7., guix-commits, 2020/05/20