dev-ruby/i18n: add 1.13.0

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2023-04-27 10:31:58 +02:00
parent 6b878f82a3
commit 9bc52cffd4
2 changed files with 63 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
DIST i18n-1.12.0.tar.gz 72883 BLAKE2B 6818e5bdea156e9b6f7b33e319e5b5a5c3c9e7a799b56ded87ab2e27efa4effe730e23a8736b7374b8072c7ba4237a92619aeaad3a16c0bfe10fe73bf9c588d6 SHA512 616db5b15febc7a8716ceafef6c51a24e2d050f8e27e389ef96d94cdc95f9704942079d1e6b502666a015a99deee169342482c9a808164700401c47f96da8f0d
DIST i18n-1.13.0.tar.gz 74591 BLAKE2B e8b2a624c6ea02f030eacbbdf1ca9722d23785e51f31f5dd4a640f8ab74dfafc99131773619a5e2af724c7bcdbc0e63989b1552c148137bf15cf436f340c3c96 SHA512 4c2dc75ccb09ace90a5845f4c1325f0cb144c69b06b72a35728674deea5d869ed94fa5b18cf6b56d434cbad7e528150dedbb10ed91a6d15b7e05758117cf427e
+62
View File
@@ -0,0 +1,62 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby30 ruby31 ruby32"
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
inherit ruby-fakegem
DESCRIPTION="Add Internationalization support to your Ruby application"
HOMEPAGE="http://rails-i18n.org/"
SRC_URI="https://github.com/ruby-i18n/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="$(ver_cut 1)"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE=""
ruby_add_rdepend "dev-ruby/concurrent-ruby:1"
# We need mocha:1.0 which corresponds to the Gemfiles used in each_ruby_test
ruby_add_bdepend "test? (
>=dev-ruby/activesupport-5.1
dev-ruby/bundler
>=dev-ruby/minitest-5.14:5
>=dev-ruby/mocha-1.7.0:1.0
dev-ruby/test_declarative )"
all_ruby_prepare() {
rm -f gemfiles/*.lock || die
# Remove optional unpackaged oj gem
sed -i -e '/oj/ s:^:#:' gemfiles/* || die
# Update old test dependencies
sed -i -e '/rake/ s/~>/>=/' -e 's/1.7.0/1.7/' -e '3igem "json"' gemfiles/* || die
}
each_ruby_test() {
case ${RUBY} in
*ruby32)
versions="6.1 7.0"
;;
*ruby31)
versions="6.1 7.0"
;;
*ruby30)
versions="6.0 6.1 7.0"
;;
esac
for version in ${versions} ; do
if has_version "dev-ruby/activesupport:${version}" ; then
einfo "Running tests with activesupport ${version}"
BUNDLE_GEMFILE="${S}/gemfiles/Gemfile.rails-${version}.x" ${RUBY} -S bundle exec ${RUBY} -S rake test || die
fi
done
}