aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2021-04-16 21:17:36 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2021-04-16 21:19:20 +0000
commitb77a05bb44c206268971d14beb92fb9cf1d28842 (patch)
treebe7971e59b8c00720198e819941420bf0dc92e67
parent05c1c23d54360b32dfb70cbbe01102d583caa8e1 (diff)
downloadports-b77a05bb44c206268971d14beb92fb9cf1d28842.tar.gz
ports-b77a05bb44c206268971d14beb92fb9cf1d28842.zip
Mk/Uses/go.mk: Allow ports to have additional distfiles
Some ports need to perform extra build steps for which they need additional distfiles. This commit makes go.mk to preserve MASTER_SITES,DISTFILES,EXTRACT_ONLY set by port's Makefile. PR: 255085 Approved by: dmgk (maintainer)
-rw-r--r--Mk/Uses/go.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mk/Uses/go.mk b/Mk/Uses/go.mk
index 9248216f4a26..9b1e5454bbf5 100644
--- a/Mk/Uses/go.mk
+++ b/Mk/Uses/go.mk
@@ -124,9 +124,9 @@ GO_MODVERSION= ${GO_MODULE:C/^([^@]*)(@([^@]*)?)/\2/:M@*:S/^@//:S/^$/${DISTVERSI
GO_MODFILE= ${GO_MODVERSION}.mod
GO_DISTFILE= ${GO_MODVERSION}.zip
DIST_SUBDIR= go/${PKGORIGIN:S,/,_,g}/${DISTNAME}
-MASTER_SITES= ${GO_GOPROXY}/${GO_MODNAME:C/([A-Z])/!\1/g:tl}/@v/
-DISTFILES= ${GO_MODFILE} ${GO_DISTFILE}
-EXTRACT_ONLY= ${GO_DISTFILE}
+MASTER_SITES+= ${GO_GOPROXY}/${GO_MODNAME:C/([A-Z])/!\1/g:tl}/@v/
+DISTFILES+= ${GO_MODFILE} ${GO_DISTFILE}
+EXTRACT_ONLY+= ${GO_DISTFILE}
WRKSRC= ${WRKDIR}/${GO_MODNAME}@${GO_MODVERSION}
FETCH_DEPENDS+= ${GO_CMD}:${GO_PORT} \
ca_root_nss>0:security/ca_root_nss