diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-08-21 07:24:24 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-08-21 07:24:52 +0200 |
commit | 764ef2ae0750f08210e2fd2f7e8c1db8c56a88e2 (patch) | |
tree | 4a8e7ac1481e88382b6309ae7b1c1c298f44b9f6 /dev-ruby/ruby-gettext | |
parent | dev-ruby/reline: add 0.3.8 (diff) | |
download | gentoo-764ef2ae0750f08210e2fd2f7e8c1db8c56a88e2.tar.gz gentoo-764ef2ae0750f08210e2fd2f7e8c1db8c56a88e2.tar.bz2 gentoo-764ef2ae0750f08210e2fd2f7e8c1db8c56a88e2.zip |
dev-ruby/ruby-gettext: add 3.4.7
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.7.ebuild | 71 |
2 files changed, 72 insertions, 0 deletions
diff --git a/dev-ruby/ruby-gettext/Manifest b/dev-ruby/ruby-gettext/Manifest index 0fb79280de8c..41855333ccbc 100644 --- a/dev-ruby/ruby-gettext/Manifest +++ b/dev-ruby/ruby-gettext/Manifest @@ -1,3 +1,4 @@ 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 +DIST gettext-3.4.7.gem 233472 BLAKE2B d180bcddfb861e321cf6447a9a3868f71338984989ba9e525bd55fee6aed81ac6041f572f66133acfa054e7e680d2d5a14670775f251bc547d713c8995f4c9d4 SHA512 4f9d3a56ae9613fd4651f249dc6e0eea82366e898e963c8ca84484b32b9312bb20cf6c396bd48aedfc039db60191bf7804769c4924a9d89f1851aafd3d24ace2 diff --git a/dev-ruby/ruby-gettext/ruby-gettext-3.4.7.ebuild b/dev-ruby/ruby-gettext/ruby-gettext-3.4.7.ebuild new file mode 100644 index 000000000000..3b7d7223cfca --- /dev/null +++ b/dev-ruby/ruby-gettext/ruby-gettext-3.4.7.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="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 +} |