commit: 7d3050d7b43e8a681fb47d18e812703bbaf269e5 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Thu Jun 22 04:59:39 2023 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Thu Jun 22 05:00:18 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d3050d7
dev-ruby/gettext_i18n_rails: add 1.12.0 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/gettext_i18n_rails/Manifest | 1 + .../gettext_i18n_rails-1.12.0.ebuild | 38 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/dev-ruby/gettext_i18n_rails/Manifest b/dev-ruby/gettext_i18n_rails/Manifest index 65c1a9d779b0..4418b809817d 100644 --- a/dev-ruby/gettext_i18n_rails/Manifest +++ b/dev-ruby/gettext_i18n_rails/Manifest @@ -1,3 +1,4 @@ DIST gettext_i18n_rails-1.10.0.tar.gz 21434 BLAKE2B 7b754b482c527593589f43b2547b5ed418db09bce255ba8e65523c7bf46c5402953990dc5941b06af8745a25c7840358e4beabaf1a2aec295a7763484bce8818 SHA512 0016dee43253fbf1fb712d74a1fb85c28d9d23b62af2ab16dfd4837f38749e4be8901b578b6a1e6ecbcf7476114e15873b4c073c5c0bdd7417e1d78515a3e4ff DIST gettext_i18n_rails-1.10.1.tar.gz 21451 BLAKE2B 493307ff0c786aa54ec64140e8f2b0b3b4763f985959123f104a720718ff2bd64786a0d4c081e31a872573467f3183dade2259970b9f04cb68abb51d1cd27f8a SHA512 30aedac2d178c44d5fc5f6501d721ded23b6e3964783c3862aa8dae7902e973338d4a8415146c579270cc900bb1394a92b0a53ebbf9a7437dbe4f1c87a6173ca DIST gettext_i18n_rails-1.11.0.tar.gz 21644 BLAKE2B 291ad5882cb3a5faa596752b02a5f2c26f5c748dad91d7eb444ca03d65e07920be1a74ac80d40a444a929d807f2b65785ffe644b386a9f8efeefbfdb015eba56 SHA512 6eb8e34690042dd7b9680012bec91181080eb65e1b85cd7de838a30899f4ecc55a3c7a9e5afa27f37ee53180a8ef29878ee996bf0a3c193196f41db8f8e57af1 +DIST gettext_i18n_rails-1.12.0.tar.gz 21003 BLAKE2B 7bd7d290296ebc789fed23cb8c278a734273f5cae1e6958b29d825a1a088a845483d838e59148154c17e3dd25ba7696ed6b88e395d04057315b3953c716c293c SHA512 2934bb458df164881d3d8dbad44d98b34a6f4346331084dc03e47c0db79e2b4378b6f22d31686c6f4800805691ad95af9eac9773f7cb3b8abba2b665d3078670 diff --git a/dev-ruby/gettext_i18n_rails/gettext_i18n_rails-1.12.0.ebuild b/dev-ruby/gettext_i18n_rails/gettext_i18n_rails-1.12.0.ebuild new file mode 100644 index 000000000000..405506db5263 --- /dev/null +++ b/dev-ruby/gettext_i18n_rails/gettext_i18n_rails-1.12.0.ebuild @@ -0,0 +1,38 @@ +# 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="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="public-domain" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +ruby_add_bdepend "test? ( dev-ruby/rails:7.0 dev-ruby/activerecord:7.0[sqlite] dev-ruby/temple )" +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.0.0"' -i spec/spec_helper.rb || die +}