git: 26fe35b94d63 - main - devel/jna: no RUN_DEPENDS on openjdk8

From: Ronald Klop <ronald_at_FreeBSD.org>
Date: Thu, 10 Oct 2024 06:53:53 UTC
The branch main has been updated by ronald:

URL: https://cgit.FreeBSD.org/ports/commit/?id=26fe35b94d634ecbb66855c1d864d3e75b53fd7e

commit 26fe35b94d634ecbb66855c1d864d3e75b53fd7e
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2024-09-27 12:36:59 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2024-10-10 06:53:26 +0000

    devel/jna: no RUN_DEPENDS on openjdk8
    
    As this is a library, the end product will decide what JDK is used.
    No unnecessary install of an extra JDK.
    
    + pet portlint:
    FATAL: PLIST_FILES: files cannot contain %%FOO%% variables.  Use make variables and logic instead
    
    PR:     262830
    Approved by:    maintainer timeout
---
 devel/jna/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/devel/jna/Makefile b/devel/jna/Makefile
index 93aeb74571d0..280f47018dbf 100644
--- a/devel/jna/Makefile
+++ b/devel/jna/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	jna
 PORTVERSION=	5.15.0
+PORTREVISION=	1
 CATEGORIES=	devel java
 
 MAINTAINER=	ports@markdixon.name
@@ -24,6 +25,7 @@ GH_ACCOUNT=	java-native-access
 GH_TAGNAME=	0a33062e1971962ca6b283c397ed1de5cc053d33
 USE_JAVA=	yes
 JAVA_VERSION=	8+
+JAVA_BUILD=	yes # prevent JAVA_RUN via bsd.java.mk
 USE_XORG=	x11 xt
 MAKE_ARGS=	-DCC="${CC}" \
 		-DLD="${LD}"
@@ -31,8 +33,8 @@ MAKE_ENV=	ANT_OPTS="-Drelease -DARCH=${ANT_ARCH}"
 ALL_TARGET=	native jar
 TEST_TARGET=	test
 
-PLIST_FILES=	%%JAVAJARDIR%%/jna-platform.jar \
-		%%JAVAJARDIR%%/jna.jar
+PLIST_FILES=	${JAVAJARDIR}/jna-platform.jar \
+		${JAVAJARDIR}/jna.jar
 PORTDOCS=	javadoc platform-${PORTVERSION}-javadoc.jar
 
 OPTIONS_DEFINE=	DOCS