Received: by mail.netbsd.org (Postfix, from userid 605) id 1336B84DCE; Tue, 10 Sep 2019 20:19:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 8F01584DCA for ; Tue, 10 Sep 2019 20:19:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id rd3ikarGZtbH for ; Tue, 10 Sep 2019 20:19:55 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 14ECC84CEE for ; Tue, 10 Sep 2019 20:19:55 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 0E61CFBF4; Tue, 10 Sep 2019 20:19:55 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1568146795264190" MIME-Version: 1.0 Date: Tue, 10 Sep 2019 20:19:55 +0000 From: "Roland Illig" Subject: CVS commit: pkgsrc/lang/go To: pkgsrc-changes@NetBSD.org Reply-To: rillig@netbsd.org X-Mailer: log_accum Message-Id: <20190910201955.0E61CFBF4@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1568146795264190 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: rillig Date: Tue Sep 10 20:19:54 UTC 2019 Modified Files: pkgsrc/lang/go: go-package.mk Log Message: lang/go: update _VARGROUPS in go-package.mk, small refactoring To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 pkgsrc/lang/go/go-package.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1568146795264190 Content-Disposition: inline Content-Length: 2172 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/go/go-package.mk diff -u pkgsrc/lang/go/go-package.mk:1.22 pkgsrc/lang/go/go-package.mk:1.23 --- pkgsrc/lang/go/go-package.mk:1.22 Wed May 15 18:00:03 2019 +++ pkgsrc/lang/go/go-package.mk Tue Sep 10 20:19:54 2019 @@ -1,11 +1,11 @@ -# $NetBSD: go-package.mk,v 1.22 2019/05/15 18:00:03 jperkin Exp $ +# $NetBSD: go-package.mk,v 1.23 2019/09/10 20:19:54 rillig Exp $ # # This file implements common logic for compiling Go programs in pkgsrc. # # === Package-settable variables === # # GO_SRCPATH (required) -# The patch that can be used with "go get" to import the current +# The path that can be used with "go get" to import the current # package. This is usually the URL without the leading protocol. # # Examples: @@ -50,8 +50,7 @@ .include "../../lang/go/version.mk" -_GO_DIST_BASE!= basename ${GO_SRCPATH} -GO_DIST_BASE?= ${_GO_DIST_BASE} +GO_DIST_BASE?= ${GO_SRCPATH:T} GO_BUILD_PATTERN?= ${GO_SRCPATH}/... WRKSRC= ${WRKDIR}/src/${GO_SRCPATH} @@ -67,7 +66,7 @@ GOTOOLDIR= go${GOVERSSUFFIX}/pkg/tool/$ PRINT_PLIST_AWK+= /^@pkgdir bin$$/ { next; } PRINT_PLIST_AWK+= /^@pkgdir gopkg$$/ { next; } -MAKE_ENV+= GOPATH=${WRKDIR}:${BUILDLINK_DIR}/gopkg +MAKE_ENV+= GOPATH=${WRKDIR}:${BUILDLINK_DIR}/gopkg MAKE_ENV+= GOCACHE=${WRKDIR}/.cache/go-build .if !target(post-extract) @@ -99,13 +98,14 @@ do-install: .endif _VARGROUPS+= go -_PKG_VARS.go= GO_SRCPATH GO_DIST_BASE GO_BUILD_PATTERN +_PKG_VARS.go= GO_SRCPATH GO_DIST_BASE GO_DEPS GO_BUILD_PATTERN _USER_VARS.go= GO_VERSION_DEFAULT _SYS_VARS.go= GO GO_VERSION GOVERSSUFFIX GOARCH GOCHAR \ GOOPT GOTOOLDIR GO_PLATFORM -_DEF_VARS.go= GO14_VERSION GO19_VERSION GO110_VERSION \ - GO111_VERSION INSTALLATION_DIRS MAKE_JOBS_SAFE \ - NOT_FOR_PLATFORM ONLY_FOR_PLATFORM SSP_SUPPORTED \ - WRKSRC -_USE_VARS.go= GO_PACKAGE_DEP -_SORTED_VARS.go= INSTALLATION_DIRS *_FOR_PLATFORM +_USE_VARS.go= GO_PACKAGE_DEP \ + WRKDIR BUILDLINK_DIR DESTDIR PREFIX \ + TEST_ENV +_DEF_VARS.go= INSTALLATION_DIRS MAKE_JOBS_SAFE \ + WRKSRC \ + USE_TOOLS BUILD_DEPENDS PRINT_PLIST_AWK MAKE_ENV +_SORTED_VARS.go= INSTALLATION_DIRS *_FOR_PLATFORM *_ENV --_----------=_1568146795264190--