diff options
Diffstat (limited to 'dev-ruby/i18n')
-rw-r--r-- | dev-ruby/i18n/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/i18n/i18n-1.8.2-r1.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
diff --git a/dev-ruby/i18n/Manifest b/dev-ruby/i18n/Manifest index 2cfa0950824b..5af6d0b968ad 100644 --- a/dev-ruby/i18n/Manifest +++ b/dev-ruby/i18n/Manifest @@ -16,5 +16,6 @@ EBUILD i18n-1.7.0.ebuild 1490 BLAKE2B 8710a7f0d15169feede283cbc30cf5f96ecf081605 EBUILD i18n-1.7.1.ebuild 1524 BLAKE2B 2609711dedf31dff84450a9e28ef7e6a341b4880d96a6320245a7375d340ae33cb126f55c3b0ed9472eb279fd8c24e96774e3d7e69af9d9352559825e1994721 SHA512 0c24dcd977f4344202e53ebd991ab9de6d00247b85d8d56c2a72959bba8a22ebe3c313ed93627dabd6dd8c6de0eb078bcf02b24f71892b5664593c3e17d63d8b EBUILD i18n-1.8.0.ebuild 1524 BLAKE2B 2609711dedf31dff84450a9e28ef7e6a341b4880d96a6320245a7375d340ae33cb126f55c3b0ed9472eb279fd8c24e96774e3d7e69af9d9352559825e1994721 SHA512 0c24dcd977f4344202e53ebd991ab9de6d00247b85d8d56c2a72959bba8a22ebe3c313ed93627dabd6dd8c6de0eb078bcf02b24f71892b5664593c3e17d63d8b EBUILD i18n-1.8.1.ebuild 1524 BLAKE2B 2609711dedf31dff84450a9e28ef7e6a341b4880d96a6320245a7375d340ae33cb126f55c3b0ed9472eb279fd8c24e96774e3d7e69af9d9352559825e1994721 SHA512 0c24dcd977f4344202e53ebd991ab9de6d00247b85d8d56c2a72959bba8a22ebe3c313ed93627dabd6dd8c6de0eb078bcf02b24f71892b5664593c3e17d63d8b +EBUILD i18n-1.8.2-r1.ebuild 1554 BLAKE2B a21a9fbefe8f6b9ece821b8890bcc3b705a55117431d03ff96e66545c9f6e5619eac56d3b6ac794ffba6e8bd606ee3f8dfd1acb67a4b01d8fcbea827fff2d3e4 SHA512 f5548dcc2ff88fad2b6e6b437d2dc7f7c2abb9f60c503cf7ea08e09ba8b61bf33192c17b36ced3525e2105f5aa0ba3d0ff1ab4d6f7c8d0c2d9a9648753df7bf8 EBUILD i18n-1.8.2.ebuild 1524 BLAKE2B 2609711dedf31dff84450a9e28ef7e6a341b4880d96a6320245a7375d340ae33cb126f55c3b0ed9472eb279fd8c24e96774e3d7e69af9d9352559825e1994721 SHA512 0c24dcd977f4344202e53ebd991ab9de6d00247b85d8d56c2a72959bba8a22ebe3c313ed93627dabd6dd8c6de0eb078bcf02b24f71892b5664593c3e17d63d8b MISC metadata.xml 340 BLAKE2B fd50e1569f22c70ba423cfd181cdfbad5348aed4ffc751ff04d38db0e3c64ec0e3d7501fd134401337337549509f7501a23e36b8a9bdd99a18a374885f8c8596 SHA512 09bf74eefe2371ac635fe302efe1b928e37cf0e1da0979f629085f357bc3e93ea87407781ad172139166f21cb979dbbc7e1bec013f8fe0a760cbbe94ab23ac64 diff --git a/dev-ruby/i18n/i18n-1.8.2-r1.ebuild b/dev-ruby/i18n/i18n-1.8.2-r1.ebuild new file mode 100644 index 000000000000..1835dcefe7e3 --- /dev/null +++ b/dev-ruby/i18n/i18n-1.8.2-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +USE_RUBY="ruby24 ruby25 ruby26 ruby27" + +RUBY_FAKEGEM_RECIPE_TEST="test" +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/svenfuchs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +ruby_add_rdepend "dev-ruby/concurrent-ruby:1" + +ruby_add_bdepend "test? ( + >=dev-ruby/activesupport-5.1 + dev-ruby/bundler + >=dev-ruby/mocha-1.7.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/' gemfiles/* || die +} + +each_ruby_test() { + case ${RUBY} in + *ruby27) + versions="6.0" + ;; + *ruby26) + versions="5.2 6.0" + ;; + *ruby25) + versions="5.2 6.0" + ;; + *ruby24) + versions="5.2" + ;; + 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 +} |