summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-03-04 07:23:16 +0100
committerHans de Graaff <graaff@gentoo.org>2019-03-04 07:23:16 +0100
commiteb9f88318d2cbd5315d9a0d1bba14dc5c20f046b (patch)
tree9d45704f89dec8a2670950ac9168ae50c70c478c /dev-ruby/i18n
parentnet-misc/hath: new version 0.5.0. (diff)
downloadgentoo-eb9f88318d2cbd5315d9a0d1bba14dc5c20f046b.tar.gz
gentoo-eb9f88318d2cbd5315d9a0d1bba14dc5c20f046b.tar.bz2
gentoo-eb9f88318d2cbd5315d9a0d1bba14dc5c20f046b.zip
dev-ruby/i18n: add 1.6.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-ruby/i18n')
-rw-r--r--dev-ruby/i18n/Manifest1
-rw-r--r--dev-ruby/i18n/i18n-1.6.0.ebuild59
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-ruby/i18n/Manifest b/dev-ruby/i18n/Manifest
index c57f61dcee9a..f683415b3b8d 100644
--- a/dev-ruby/i18n/Manifest
+++ b/dev-ruby/i18n/Manifest
@@ -8,3 +8,4 @@ DIST i18n-1.2.0.tar.gz 64271 BLAKE2B 9d8dc9a8187fb69317af6835ac2ee98219f662f6542
DIST i18n-1.3.0.tar.gz 64414 BLAKE2B 8ef3da9b2513ec7c0c10e04e3096361fac4b874f2591ba6354be09999fe3fe924867a1741eacaf967fbfa263588abbe4bf2daece1635797f3dd8bc489e19e2b5 SHA512 08884f4e415e71794969a87f326edc1bce5d7cba9a43413f8c24a375fd7378dd40e15a7d161021ea4af8d5c6e692595b86da9793e910f99dbe51e166d404491e
DIST i18n-1.5.2.tar.gz 64086 BLAKE2B 8c50fd40a5d8f103e218bc47d15b1c6a51336c1b9340f474a35c178d84e9d0198151c5643cd6416b4e007c33c02de4d011acb40b1b02d6a238563a0a669c1044 SHA512 438145abed34b27af26dc513d0dc30e32412ace3a057cf14a8bc8cb64734ac531bb0a8b7512372faed995fff8bce7a8dd4e44ee29560704646ab35d46d58db3c
DIST i18n-1.5.3.tar.gz 64156 BLAKE2B ba8c0806d38677229c87956e771ea646205a44553d5e09ec876f5eac35446f43e61c27f7d2b69aff429891551609b23eb169ee95623f75502a9d3bc1fdbe8b50 SHA512 c10f2fed363d390c4fb8a2792e1d8d6f56b72fd96a36b0a6ab837acbcb10ba313b7bdc6f4887d7096d396d25d8ae306091ead84cc95c94d2da9791c2debb30ac
+DIST i18n-1.6.0.tar.gz 64957 BLAKE2B c74bc8f712939ecf4a8850b047180dd6390494da778567de73a225c40a28dce7a12e63041ca90b3ac0ade9bb88be36e26a00404afe74abb8e0ca686084ac4952 SHA512 653a5368618fb938f5663edb79178ddff24fce1549d5085d5302a40ff82124ce64ffdef6c5626f07731c7cd617665906a741e2581d79c5cc161301b69cf66b0e
diff --git a/dev-ruby/i18n/i18n-1.6.0.ebuild b/dev-ruby/i18n/i18n-1.6.0.ebuild
new file mode 100644
index 000000000000..c6aacbabf2a5
--- /dev/null
+++ b/dev-ruby/i18n/i18n-1.6.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby23 ruby24 ruby25"
+
+RUBY_FAKEGEM_RECIPE_TEST="test"
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem eapi7-ver
+
+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 ~ppc ~ppc64 ~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 's/12.2.1/12/' -e 's/1.7.0/1.7/' gemfiles/* || die
+}
+
+each_ruby_test() {
+ case ${RUBY} in
+ *ruby26)
+ versions="5.2"
+ ;;
+ *ruby23|*ruby24|*ruby25)
+ versions="5.1 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
+}