git: aff412a94985 - main - biology/sra-tools: Unbreak with extra JDK present
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 11 Jan 2026 20:40:12 UTC
The branch main has been updated by jwb:
URL: https://cgit.FreeBSD.org/ports/commit/?id=aff412a949854743db3ffc64a9d8e2ac3bdc885d
commit aff412a949854743db3ffc64a9d8e2ac3bdc885d
Author: Jason W. Bacon <jwb@FreeBSD.org>
AuthorDate: 2026-01-11 20:31:18 +0000
Commit: Jason W. Bacon <jwb@FreeBSD.org>
CommitDate: 2026-01-11 20:40:11 +0000
biology/sra-tools: Unbreak with extra JDK present
Cmake find_package(Java) uses the latest version found, and plist
varies depending on the version used. Set JAVE_HOME to limit
cmake's search to the version specified in the port. This is the
only way to control find_package() for Java versions.
---
biology/sra-tools/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/biology/sra-tools/Makefile b/biology/sra-tools/Makefile
index 4be7668701d9..e928c77695a1 100644
--- a/biology/sra-tools/Makefile
+++ b/biology/sra-tools/Makefile
@@ -1,6 +1,6 @@
PORTNAME= sra-tools
DISTVERSION= 3.3.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= biology java
MAINTAINER= jwb@FreeBSD.org
@@ -36,6 +36,8 @@ GH_ACCOUNT= ncbi
GH_TUPLE+= ncbi:ncbi-vdb:${DISTVERSION}:vdb/ncbi-vdb
CMAKE_ARGS+= -DVDB_LIBDIR:STRING=${WRKSRC}/ncbi-vdb/build/lib
+# Prevent cmake from using a later Java version, if present
+CMAKE_ARGS+= -DJAVA_HOME:PATH=${JAVA_HOME}
PLIST_SUB= PORTVERSION=${PORTVERSION}