Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/i18n/
Date: Fri, 04 May 2018 05:46:50
Message-Id: 1525412798.f15f1e856a5f86b44ced778e8cef0b7fd8f92298.graaff@gentoo
1 commit: f15f1e856a5f86b44ced778e8cef0b7fd8f92298
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 4 05:45:43 2018 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Fri May 4 05:46:38 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f15f1e85
7
8 dev-ruby/i18n: add ruby25
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 dev-ruby/i18n/i18n-0.9.5-r1.ebuild | 56 ++++++++++++++++++++++++++++++++++++++
13 1 file changed, 56 insertions(+)
14
15 diff --git a/dev-ruby/i18n/i18n-0.9.5-r1.ebuild b/dev-ruby/i18n/i18n-0.9.5-r1.ebuild
16 new file mode 100644
17 index 00000000000..360a808b58d
18 --- /dev/null
19 +++ b/dev-ruby/i18n/i18n-0.9.5-r1.ebuild
20 @@ -0,0 +1,56 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +USE_RUBY="ruby23 ruby24 ruby25"
27 +
28 +RUBY_FAKEGEM_RECIPE_TEST="test"
29 +RUBY_FAKEGEM_RECIPE_DOC="rdoc"
30 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
31 +
32 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
33 +
34 +inherit ruby-fakegem versionator
35 +
36 +DESCRIPTION="Add Internationalization support to your Ruby application"
37 +HOMEPAGE="http://rails-i18n.org/"
38 +SRC_URI="https://github.com/svenfuchs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
39 +
40 +LICENSE="MIT"
41 +SLOT="$(get_version_component_range 1-2)"
42 +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"
43 +IUSE=""
44 +
45 +ruby_add_rdepend "dev-ruby/concurrent-ruby:1"
46 +
47 +ruby_add_bdepend "test? (
48 + >=dev-ruby/activesupport-4.2
49 + dev-ruby/bundler
50 + >=dev-ruby/mocha-0.13
51 + dev-ruby/test_declarative )"
52 +
53 +all_ruby_prepare() {
54 + rm -f gemfiles/*.lock || die
55 +
56 + # Remove optional unpackaged oj gem
57 + sed -i -e '/oj/ s:^:#:' gemfiles/* || die
58 +}
59 +
60 +each_ruby_test() {
61 + case ${RUBY} in
62 + *ruby25)
63 + versions="5.1"
64 + ;;
65 + *ruby23|*ruby24)
66 + versions="4.2 5.0 5.1"
67 + ;;
68 + esac
69 +
70 + for version in ${versions} ; do
71 + if has_version "dev-ruby/activesupport:${version}" ; then
72 + einfo "Running tests with activesupport ${version}"
73 + BUNDLE_GEMFILE="${S}/gemfiles/Gemfile.rails-${version}.x" ${RUBY} -S bundle exec ${RUBY} -S rake test || die
74 + fi
75 + done
76 +}