dev-ruby/gettext_i18n_rails: add 2.1.0

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff 2025-11-17 09:16:54 +01:00
parent 267f4f6fa8
commit b78f706633
No known key found for this signature in database
GPG Key ID: DB347F938654FA34
2 changed files with 47 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST gettext_i18n_rails-1.13.0.tar.gz 21147 BLAKE2B 43ba0e408a274283280634a775bddef0bdc4b203e683db3f926c02fed24b413b052dddf08876f81b0b7976b934b1f8845c5278f9c9d10da8013f9062da68ac2f SHA512 58ae4b12ee75e7892d451fedd89375393341e258cf3a859534998dc2582eb6ed6eaeb579e001325e775e639caddc52f9e71ed7f5b7023dce4cdbbfa8f653f3eb
DIST gettext_i18n_rails-2.1.0.tar.gz 21808 BLAKE2B 09727ee9ed4532c82cf725546b00085de75f9c17c2a34f0b2c215ebc06ee04b5d888eb51e3f88b3451120dcb7ab1ce302b89dbdc88580ee553042497878ed24f SHA512 eb3c586b1cef9d75c076a6ef26c8361092475f361e4d182203bea2c4e160206dd5f2f02949eef1219aac690ec9fcf281e686022cf831f09933c81f36de86ec11

View File

@ -0,0 +1,46 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby32 ruby33 ruby34"
RUBY_FAKEGEM_EXTRADOC="Readme.md"
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
RUBY_FAKEGEM_GEMSPEC="gettext_i18n_rails.gemspec"
inherit ruby-fakegem
DESCRIPTION="FastGettext / Rails integration"
HOMEPAGE="https://github.com/grosser/gettext_i18n_rails"
SRC_URI="https://github.com/grosser/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="$(ver_cut 1)"
KEYWORDS="~amd64"
IUSE="test"
ruby_add_bdepend "test? (
dev-ruby/rails:7.2
dev-ruby/activerecord:7.2[sqlite]
dev-ruby/temple
dev-ruby/ruby-gettext
dev-ruby/haml
dev-ruby/slim
)"
ruby_add_rdepend ">=dev-ruby/fast_gettext-0.9.0:*"
all_ruby_prepare() {
rm Gemfile Gemfile.lock || die
sed -i -e 's/git ls-files/find/' ${RUBY_FAKEGEM_GEMSPEC} || die
# Remove specs for slim and hamlet, template engines we don't package.
rm spec/gettext_i18n_rails/slim_parser_spec.rb spec/gettext_i18n_rails/haml_parser_spec.rb || die
# Test against specific Rails version
sed -e '1igem "rails", "~>7.2.0"' -i spec/spec_helper.rb || die
}