summaryrefslogtreecommitdiff
path: root/dev-ruby/ruby-gettext
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-06-15 13:38:09 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-06-15 13:38:09 +0100
commitdb70871b2044b9bfde346d6f4027dafb0a013c4c (patch)
tree34548aee54e5458d3754bd8c8f987acdb5ee444c /dev-ruby/ruby-gettext
parent1c382dc5dbc52576ac2300fee0498af8af44e7b4 (diff)
gentoo auto-resync : 15:06:2023 - 13:38:09
Diffstat (limited to 'dev-ruby/ruby-gettext')
-rw-r--r--dev-ruby/ruby-gettext/Manifest2
-rw-r--r--dev-ruby/ruby-gettext/ruby-gettext-3.4.4.ebuild71
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-ruby/ruby-gettext/Manifest b/dev-ruby/ruby-gettext/Manifest
index db145d85d591..374a1243e36e 100644
--- a/dev-ruby/ruby-gettext/Manifest
+++ b/dev-ruby/ruby-gettext/Manifest
@@ -1,3 +1,5 @@
DIST gettext-3.4.3.gem 233472 BLAKE2B d1edc1e4a004412b21ca4aa9e0e1df2000626ffde42e81f092f3a19c3ce080ee4660e5cbcce6d3f9a77e30cccf5f942ef1fa7d12e8680f0a50d67f69ad3ac41a SHA512 144c7d0964660ef671494272138a29abc3b51de1a7d6f8ee920a73cefe05657eda77024c59009179f4880003bd45eeaae7a82ac57b387fb0b924bc0f6eb553ea
+DIST gettext-3.4.4.gem 232960 BLAKE2B 7822245f1efc63c3faccae299c84f671f0eb264776288cd4d60f9981988f4942fd3b3033fdcd58e03d2129f5ece3a579dbf3bdffb567c96d9affbabe7355613f SHA512 2321e13d9789dc059518c8ae0501bc26fe74fd0a24c9336c913a9ce8d2a2d77b0a7ece883f5c36e286144256077ecdbdacc84ffc37fb7753fe8bc589d473b00b
EBUILD ruby-gettext-3.4.3.ebuild 1631 BLAKE2B c625268980dcdabbee249ba8ea77ab82ab01e7d166b63233792f6e72f7a13f04c10a622ccf78472373c535d9380b74d0cf57875e0cb94d758bb039afefe0fa1c SHA512 d82d5caab3655f298b1e6199b9952dfa54fdc75746079b03cb412acc7f4d8a7d21ef8751f7e1c4c513c0c9efd073fbe22fb54e5f3e82fe11dd3e4bdf53d7913d
+EBUILD ruby-gettext-3.4.4.ebuild 1646 BLAKE2B 7339ff35129277c74607535f429605bc85babd95626766c53acae4bafa913d729948bef30c0ff85acd865f4ebb5830dc71a2cfed688ac69ce6412cc6c804809f SHA512 a5821ecb54c482fb3febedbab9c81c0379aa611e1b8afabbfdcb268d368534bfe831829847cfc857d69f431fc7aae71449a633b3ec9ec1905cb29d624715f0cc
MISC metadata.xml 330 BLAKE2B 240cd8ccd772b34535a5a8c79c30dbee969d061a6d70f388c89bcaac95a01ccb65be239f68314fb0f5aed655978f87be7eb34756633a7f42794077bb45e271e5 SHA512 8657b613372f01a686fe9861ac6285e79b1b90fc8d948f7631094f686a72a61df87df7dbeaabe41fda96a39cd5b013468532a494555e9cc787cf653c2dca1fbd
diff --git a/dev-ruby/ruby-gettext/ruby-gettext-3.4.4.ebuild b/dev-ruby/ruby-gettext/ruby-gettext-3.4.4.ebuild
new file mode 100644
index 000000000000..cc1a817109e7
--- /dev/null
+++ b/dev-ruby/ruby-gettext/ruby-gettext-3.4.4.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby30 ruby31 ruby32"
+
+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="|| ( GPL-2 Ruby-BSD LGPL-3+ )"
+
+ruby_add_rdepend "
+ dev-ruby/erubi
+ >=dev-ruby/locale-2.0.5
+ dev-ruby/prime
+ dev-ruby/racc
+ >=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() {
+ # Borrowed from Fedora
+ local -x LANG=C.UTF-8
+ local -x LANGUAGE=ja_JP.utf8
+
+ # 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
+}