summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-12-11 07:47:31 +0100
committerHans de Graaff <graaff@gentoo.org>2019-12-11 07:47:31 +0100
commit0197f735c9f33f641aa210278a7e784b92068d64 (patch)
tree9f003446446560c000564813e0191ededd49305f /dev-ruby/gettext_i18n_rails
parentdev-ruby/builder: add 3.2.4 (diff)
downloadgentoo-0197f735c9f33f641aa210278a7e784b92068d64.tar.gz
gentoo-0197f735c9f33f641aa210278a7e784b92068d64.tar.bz2
gentoo-0197f735c9f33f641aa210278a7e784b92068d64.zip
dev-ruby/gettext_i18n_rails: add 1.8.1
Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/gettext_i18n_rails')
-rw-r--r--dev-ruby/gettext_i18n_rails/Manifest1
-rw-r--r--dev-ruby/gettext_i18n_rails/gettext_i18n_rails-1.8.1.ebuild38
2 files changed, 39 insertions, 0 deletions
diff --git a/dev-ruby/gettext_i18n_rails/Manifest b/dev-ruby/gettext_i18n_rails/Manifest
index ee3ad0f6848f..7ebf4c5c3694 100644
--- a/dev-ruby/gettext_i18n_rails/Manifest
+++ b/dev-ruby/gettext_i18n_rails/Manifest
@@ -1 +1,2 @@
DIST gettext_i18n_rails-1.8.0.tar.gz 21702 BLAKE2B 1742e12198313384e52fc43795086efb2112b00bdf4c740db717ee2feb7c25453f0e6acdeb4ec2ab79de82d291ef117e38cabf4596be2da760c4144b2c660115 SHA512 9005526dd14e5e36f5ffdd207af824ad110f5e0c8dcf34175b6a68caad257d45a7b9ee048c6d0f38ffb399fbeff689b5e64b7c26f00263001efeababfa85aa7e
+DIST gettext_i18n_rails-1.8.1.tar.gz 21942 BLAKE2B 7925bfad0e1033fd363ca2c376594ba8ca6a7f5c1da940c680acae53e4b3902d7c07828b6023ed208f559af1b9ded7933ffae6b7385e066c0494aa16cc728256 SHA512 711c15620a23c070f47d4846f48b74564bfc23d27e9757936b432c1b3c534121d4cf58101fe533bc58b7d3e33e899134b92cd119e2cd2cd3eb39f54e93e394e0
diff --git a/dev-ruby/gettext_i18n_rails/gettext_i18n_rails-1.8.1.ebuild b/dev-ruby/gettext_i18n_rails/gettext_i18n_rails-1.8.1.ebuild
new file mode 100644
index 000000000000..416863e6da95
--- /dev/null
+++ b/dev-ruby/gettext_i18n_rails/gettext_i18n_rails-1.8.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+USE_RUBY="ruby24 ruby25 ruby26"
+
+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:5.2 dev-ruby/activerecord:5.2[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 Rails 4.2.0
+ sed -e '1igem "rails", "~>5.2.0"' -i spec/spec_helper.rb || die
+}