git: 076733808790 - main - biology/gatk: fix fetch with new do-fetch.sh

From: Mathieu Arnold <mat_at_FreeBSD.org>
Date: Sat, 19 Sep 2026 18:01:33 UTC
The branch main has been updated by mat:

URL: https://cgit.FreeBSD.org/ports/commit/?id=076733808790b12b301cb0df6120940f9fda148e

commit 076733808790b12b301cb0df6120940f9fda148e
Author:     Mathieu Arnold <mat@FreeBSD.org>
AuthorDate: 2026-09-19 17:47:37 +0000
Commit:     Mathieu Arnold <mat@FreeBSD.org>
CommitDate: 2026-09-19 18:00:21 +0000

    biology/gatk: fix fetch with new do-fetch.sh
---
 biology/gatk/Makefile | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/biology/gatk/Makefile b/biology/gatk/Makefile
index 274b154c20a2..ac9c6864c54b 100644
--- a/biology/gatk/Makefile
+++ b/biology/gatk/Makefile
@@ -83,11 +83,21 @@ do-fetch:
 # fetch the deps distfile
 .  if (${DEV_UPDATE_MODE} == "no")
 	@if [ "${FORCE_FETCH_ALL}" = "true" ] || ! [ -f "${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-${DISTVERSION}-deps${EXTRACT_SUFX}" ]; then \
+		${MKDIR} ${WRKDIR}; \
+		${RM} ${_MASTER_SITES_FILE} ${_DISTFILES_FILE}; \
+		for site in ${_MASTER_SITES_ENV}; do \
+			printf '%s\n' "$${site}" | sed -e 's/ /\\ /g' >> ${_MASTER_SITES_FILE}; \
+		done; \
+		for file in ${DISTFILES:M*\:deps}; do \
+			printf '%s\n' "$${file}" >> ${_DISTFILES_FILE}; \
+		done; \
 		${ECHO} "==> Fetching the deps distfile for ${PORTNAME}" && \
 		${SETENV} \
-			${_DO_FETCH_ENV} ${_MASTER_SITES_ENV} \
+			${_DO_FETCH_ENV} \
+			dp_SITES_FILE=${_MASTER_SITES_FILE} \
+			dp_FILES_FILE=${_DISTFILES_FILE} \
 			dp_SITE_FLAVOR=MASTER \
-			${SH} ${SCRIPTSDIR}/do-fetch.sh ${DISTFILES:M*\:deps}; \
+			${SH} ${SCRIPTSDIR}/do-fetch.sh; \
 	fi
 .  endif
 .endif