git: 066663be20a8 - main - java/openjfx14: Fix build with ruby 3.4

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Mon, 26 Jan 2026 17:36:03 UTC
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=066663be20a8d55bde6ec67c54dbdaeafcf04fea

commit 066663be20a8d55bde6ec67c54dbdaeafcf04fea
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2026-01-26 17:33:23 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-01-26 17:35:46 +0000

    java/openjfx14: Fix build with ruby 3.4
    
    /usr/local/lib/ruby/3.4/did_you_mean/core_ext/name_error.rb:11: warning: getoptlong is not part of the default gems starting from Ruby 3.4.0. Install getoptlong from RubyGems.
    <internal:/usr/local/lib/ruby/3.4/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require': cannot load such file -- getoptlong (LoadError)
    
    PR:     292489
---
 java/openjfx14/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/java/openjfx14/Makefile b/java/openjfx14/Makefile
index 52daeac5b400..6b85d59a2ec9 100644
--- a/java/openjfx14/Makefile
+++ b/java/openjfx14/Makefile
@@ -28,7 +28,8 @@ ONLY_FOR_ARCHS=	aarch64 amd64 i386 powerpc64 powerpc64le
 BUILD_DEPENDS=	zip:archivers/zip \
 		apache-ant>0:devel/apache-ant \
 		gradle62>=6.2:devel/gradle62 \
-		${JAVALIBDIR}/junit.jar:java/junit
+		${JAVALIBDIR}/junit.jar:java/junit \
+		rubygem-getoptlong>0:devel/rubygem-getoptlong
 LIB_DEPENDS=	libasound.so:audio/alsa-lib \
 		libfontconfig.so:x11-fonts/fontconfig \
 		libfreetype.so:print/freetype2