diff options
| -rw-r--r-- | dev-ruby/i18n/Manifest | 1 | ||||
| -rw-r--r-- | dev-ruby/i18n/i18n-1.14.8.ebuild | 65 |
2 files changed, 66 insertions, 0 deletions
diff --git a/dev-ruby/i18n/Manifest b/dev-ruby/i18n/Manifest index 9060ac3bebf1..5eb054a6b0b7 100644 --- a/dev-ruby/i18n/Manifest +++ b/dev-ruby/i18n/Manifest @@ -1 +1,2 @@ DIST i18n-1.14.7.tar.gz 76045 BLAKE2B 2261dfcd9ef68e42ae7a2cf4314a5ff7d9030172bb68b8e10ff1fb6399912054f87ec9f48177a1ae155819edd6a4f89042b62a713cb3d969ecc3cac3d7e22e0d SHA512 e647c5a454a3929f62feb9464fe6a44c0cded23eaf48fc827d084a98bca5ca8f312c6f51d5c1241a709263ee6cd47b314c69a8f95db1393136dafd6287586a76 +DIST i18n-1.14.8.tar.gz 76086 BLAKE2B b0838c185159f2906d5ddc2b294d146eaa145bf69917a0a5b84cddd176c4ef67f9bfbde6db9844b3323615521fa71a81db13d4ddfd53bf7afa42b511dfa62374 SHA512 0be488e2350f9ef6c707986de7dccc62888ef2b555633c61d16c2ecaac598b28758cfbc7fce8e357490a849a8865ec2472c1e71c1706000fe735648aa6fff8ab diff --git a/dev-ruby/i18n/i18n-1.14.8.ebuild b/dev-ruby/i18n/i18n-1.14.8.ebuild new file mode 100644 index 000000000000..d29d7b8320aa --- /dev/null +++ b/dev-ruby/i18n/i18n-1.14.8.ebuild @@ -0,0 +1,65 @@ +# 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="CHANGELOG.md README.md" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Add Internationalization support to your Ruby application" +HOMEPAGE="https://github.com/ruby-i18n/i18n" +SRC_URI="https://github.com/ruby-i18n/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris" + +ruby_add_rdepend " + dev-ruby/concurrent-ruby:1 + >=dev-ruby/racc-1.7:0 +" + +ruby_add_bdepend " + test? ( + >=dev-ruby/activesupport-5.1 + dev-ruby/bundler + >=dev-ruby/minitest-5.14:5 + dev-ruby/mocha:2 + dev-ruby/test_declarative + ) +" + +all_ruby_prepare() { + rm -f gemfiles/*.lock || die + + # Remove optional unpackaged oj gem. + # Make mocha dependency more lenient. + sed -e '/oj/ s:^:#:' \ + -e '/mocha/ s/2.1.0/2.1/' \ + -i gemfiles/* || die +} + +each_ruby_test() { + case ${RUBY} in + *ruby34) + versions="7.2 8.0" + ;; + *ruby33) + versions="7.1 7.2 8.0" + ;; + *ruby32) + versions="7.1 7.2 8.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 +} |
