svn commit: r504942 - head/Mk/Uses

Tobias Kortkamp tobik at FreeBSD.org
Sun Jun 23 11:50:43 UTC 2019


Author: tobik
Date: Sun Jun 23 11:50:41 2019
New Revision: 504942
URL: https://svnweb.freebsd.org/changeset/ports/504942

Log:
  Mk/Uses/go.mk: Allow overriding the Go port
  
  This is intended to be used for regression testing of USES=go ports
  with lang/go-devel.
  
  Submitted by:	dg at syrec.org
  Differential Revision:	https://reviews.freebsd.org/D20570

Modified:
  head/Mk/Uses/go.mk

Modified: head/Mk/Uses/go.mk
==============================================================================
--- head/Mk/Uses/go.mk	Sun Jun 23 11:38:44 2019	(r504941)
+++ head/Mk/Uses/go.mk	Sun Jun 23 11:50:41 2019	(r504942)
@@ -36,6 +36,12 @@
 # GO_BUILDFLAGS
 #	Additional build arguments to be passed to the `go install` command
 #
+# GO_PORT
+#	The Go port to use.  By default this is lang/go but can be set
+#	to lang/go-devel in make.conf for testing with future Go versions.
+#
+#	This variable should not be set by individual ports!
+#
 # MAINTAINER: jlaffaye at FreeBSD.org
 
 .if !defined(_INCLUDE_USES_GO_MK)
@@ -83,7 +89,8 @@ GO_ENV+=	GOPATH="${WRKDIR}" \
 		GOBIN=""
 .endif
 
-BUILD_DEPENDS+=	${GO_CMD}:lang/go
+GO_PORT?=	lang/go
+BUILD_DEPENDS+=	${GO_CMD}:${GO_PORT}
 PLIST_SUB+=	GO_PKGNAME=${GO_PKGNAME}
 
 _USES_POST+=	go


More information about the svn-ports-all mailing list