From: Rick Farina Date: Wed, 6 Nov 2019 18:11:39 +0000 (-0500) Subject: dev-ruby/rjb: fix build on openjdk-11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f1eca8c7222e5b3e20e694402d2cc92674f76160;p=gentoo.git dev-ruby/rjb: fix build on openjdk-11 while not breaking it on icedtea-8 Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Rick Farina --- diff --git a/dev-ruby/rjb/rjb-1.6.1.ebuild b/dev-ruby/rjb/rjb-1.6.1.ebuild index b8cfe20bb7cf..0c68f9ccbae4 100644 --- a/dev-ruby/rjb/rjb-1.6.1.ebuild +++ b/dev-ruby/rjb/rjb-1.6.1.ebuild @@ -35,6 +35,9 @@ all_ruby_prepare() { # Avoid encoding tests since not all locales may be available. sed -i -e '/test_kjconv/,/^ end/ s:^:#:' test/test.rb || die + + # Fix build on openjdk-11 + sed -i -e 's#javah -classpath ../data/rjb jp.co.infoseek.hp.arton.rjb.RBridge#javac -h . -classpath ../data/rjb RBridge.java#g' ext/extconf.rb || die } each_ruby_prepare() {