1 |
commit: 30be434d7b784f390ce20ecfeadfe1af514adc0a |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 3 06:35:23 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 3 06:43:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30be434d |
7 |
|
8 |
dev-ruby/i18n: add 1.8.11 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/i18n/Manifest | 1 + |
14 |
dev-ruby/i18n/i18n-1.8.11.ebuild | 58 ++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 59 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/i18n/Manifest b/dev-ruby/i18n/Manifest |
18 |
index bf0867a9b1e..98efdcba52c 100644 |
19 |
--- a/dev-ruby/i18n/Manifest |
20 |
+++ b/dev-ruby/i18n/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST i18n-1.8.10.tar.gz 67943 BLAKE2B 58e8041f8cf652627a305e3d987ff2450913d3dc919ea7aae641cb484524d17312ebd3e0ee68cde1c01091e42713ea229ccb41ed3998c6bbf772d32f855ca107 SHA512 e8b10bf380241d1e6b19250cd63e727366215b4ad7e63479a02cb81a5b46a48e06db827d9df9969c2052895646ee30c237fd17c3352a2bbfed97615bb9b6cfca |
23 |
+DIST i18n-1.8.11.tar.gz 67964 BLAKE2B e603077c6eb02f6fd89bafd6c06f85c72528d5eb4388854f060f05a4b49a3782a3830366a1f11bd95b191048f29fae251002a34d55cb185ecefb3afc06bb2f36 SHA512 af8fcc307de9959b5a01a79ac3c99d3a3573630f8cdf91c21208e07d35d1a0db60f4995f1b77921c5374a1a19ad66770a107cc41fb29cf480d02be00bf90634a |
24 |
DIST i18n-1.8.9.tar.gz 67899 BLAKE2B 56113d0879cb644a49ef79aea892e4452b65df0769a9532af44083852ed85c5afc8ac68cd6ae4f42d4b68a5aa548f7d92cf69371685c65e4cb5e3b3a0e29445a SHA512 0dfe43bcb341c63b10ace733246c2005f1261bbed23f8f38298b0712aab5047a3ddd61aa8f42c9e0cf3dee6564b67c04595234a6dfcf95db30d9a0d044483505 |
25 |
|
26 |
diff --git a/dev-ruby/i18n/i18n-1.8.11.ebuild b/dev-ruby/i18n/i18n-1.8.11.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..ad5e996d6a7 |
29 |
--- /dev/null |
30 |
+++ b/dev-ruby/i18n/i18n-1.8.11.ebuild |
31 |
@@ -0,0 +1,58 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+USE_RUBY="ruby26 ruby27" |
38 |
+ |
39 |
+RUBY_FAKEGEM_RECIPE_TEST="test" |
40 |
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" |
41 |
+ |
42 |
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
43 |
+ |
44 |
+inherit ruby-fakegem |
45 |
+ |
46 |
+DESCRIPTION="Add Internationalization support to your Ruby application" |
47 |
+HOMEPAGE="http://rails-i18n.org/" |
48 |
+SRC_URI="https://github.com/svenfuchs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="MIT" |
51 |
+SLOT="$(ver_cut 1)" |
52 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
53 |
+IUSE="" |
54 |
+ |
55 |
+ruby_add_rdepend "dev-ruby/concurrent-ruby:1" |
56 |
+ |
57 |
+ruby_add_bdepend "test? ( |
58 |
+ >=dev-ruby/activesupport-5.1 |
59 |
+ dev-ruby/bundler |
60 |
+ >=dev-ruby/mocha-1.7.0 |
61 |
+ dev-ruby/test_declarative )" |
62 |
+ |
63 |
+all_ruby_prepare() { |
64 |
+ rm -f gemfiles/*.lock || die |
65 |
+ |
66 |
+ # Remove optional unpackaged oj gem |
67 |
+ sed -i -e '/oj/ s:^:#:' gemfiles/* || die |
68 |
+ |
69 |
+ # Update old test dependencies |
70 |
+ sed -i -e '/rake/ s/~>/>=/' -e 's/1.7.0/1.7/' -e '3igem "json"' gemfiles/* || die |
71 |
+} |
72 |
+ |
73 |
+each_ruby_test() { |
74 |
+ case ${RUBY} in |
75 |
+ *ruby27) |
76 |
+ versions="6.0 6.1" |
77 |
+ ;; |
78 |
+ *ruby26) |
79 |
+ versions="5.2 6.0 6.1" |
80 |
+ ;; |
81 |
+ esac |
82 |
+ |
83 |
+ for version in ${versions} ; do |
84 |
+ if has_version "dev-ruby/activesupport:${version}" ; then |
85 |
+ einfo "Running tests with activesupport ${version}" |
86 |
+ BUNDLE_GEMFILE="${S}/gemfiles/Gemfile.rails-${version}.x" ${RUBY} -S bundle exec ${RUBY} -S rake test || die |
87 |
+ fi |
88 |
+ done |
89 |
+} |