git: c3b8a41d7f61 - main - biology/gatk: Fix fetch

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 14 Jul 2024 16:32:55 UTC
The branch main has been updated by yuri:

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

commit c3b8a41d7f61fe03410f7b6604997985b8049726
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-07-14 16:32:16 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-07-14 16:32:42 +0000

    biology/gatk: Fix fetch
    
    Reported by:    fallout
---
 biology/gatk/Makefile | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/biology/gatk/Makefile b/biology/gatk/Makefile
index 8b3f6e3a7572..7c0a4a9e3019 100644
--- a/biology/gatk/Makefile
+++ b/biology/gatk/Makefile
@@ -54,6 +54,7 @@ WITH_LARGE_FILES_FETCH_DEPENDS=	git:devel/git \
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MWITH_LARGE_FILES}
+# fetch the main distfile including git-lsf files
 do-fetch:
 	@if [ "${FORCE_FETCH_ALL}" = "true" ] || ! [ -f "${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX}" ]; then \
 		${MKDIR} ${DISTDIR}/${DIST_SUBDIR} && \
@@ -72,6 +73,16 @@ do-fetch:
 		${TAR} czf ${DISTNAME}${EXTRACT_SUFX} --gid 0 --uid 0 --options gzip:!timestamp --no-recursion --null -T - && \
 		${RM} -r ${PORTNAME}-${DISTVERSION}; \
 	fi
+# fetch the deps distfile
+.  if (${DEV_UPDATE_MODE} == "no")
+	@if [ "${FORCE_FETCH_ALL}" = "true" ] || ! [ -f "${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-${DISTVERSION}-deps${EXTRACT_SUFX}" ]; then \
+		${ECHO} "==> Fetching the deps distfile for ${PORTNAME}" && \
+		${SETENV} \
+			${_DO_FETCH_ENV} ${_MASTER_SITES_ENV} \
+			dp_SITE_FLAVOR=MASTER \
+			${SH} ${SCRIPTSDIR}/do-fetch.sh ${DISTFILES:M*\:deps}; \
+	fi
+.  endif
 .endif
 
 .if (${DEV_UPDATE_MODE} == "yes")