diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-12-24 07:43:15 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-12-24 07:43:15 +0100 |
commit | 6579172c751ff2d36baf9d7752dd3126916aca73 (patch) | |
tree | e15be37e16b3566017894ce9194766ae14622f04 /dev-ruby | |
parent | dev-ruby/rdoc: add 6.0.1 (diff) | |
download | gentoo-6579172c751ff2d36baf9d7752dd3126916aca73.tar.gz gentoo-6579172c751ff2d36baf9d7752dd3126916aca73.tar.bz2 gentoo-6579172c751ff2d36baf9d7752dd3126916aca73.zip |
dev-ruby/ruby-gettext: add 3.2.6
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/ruby-gettext/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/ruby-gettext/ruby-gettext-3.2.6.ebuild | 65 |
2 files changed, 66 insertions, 0 deletions
diff --git a/dev-ruby/ruby-gettext/Manifest b/dev-ruby/ruby-gettext/Manifest index 5ed9be67fa2d..47ba6880e1e4 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.4.gem 284160 BLAKE2B dcd4154686fc4bc596d5433a2d1f3c74eff136dcd2945b65caea495541b5d18bd4a77c7ceafa27c4d5c04b40d11b807941c504f07293bdbb16c473003cded72c SHA512 53613d29fbd68866a66c912428f87e8191682838f2ea9c218972633cc075a19052a7ed1f7e02c5818f2b600b2e0296c4efe832fd854557bfd0afb746cfbfa2c7 +DIST gettext-3.2.6.gem 284672 BLAKE2B d431abb3b81e0293eca4b8d3f50fb5840d030aa0c61e2f8f1144680d1e69de4404760f4a0d2b48afbc3a2ca9a6a2a943cd3cf49b9784a33bdde6b0136cbef015 SHA512 8d8a820e9d22aae93de69573b4312f7490d0f494bdd27d6b920c29b5100620297d0622ea6dd693e3f7b0b4e1ebfd867de5e7fcfc04633c211ad2f414d23bb36a diff --git a/dev-ruby/ruby-gettext/ruby-gettext-3.2.6.ebuild b/dev-ruby/ruby-gettext/ruby-gettext-3.2.6.ebuild new file mode 100644 index 000000000000..50931eb376e1 --- /dev/null +++ b/dev-ruby/ruby-gettext/ruby-gettext-3.2.6.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2017 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 +} |