Skip to content

Commit

Permalink
Mk/Uses/go.mk: Allow ports to have additional distfiles
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
yurivict committed Apr 16, 2021
1 parent 05c1c23 commit b77a05b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Mk/Uses/go.mk
Expand Up @@ -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
Expand Down

0 comments on commit b77a05b

Please sign in to comment.