diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-06-24 08:20:50 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-06-24 08:21:18 +0200 |
commit | 808f08f55d54d20f601c0d07c89d4b5b53f48fbd (patch) | |
tree | 75a7bce6c87666e9a7d63d2dd6eccf0dce43b2a0 /dev-ruby/ruby-gettext | |
parent | dev-ruby/ruby-elf: add ruby23, ruby24 (diff) | |
download | gentoo-808f08f55d54d20f601c0d07c89d4b5b53f48fbd.tar.gz gentoo-808f08f55d54d20f601c0d07c89d4b5b53f48fbd.tar.bz2 gentoo-808f08f55d54d20f601c0d07c89d4b5b53f48fbd.zip |
dev-ruby/ruby-gettext: add 3.2.3
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'dev-ruby/ruby-gettext')
-rw-r--r-- | dev-ruby/ruby-gettext/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/ruby-gettext/ruby-gettext-3.2.3.ebuild | 65 |
2 files changed, 66 insertions, 0 deletions
diff --git a/dev-ruby/ruby-gettext/Manifest b/dev-ruby/ruby-gettext/Manifest index 7d0861a718a7..f9bbe3aa4944 100644 --- a/dev-ruby/ruby-gettext/Manifest +++ b/dev-ruby/ruby-gettext/Manifest @@ -1,3 +1,4 @@ DIST gettext-3.1.1.gem 221184 SHA256 323a1b07db0863e032436f6935a0e63a5ab7475ac8c387d2632065ee7bafc12a SHA512 b59462fd5c75aa64c1671fd54248ff86325be9aa53df2b4e720e663ae04d40febe83205c6ec75f6200dcf75abfdefe23db1effe838dc1149154457acc2fadc05 WHIRLPOOL 445999cff5241654252073b027388b058f272ffbaaa7d844208908996275cc22ed15c7055bd99a89977737192e60af84e0539bd6461b2da748bf97d41d5744f3 DIST gettext-3.1.2.gem 224768 SHA256 1ed987d0a46448cfc76617b486ad9a991e0d48501855e49eacb781aa531df6eb SHA512 14fbccf1d853bd58ae3ecbda3188294147404fb8473a54caeac505b93ffa25f96098786bd1171449aa1f0f74c4116e93b5d2f7c0705930dd014b210720667479 WHIRLPOOL 5a31bf87b38370276bf4c61886025f8721a7cb297012fbe6d1947abf82d1d35d779838506f5e56adbdda090a0ae20d4e5c74b9c4a08a4c782998d78b3a7c1768 DIST gettext-3.2.2.gem 283648 SHA256 9d250bb79273efb4a268977f219d2daca05cdc7473eff40288b8ab8ddd0f51b4 SHA512 c6806a4f2b9c8519cccdf7651b3482e5938015323648cb1b82acd0632d88ea5c7cdabd925eecb2d4e17d0d396126d4e2ebaac26241c3c7b4f61e187cd4b3133f WHIRLPOOL c83776908d16e0f47010be5ba830a0c3b13f4b51055f6f14b62572e70b08d72932ef4d1fdea468ae47cf67ab5b031cd29e3f3c03b164fdcc95979b0a6c4e654a +DIST gettext-3.2.3.gem 283648 SHA256 85e161313b4193884af5aa25472db969247e876bb0b82ddab2a4d59ba305f938 SHA512 a7e6ca4e54a81eba7bd148849823ea480526f6d377d818f89aad28fc4cf79eb7e01dbbbbded441cad143ac806c73241173a1437deddb165ce7f178a9367bc4c5 WHIRLPOOL 07c20cc9cc2791317de58dc122884b2328fca0961abc9b9e5a58435eccd206d6fd669cf671472e1973e97298f66283299043b42fca73083aef858bc9c676da67 diff --git a/dev-ruby/ruby-gettext/ruby-gettext-3.2.3.ebuild b/dev-ruby/ruby-gettext/ruby-gettext-3.2.3.ebuild new file mode 100644 index 000000000000..4f3abce56119 --- /dev/null +++ b/dev-ruby/ruby-gettext/ruby-gettext-3.2.3.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="ruby21 ruby22 ruby23" + +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 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~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 +} |