diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-04-27 13:46:23 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-04-27 13:53:45 +0200 |
commit | d68fb1f00ba76582afffc9c805fd054978606a6e (patch) | |
tree | 9d453a96a2abae7c5eccc2faba890085dae35bf9 /dev-ruby/ruby-gettext | |
parent | dev-ruby/parser: add 2.3.1.0 (diff) | |
download | gentoo-d68fb1f00ba76582afffc9c805fd054978606a6e.tar.gz gentoo-d68fb1f00ba76582afffc9c805fd054978606a6e.tar.bz2 gentoo-d68fb1f00ba76582afffc9c805fd054978606a6e.zip |
dev-ruby/ruby-gettext: add 3.2.2
Package-Manager: portage-2.2.26
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.2.ebuild | 66 |
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-ruby/ruby-gettext/Manifest b/dev-ruby/ruby-gettext/Manifest index 1e471ec47277..61c3f9917af3 100644 --- a/dev-ruby/ruby-gettext/Manifest +++ b/dev-ruby/ruby-gettext/Manifest @@ -2,3 +2,4 @@ DIST gettext-3.1.1.gem 221184 SHA256 323a1b07db0863e032436f6935a0e63a5ab7475ac8c DIST gettext-3.1.2.gem 224768 SHA256 1ed987d0a46448cfc76617b486ad9a991e0d48501855e49eacb781aa531df6eb SHA512 14fbccf1d853bd58ae3ecbda3188294147404fb8473a54caeac505b93ffa25f96098786bd1171449aa1f0f74c4116e93b5d2f7c0705930dd014b210720667479 WHIRLPOOL 5a31bf87b38370276bf4c61886025f8721a7cb297012fbe6d1947abf82d1d35d779838506f5e56adbdda090a0ae20d4e5c74b9c4a08a4c782998d78b3a7c1768 DIST gettext-3.1.9.gem 283136 SHA256 68901981aa98cfebb1b1d65c800aafba73ad82b82047c060b51ab52470a25f61 SHA512 b06da799bde3d2d704283387d5bd79bb6a88cfd74200d7a566408b5c6078e23fb10aad72135feeece05b77b76f90a282ead7482ff0436d3615a13729aa7945a5 WHIRLPOOL 42602b14eaf7c9a37f933695314b9f317d869a6168b072ae278204c7d79c0f2c0277acfc9d47902ab8bb7c1118979fe3967eb029413eb2f3519501e03776fb97 DIST gettext-3.2.1.gem 283136 SHA256 a2ab0c7dc294cc7b5b0b9a589d5b392caffc17852939c47b3ae4d21499843bd5 SHA512 8adf2e09ca2973242e622e34e6b581ac81d51b097762f91bb7ac8f909c34e42d3b2fb5db1dd3e70383f90da1102f4edb86e8d62076095c81e2e13cea3b559d11 WHIRLPOOL f85229f156cd60cacbe733158baf017e6eb0bfc56ec8b37a25d4f332a5405969b61198838954296820ddda885435b2da8b7f68fe2c5d8ed7238c5534995803ab +DIST gettext-3.2.2.gem 283648 SHA256 9d250bb79273efb4a268977f219d2daca05cdc7473eff40288b8ab8ddd0f51b4 SHA512 c6806a4f2b9c8519cccdf7651b3482e5938015323648cb1b82acd0632d88ea5c7cdabd925eecb2d4e17d0d396126d4e2ebaac26241c3c7b4f61e187cd4b3133f WHIRLPOOL c83776908d16e0f47010be5ba830a0c3b13f4b51055f6f14b62572e70b08d72932ef4d1fdea468ae47cf67ab5b031cd29e3f3c03b164fdcc95979b0a6c4e654a diff --git a/dev-ruby/ruby-gettext/ruby-gettext-3.2.2.ebuild b/dev-ruby/ruby-gettext/ruby-gettext-3.2.2.ebuild new file mode 100644 index 000000000000..fec74e9f81ff --- /dev/null +++ b/dev-ruby/ruby-gettext/ruby-gettext-3.2.2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +USE_RUBY="ruby20 ruby21 ruby22" + +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="http://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 +} |