summaryrefslogtreecommitdiff
path: root/lang/go/Makefile
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2018-07-08 09:27:31 +0000
committerbsiegert <bsiegert@pkgsrc.org>2018-07-08 09:27:31 +0000
commitdae7b9f1969c7a734c9d1988cf68640059c60779 (patch)
tree8f346ee0d3d0a867a0324028010a53cac226a1b1 /lang/go/Makefile
parent150f9b07d69016edeec89fcd8f786e93699db0f7 (diff)
downloadpkgsrc-dae7b9f1969c7a734c9d1988cf68640059c60779.tar.gz
Install bin/go via pkg_alternatives. Bump revision.
BREAKING CHANGE: If you do not have pkg_alternatives installed, then you will not get a "go" tool in the PATH, and builds of packages using Go may fail. (This will be fixed in the next commit.)
Diffstat (limited to 'lang/go/Makefile')
-rw-r--r--lang/go/Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/lang/go/Makefile b/lang/go/Makefile
index 5a012de2e9c..25f2a4935df 100644
--- a/lang/go/Makefile
+++ b/lang/go/Makefile
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.63 2018/03/05 12:42:50 ryoon Exp $
+# $NetBSD: Makefile,v 1.64 2018/07/08 09:27:31 bsiegert Exp $
.include "version.mk"
DISTNAME= go${GO_VERSION}.src
PKGNAME= go-${GO_VERSION}
+PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= https://storage.googleapis.com/golang/
EXTRACT_USING= bsdtar
@@ -102,9 +103,6 @@ do-install:
cd ${WRKSRC} && rm -rf .hgignore .hgtags pkg/obj
cd ${WRKDIR} && pax -rw go ${DESTDIR}${PREFIX}
find ${DESTDIR}${PREFIX}/go -name \*.orig -exec rm {} \;
-.for cmd in go gofmt
- cd ${DESTDIR}${PREFIX}/bin && ln -sf ../go/bin/${cmd} ${cmd}
-.endfor
do-test:
cd ${WRKSRC}/src && GOROOT=${WRKSRC} PATH=${WRKSRC}/bin:${PATH} ${GOOPT} ${BASH} run.bash --no-rebuild --banner ""