git: 3b55e9f6ba30 - main - misc/freeguide: allow building with any jdk

From: Ronald Klop <ronald_at_FreeBSD.org>
Date: Thu, 11 Dec 2025 22:01:05 UTC
The branch main has been updated by ronald:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3b55e9f6ba307431f5c7f94b915a72aff6364db5

commit 3b55e9f6ba307431f5c7f94b915a72aff6364db5
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-11 21:59:17 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-11 22:00:50 +0000

    misc/freeguide: allow building with any jdk
    
    tested with openjdk21
    
    PR:     272855
    Approved-by:    no maintainer
---
 misc/freeguide/Makefile              |  1 -
 misc/freeguide/files/patch-build.xml | 20 +++++++++++++++++++-
 2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/misc/freeguide/Makefile b/misc/freeguide/Makefile
index 91a474975e8f..fe669e970f78 100644
--- a/misc/freeguide/Makefile
+++ b/misc/freeguide/Makefile
@@ -14,7 +14,6 @@ LICENSE_FILE=	${WRKSRC}/doc/COPYING
 RUN_DEPENDS=	tv_cat:textproc/p5-xmltv
 
 USES=		java:ant,run
-JAVA_VERSION=	8
 
 NO_ARCH=	yes
 
diff --git a/misc/freeguide/files/patch-build.xml b/misc/freeguide/files/patch-build.xml
index 68f88b8961fe..633c29a67ae3 100644
--- a/misc/freeguide/files/patch-build.xml
+++ b/misc/freeguide/files/patch-build.xml
@@ -1,6 +1,24 @@
 --- build.xml.orig	2014-10-22 19:25:23 UTC
 +++ build.xml
-@@ -200,8 +200,8 @@
+@@ -62,8 +62,6 @@
+             description="Update version numbers etc. in source code.">
+         <mkdir dir="${bin}"/>
+         <javac
+-            source="1.5"
+-            target="1.5"
+             destdir="${bin}">
+             <src path="${src}/freeguide/build"/>
+             <src path="${src}/freeguide/common/base"/>
+@@ -80,8 +78,6 @@
+         <javac srcdir="${src}"
+             destdir="${bin}"
+             deprecation="on"
+-            source="1.5"
+-            target="1.5"
+             debug="yes"
+             encoding="UTF-8">
+             <!--compilerarg value="-Xlint:unchecked"/-->
+@@ -200,8 +196,8 @@
          <mkdir dir="${install_share_dir}/applications" />
          <copy file="${install}/linux/freeguide.desktop" todir="${install_share_dir}/applications/" />