summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2015-10-15 07:35:03 +0200
committerHans de Graaff <graaff@gentoo.org>2015-10-17 07:47:43 +0200
commitc07ab6de3e51828b9678ef3e104f16b72be651f3 (patch)
tree95097eebaefabd7ad74a24c39a0e5ec128cf77a9 /dev-ruby/ruby-gettext
parentsys-libs/glibc: more upstream fixes (diff)
downloadgentoo-c07ab6de3e51828b9678ef3e104f16b72be651f3.tar.gz
gentoo-c07ab6de3e51828b9678ef3e104f16b72be651f3.tar.bz2
gentoo-c07ab6de3e51828b9678ef3e104f16b72be651f3.zip
dev-ruby/ruby-gettext: add 3.1.7
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-ruby/ruby-gettext')
-rw-r--r--dev-ruby/ruby-gettext/Manifest1
-rw-r--r--dev-ruby/ruby-gettext/ruby-gettext-3.1.7.ebuild66
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-ruby/ruby-gettext/Manifest b/dev-ruby/ruby-gettext/Manifest
index 846cce7c49a2..be5d89c5d3fd 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.1.6.gem 282112 SHA256 b3b0d6cd779e3f99b3bd541300fd5ae8f5425f90d0314209b6eb70a7772c8a81 SHA512 8bf0f8203eef8b181400dfca8c67376b6dd64c7fc00177c20ced840791883c3988f12eefe55bb6b487473d8875f86ea8143feb15e814c83e29dcd0133dc2f73c WHIRLPOOL 5976fba52e84da77aa92aa61e498537ae8ee6294cdd64a0b18257b9df52e803e7ad3233a3964bdac9048cc4e78fc7a372b31cdbc117b2e164a84385419cc0f57
+DIST gettext-3.1.7.gem 283136 SHA256 383ab62cfef66247e6907fb735aac53048a79e0bea93a6c9aa448c3aa98ee9c1 SHA512 e7cd1674b0e40ac8593d398a874355216544cba9e5aa082dab4aecd8ab8ee5a30ba3003bda4f097db2ac10bd3861ff8fa6a0c389f68b4467f22d90b88120cad5 WHIRLPOOL 8945141b1d9534b2bcc177f3711bfd4b9e24560e4f704f6c3d7640aef207547e000287a25f6f6e895abf75702af1d26b9af424a0183763a2a62b3a3726c56c2f
diff --git a/dev-ruby/ruby-gettext/ruby-gettext-3.1.7.ebuild b/dev-ruby/ruby-gettext/ruby-gettext-3.1.7.ebuild
new file mode 100644
index 000000000000..29b49b48ac68
--- /dev/null
+++ b/dev-ruby/ruby-gettext/ruby-gettext-3.1.7.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+USE_RUBY="ruby19 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="Ruby GetText Package is 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
+}