git: 88e8cfd6a8cb - main - databases/sqldeveloper: limit Java version to 11 and 17

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Sat, 29 Jun 2024 22:51:17 UTC
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=88e8cfd6a8cbf50bde8564ee4fa047816c978b7a

commit 88e8cfd6a8cbf50bde8564ee4fa047816c978b7a
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-06-29 22:46:06 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-06-29 22:49:54 +0000

    databases/sqldeveloper: limit Java version to 11 and 17
    
    The Java versions supported by this port are in range from 11 to 17. The default
    is 11. Add DEFAULT_VERSIONS+=java=N to /etc/make.conf if you want to use Java
    "N", but all Java ports will also be affected. Or add SQLDEVELOPER_JAVA_VERSION=N
    to /etc/make.conf if you want to override the Java version for this port only.
    
    (Add this message to pkg-message)
---
 databases/sqldeveloper/Makefile    | 4 ++--
 databases/sqldeveloper/pkg-message | 5 +++++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/databases/sqldeveloper/Makefile b/databases/sqldeveloper/Makefile
index 2ed97edb0885..4ae624a3581b 100644
--- a/databases/sqldeveloper/Makefile
+++ b/databases/sqldeveloper/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	sqldeveloper
 DISTVERSION=	23.1.1.345.2114
 DISTVERSIONSUFFIX=	-no-jre
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	databases java
 # https://www.oracle.com/tools/downloads/sqldev-downloads.html
 MASTER_SITES=
@@ -20,7 +20,7 @@ RUN_DEPENDS=	openjfx14>=0:java/openjfx14 \
 
 USES=		gnome zip
 USE_JAVA=	yes
-JAVA_VERSION=	11+
+JAVA_VERSION=	${SQLDEVELOPER_JAVA_VERSION:U11 17}
 
 DATADIR=	${JAVASHAREDIR}/${PORTNAME}
 NO_ARCH=	yes
diff --git a/databases/sqldeveloper/pkg-message b/databases/sqldeveloper/pkg-message
index 06a98b902840..2c132cb17b41 100644
--- a/databases/sqldeveloper/pkg-message
+++ b/databases/sqldeveloper/pkg-message
@@ -20,6 +20,11 @@ Note for MySQL users:
     menu, select Database -> Third Party JDBC Drivers and add the proper jar.
     Do not install 5.1 version of mysql jdbc connector; see
     https://docs.oracle.com/en/database/oracle/sql-developer/18.4/rptig/installing-sql-developer.html#GUID-3F68CF20-D03D-431C-A9A2-0EB971F06448
+
+The Java versions supported by this port are in range from 11 to 17. The default
+is 11. Add DEFAULT_VERSIONS+=java=N to /etc/make.conf if you want to use Java
+"N", but all Java ports will also be affected. Or add SQLDEVELOPER_JAVA_VERSION=N
+to /etc/make.conf if you want to override the Java version for this port only.
 EOM
 }
 ]