commit:     0acc4a5087e754c5272f9f8307ac33009e9fb21d
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Tue Mar  6 06:21:13 2018 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Tue Mar  6 06:21:13 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0acc4a50

dev-ruby/ruby-gettext: add 3.2.9

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 dev-ruby/ruby-gettext/Manifest                  |  1 +
 dev-ruby/ruby-gettext/ruby-gettext-3.2.9.ebuild | 65 +++++++++++++++++++++++++
 2 files changed, 66 insertions(+)

diff --git a/dev-ruby/ruby-gettext/Manifest b/dev-ruby/ruby-gettext/Manifest
index 4a531d6f90e..e5da0217cf4 100644
--- a/dev-ruby/ruby-gettext/Manifest
+++ b/dev-ruby/ruby-gettext/Manifest
@@ -1,3 +1,4 @@
 DIST gettext-3.2.2.gem 283648 BLAKE2B 
d9095e11f3f92ac37f84aad9059e5740af07186caad963b6cbd6081329031122ed2acf402565b5e8bf7c6f51b18d045fab09e6d390effe2f0d7d66981f253efd
 SHA512 
c6806a4f2b9c8519cccdf7651b3482e5938015323648cb1b82acd0632d88ea5c7cdabd925eecb2d4e17d0d396126d4e2ebaac26241c3c7b4f61e187cd4b3133f
 DIST gettext-3.2.3.gem 283648 BLAKE2B 
b746edbc9effd191a2abcff90f699d7a460845104b76410fab20bfef3294afc51951918441f0912fcadca4f59d810ffde9d5ac16c3de7adde6e5f7508c558bb3
 SHA512 
a7e6ca4e54a81eba7bd148849823ea480526f6d377d818f89aad28fc4cf79eb7e01dbbbbded441cad143ac806c73241173a1437deddb165ce7f178a9367bc4c5
 DIST gettext-3.2.6.gem 284672 BLAKE2B 
d431abb3b81e0293eca4b8d3f50fb5840d030aa0c61e2f8f1144680d1e69de4404760f4a0d2b48afbc3a2ca9a6a2a943cd3cf49b9784a33bdde6b0136cbef015
 SHA512 
8d8a820e9d22aae93de69573b4312f7490d0f494bdd27d6b920c29b5100620297d0622ea6dd693e3f7b0b4e1ebfd867de5e7fcfc04633c211ad2f414d23bb36a
+DIST gettext-3.2.9.gem 285696 BLAKE2B 
a7bc40b2102f5b937d5f0e407dbaa23ead1da59eb9284c10a249c59548d0e2ad5fcd56b8855439893d2d31b57e0109bb6a9d5cc2d24075f5e360dc16b9291137
 SHA512 
21496c38cfc16a2b280f30bb94ff4560007eaa7f02c2341cb26aca2969a663c0863cdb650b4eadfd262d8585111dfb572e2ebc66a7a879045de50bf9da80a501

diff --git a/dev-ruby/ruby-gettext/ruby-gettext-3.2.9.ebuild 
b/dev-ruby/ruby-gettext/ruby-gettext-3.2.9.ebuild
new file mode 100644
index 00000000000..e751a423ee9
--- /dev/null
+++ b/dev-ruby/ruby-gettext/ruby-gettext-3.2.9.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_NAME="${PN/ruby-/}"
+RUBY_FAKEGEM_VERSION="${PV%_*}"
+
+RUBY_FAKEGEM_RECIPE_DOC="yard"
+RUBY_FAKEGEM_EXTRADOC="README.md doc/text/news.md"
+
+RUBY_FAKEGEM_TASK_TEST="none"
+
+RUBY_FAKEGEM_EXTRAINSTALL="locale po"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Native Language Support Library and Tools modeled after GNU 
gettext package"
+HOMEPAGE="https://ruby-gettext.github.io/";
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
+IUSE="doc test"
+SLOT="0"
+LICENSE="|| ( Ruby LGPL-3+ )"
+
+ruby_add_rdepend ">=dev-ruby/locale-2.0.5 >=dev-ruby/text-1.3.0"
+
+ruby_add_bdepend "doc? ( dev-ruby/yard )
+       dev-ruby/racc"
+ruby_add_bdepend "test? (
+       dev-ruby/test-unit:2
+       dev-ruby/test-unit-rr )"
+
+RDEPEND+=" sys-devel/gettext"
+DEPEND+=" sys-devel/gettext"
+
+all_ruby_prepare() {
+       # Fix broken racc invocation
+       sed -i -e '/command_line/ s/#{racc}/-S racc/' Rakefile || die
+
+       # Avoid bundler dependency
+       sed -i -e '/bundler/,/helper.install/ s:^:#:' \
+               -e 's/helper.gemspec/Gem::Specification.new/' Rakefile || die
+
+       # Avoid dependency on developer-specific tools.
+       sed -i -e '/notify/ s:^:#:' test/run-test.rb || die
+
+       # Avoid tests failing due to a missing test file.
+       #sed -i -e '/test_invalid_charset/,/end/ s:^:#:' test/test_mo.rb || die
+}
+
+each_ruby_test() {
+       # Upstream tries to daisy-chain rake calls but they fail badly
+       # with our setup, so run it manually.
+       ${RUBY} test/run-test.rb || die "tests failed"
+}
+
+all_ruby_install() {
+       all_fakegem_install
+
+       insinto /usr/share/doc/${PF}
+       doins -r samples
+}

Reply via email to