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/ruby-gettext/
Date: Tue, 01 Aug 2017 05:50:43
Message-Id: 1501564518.306513b73420cc030de9ccb452b740e2e87e70d8.graaff@gentoo
1 commit: 306513b73420cc030de9ccb452b740e2e87e70d8
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 1 05:15:18 2017 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 1 05:15:18 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=306513b7
7
8 dev-ruby/ruby-gettext: add ruby24
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 dev-ruby/ruby-gettext/ruby-gettext-3.2.3-r1.ebuild | 65 ++++++++++++++++++++++
13 1 file changed, 65 insertions(+)
14
15 diff --git a/dev-ruby/ruby-gettext/ruby-gettext-3.2.3-r1.ebuild b/dev-ruby/ruby-gettext/ruby-gettext-3.2.3-r1.ebuild
16 new file mode 100644
17 index 00000000000..26a27fc5f54
18 --- /dev/null
19 +++ b/dev-ruby/ruby-gettext/ruby-gettext-3.2.3-r1.ebuild
20 @@ -0,0 +1,65 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +USE_RUBY="ruby21 ruby22 ruby23 ruby24"
27 +
28 +RUBY_FAKEGEM_NAME="${PN/ruby-/}"
29 +RUBY_FAKEGEM_VERSION="${PV%_*}"
30 +
31 +RUBY_FAKEGEM_RECIPE_DOC="yard"
32 +RUBY_FAKEGEM_EXTRADOC="README.md doc/text/news.md"
33 +
34 +RUBY_FAKEGEM_TASK_TEST="none"
35 +
36 +RUBY_FAKEGEM_EXTRAINSTALL="locale po"
37 +
38 +inherit ruby-fakegem
39 +
40 +DESCRIPTION="Native Language Support Library and Tools modeled after GNU gettext package"
41 +HOMEPAGE="https://ruby-gettext.github.io/"
42 +
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
44 +IUSE="doc test"
45 +SLOT="0"
46 +LICENSE="|| ( Ruby LGPL-3+ )"
47 +
48 +ruby_add_rdepend ">=dev-ruby/locale-2.0.5 >=dev-ruby/text-1.3.0"
49 +
50 +ruby_add_bdepend "doc? ( dev-ruby/yard )
51 + dev-ruby/racc"
52 +ruby_add_bdepend "test? (
53 + dev-ruby/test-unit:2
54 + dev-ruby/test-unit-rr )"
55 +
56 +RDEPEND+=" sys-devel/gettext"
57 +DEPEND+=" sys-devel/gettext"
58 +
59 +all_ruby_prepare() {
60 + # Fix broken racc invocation
61 + sed -i -e '/command_line/ s/#{racc}/-S racc/' Rakefile || die
62 +
63 + # Avoid bundler dependency
64 + sed -i -e '/bundler/,/helper.install/ s:^:#:' \
65 + -e 's/helper.gemspec/Gem::Specification.new/' Rakefile || die
66 +
67 + # Avoid dependency on developer-specific tools.
68 + sed -i -e '/notify/ s:^:#:' test/run-test.rb || die
69 +
70 + # Avoid tests failing due to a missing test file.
71 + #sed -i -e '/test_invalid_charset/,/end/ s:^:#:' test/test_mo.rb || die
72 +}
73 +
74 +each_ruby_test() {
75 + # Upstream tries to daisy-chain rake calls but they fail badly
76 + # with our setup, so run it manually.
77 + ${RUBY} test/run-test.rb || die "tests failed"
78 +}
79 +
80 +all_ruby_install() {
81 + all_fakegem_install
82 +
83 + insinto /usr/share/doc/${PF}
84 + doins -r samples
85 +}