summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-05-25 06:47:11 +0200
committerHans de Graaff <graaff@gentoo.org>2022-05-25 06:49:20 +0200
commitee7a952a72d7b297e2c648bb2c68afbe90cba588 (patch)
treeacfdbaa1158379dd4ad1ae960f7ee6838f08d1d7 /dev-ruby/ruby-gettext
parentdev-lang/elixir: Stabilize 1.13.3 x86, #847262 (diff)
downloadgentoo-ee7a952a72d7b297e2c648bb2c68afbe90cba588.tar.gz
gentoo-ee7a952a72d7b297e2c648bb2c68afbe90cba588.tar.bz2
gentoo-ee7a952a72d7b297e2c648bb2c68afbe90cba588.zip
dev-ruby/ruby-gettext: add 3.4.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
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.4.3.ebuild66
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-ruby/ruby-gettext/Manifest b/dev-ruby/ruby-gettext/Manifest
index 403376185deb..72725565958b 100644
--- a/dev-ruby/ruby-gettext/Manifest
+++ b/dev-ruby/ruby-gettext/Manifest
@@ -1,3 +1,4 @@
DIST gettext-3.3.5.gem 290816 BLAKE2B 74434c3feaedc16a17ee530669dacbc4b32ae0be95eb903ce89131619e862e1c823351653ce3c5f95f0882c183e3b2fe87b423a245aa2d8803688ce7e6afb5f7 SHA512 6777b96dd73b3d454c0a14a40d2ac0eac52894fa58067ba9ec976627c96efc98b294b1498bed965d0426bcaa1b371dcde5745101e05e21e408397b4e8d31894b
DIST gettext-3.3.7.gem 292352 BLAKE2B 76232148ec89720553e7f260c7222b8c5f9eccf0dd0b0b3afa776d9fe6dc6205b21f7853fd1a1edb6e28208ebbd56e327d160af179a4b7c7aaab12965243b806 SHA512 6e7906d68b3e834e1a9d69cea26a61ffed07abd035c9a8ffc3456bc2fdcb9495700c2aaa4d099cf75f88dc6916899510208012e02d1d4f15de3d5148251b4233
DIST gettext-3.4.1.gem 231936 BLAKE2B c225a3b0239f01fade9406d4e7704905971369bb37cfc29a5aa3c1bdd60e3b71057b2f7f736cfc3dde60709efcd935a609917384a324178badd760f8e40dfa01 SHA512 c4c88aa9b1d81772dce533bcb6a24c2bcde81f15e2f3947e491c7e391099f23c1ac27b6a25fa012f9f7b01c16711446adaf0c014f46d55acc73bc4a7a3317af9
+DIST gettext-3.4.3.gem 233472 BLAKE2B d1edc1e4a004412b21ca4aa9e0e1df2000626ffde42e81f092f3a19c3ce080ee4660e5cbcce6d3f9a77e30cccf5f942ef1fa7d12e8680f0a50d67f69ad3ac41a SHA512 144c7d0964660ef671494272138a29abc3b51de1a7d6f8ee920a73cefe05657eda77024c59009179f4880003bd45eeaae7a82ac57b387fb0b924bc0f6eb553ea
diff --git a/dev-ruby/ruby-gettext/ruby-gettext-3.4.3.ebuild b/dev-ruby/ruby-gettext/ruby-gettext-3.4.3.ebuild
new file mode 100644
index 000000000000..bbf0b8f99da3
--- /dev/null
+++ b/dev-ruby/ruby-gettext/ruby-gettext-3.4.3.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby26 ruby27 ruby30"
+
+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 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="doc test"
+SLOT="0"
+LICENSE="|| ( Ruby LGPL-3+ )"
+
+ruby_add_rdepend "
+ dev-ruby/erubi
+ >=dev-ruby/locale-2.0.5
+ dev-ruby/prime
+ >=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
+}
+
+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
+
+ dodoc -r samples
+}