diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-07-12 06:24:48 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-07-12 06:24:48 +0200 |
commit | 5672046ecd851336a641eb3c8e8a1ac69e19cf86 (patch) | |
tree | eaef703af85ab47a3cadf2731f46b946bc63f6dc /dev-ruby/ruby-gettext | |
parent | dev-ruby/rspec-mocks: add 3.12.6 (diff) | |
download | gentoo-5672046ecd851336a641eb3c8e8a1ac69e19cf86.tar.gz gentoo-5672046ecd851336a641eb3c8e8a1ac69e19cf86.tar.bz2 gentoo-5672046ecd851336a641eb3c8e8a1ac69e19cf86.zip |
dev-ruby/ruby-gettext: add 3.4.6
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
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.4.6.ebuild | 71 |
2 files changed, 72 insertions, 0 deletions
diff --git a/dev-ruby/ruby-gettext/Manifest b/dev-ruby/ruby-gettext/Manifest index e7d3564bc5d6..0fb79280de8c 100644 --- a/dev-ruby/ruby-gettext/Manifest +++ b/dev-ruby/ruby-gettext/Manifest @@ -1,2 +1,3 @@ DIST gettext-3.4.3.gem 233472 BLAKE2B d1edc1e4a004412b21ca4aa9e0e1df2000626ffde42e81f092f3a19c3ce080ee4660e5cbcce6d3f9a77e30cccf5f942ef1fa7d12e8680f0a50d67f69ad3ac41a SHA512 144c7d0964660ef671494272138a29abc3b51de1a7d6f8ee920a73cefe05657eda77024c59009179f4880003bd45eeaae7a82ac57b387fb0b924bc0f6eb553ea DIST gettext-3.4.4.gem 232960 BLAKE2B 7822245f1efc63c3faccae299c84f671f0eb264776288cd4d60f9981988f4942fd3b3033fdcd58e03d2129f5ece3a579dbf3bdffb567c96d9affbabe7355613f SHA512 2321e13d9789dc059518c8ae0501bc26fe74fd0a24c9336c913a9ce8d2a2d77b0a7ece883f5c36e286144256077ecdbdacc84ffc37fb7753fe8bc589d473b00b +DIST gettext-3.4.6.gem 232960 BLAKE2B 108e89bd34e0a3341d4c09b7a444a2ba3a6c84e3f95ba22df4fd0ed5374bb7ad94131fc6ceb2407b16d9e7995383853b80101ab61319a87ee57147cc40ca3279 SHA512 1c98ef539509231aa7bdd7d725767576bebd7000b55599c2ac59bc915fc52aac7a4075575907893701322bd06bf7035dbcc7e262b39d93b5eeaa6f9a3511a20f diff --git a/dev-ruby/ruby-gettext/ruby-gettext-3.4.6.ebuild b/dev-ruby/ruby-gettext/ruby-gettext-3.4.6.ebuild new file mode 100644 index 000000000000..cc1a817109e7 --- /dev/null +++ b/dev-ruby/ruby-gettext/ruby-gettext-3.4.6.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 +} |