diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-12-06 02:07:39 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-12-06 02:07:39 +0000 |
commit | d285f0ab4ab38d4ea1cd0757a465db5f06764e06 (patch) | |
tree | 1fec673dcd26669902404a2986868912c5b41860 /dev-ruby/ruby-gettext | |
parent | a6764d56b1c85c8272783500983011c143c72d80 (diff) |
gentoo auto-resync : 06:12:2024 - 02:07:38
Diffstat (limited to 'dev-ruby/ruby-gettext')
-rw-r--r-- | dev-ruby/ruby-gettext/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/ruby-gettext/ruby-gettext-3.5.0.ebuild | 71 |
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-ruby/ruby-gettext/Manifest b/dev-ruby/ruby-gettext/Manifest index 83c94ed47335..ae2fa39a3b7a 100644 --- a/dev-ruby/ruby-gettext/Manifest +++ b/dev-ruby/ruby-gettext/Manifest @@ -1,3 +1,5 @@ DIST gettext-3.4.9.gem 234496 BLAKE2B bc1fd26ae048a959df1291cbe6bc5ce4fe060dc66baff2e3a9030dfbbc937e6e2aef5586259cfb1ef0f6eb5e2924badd6db579f7d268ae4bb079d06248655e87 SHA512 756fc65210ccc88c06ed07da699e88aca865b0b3b2b2b92824d3e17062a1008d9d561f1572d0795478bfe7ad542e3aaf8c65ee2f80fed1ead202638bd32dc77a +DIST gettext-3.5.0.gem 234496 BLAKE2B 9e86fd351585b115e04bad485a056fa8341450fd705901bc8ed6ba8309e99cc2096a79a3f506f729fa1823007c806557609ae8653f3de1988b0bb88bb3dde832 SHA512 15f3683b710cf9240a6ecd2babf5d7f64ac3eb1461f29d4df3d9ad7afa07467fc81f261989bbc9a0bf73f28e79b626282432b1e9c11923a489d023383089266e EBUILD ruby-gettext-3.4.9.ebuild 1639 BLAKE2B c5e19238d3e35912263c248d030838213be6d6b165f78790c25622b16ff2b351ee0f89280d0e7f2d8878e03879039efca8a1aad1d3bc81c650824e5604b910c3 SHA512 ee05e00bf2898af1e278be33b696b9c7a9dba7f6b4370bdf54fcfd73caf9d93f47266459338094d9562080373c89fd6e53e18b7e42322332b88fbf034244792f +EBUILD ruby-gettext-3.5.0.ebuild 1646 BLAKE2B eed7a4e7641c1583574c518269129335fbe522a46ef8ca0cb7d14fa7cf1e627b6551e2faebdbedac3aa5df14c5d0d1752b5ce19b8deaca88fbce13dde0edb7a8 SHA512 b0948c57d98ec7a9494e437ce709031915bdfcf231b4e3c0e2a964270bc4c090cc2ef536f29df5e753d7cfa3a3444a297b2954b01121c303386ec80351d7064d MISC metadata.xml 330 BLAKE2B 240cd8ccd772b34535a5a8c79c30dbee969d061a6d70f388c89bcaac95a01ccb65be239f68314fb0f5aed655978f87be7eb34756633a7f42794077bb45e271e5 SHA512 8657b613372f01a686fe9861ac6285e79b1b90fc8d948f7631094f686a72a61df87df7dbeaabe41fda96a39cd5b013468532a494555e9cc787cf653c2dca1fbd diff --git a/dev-ruby/ruby-gettext/ruby-gettext-3.5.0.ebuild b/dev-ruby/ruby-gettext/ruby-gettext-3.5.0.ebuild new file mode 100644 index 000000000000..bbad73a28c11 --- /dev/null +++ b/dev-ruby/ruby-gettext/ruby-gettext-3.5.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32 ruby33" + +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" +LICENSE="|| ( GPL-2 Ruby-BSD LGPL-3+ )" +SLOT="0" +IUSE="doc test" + +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 +} |