summaryrefslogtreecommitdiff
path: root/devel/go-tools
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2018-10-14 18:53:00 +0000
committerbsiegert <bsiegert@pkgsrc.org>2018-10-14 18:53:00 +0000
commit68246bb92a7a6c24d1decaed091242013b501d4f (patch)
tree850a533d356c6f93d93af94855348b49914900e3 /devel/go-tools
parent5c5165fb49015cdfcd7797b839d1bd0284d10bde (diff)
downloadpkgsrc-68246bb92a7a6c24d1decaed091242013b501d4f.tar.gz
Move analyze into $GOTOOLDIR.
This means it does not pollute the command namespace, and you can call it as "go tool analyze". Needs v1.19 of lang/go/go-package.mk.
Diffstat (limited to 'devel/go-tools')
-rw-r--r--devel/go-tools/Makefile9
-rw-r--r--devel/go-tools/PLIST4
2 files changed, 10 insertions, 3 deletions
diff --git a/devel/go-tools/Makefile b/devel/go-tools/Makefile
index 5ae015624a5..7dc27ea1a6c 100644
--- a/devel/go-tools/Makefile
+++ b/devel/go-tools/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.21 2018/10/10 18:58:33 bsiegert Exp $
+# $NetBSD: Makefile,v 1.22 2018/10/14 18:53:00 bsiegert Exp $
DISTNAME= tools
PKGNAME= go-tools-1.11.20181009
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=golang/}
GITHUB_PROJECT= ${DISTNAME}
@@ -20,6 +21,9 @@ REPLACE_BASH+= cmd/getgo/*.bash
REPLACE_BASH+= cmd/godoc/*.bash
REPLACE_BASH+= cmd/toolstash/buildall
+PLIST_SUBST+= GOTOOLDIR=${GOTOOLDIR:Q}
+INSTALLATION_DIRS+= ${GOTOOLDIR}
+
CHECK_RELRO_SKIP+= bin/benchcmp
CHECK_RELRO_SKIP+= bin/bundle
CHECK_RELRO_SKIP+= bin/callgraph
@@ -44,6 +48,9 @@ CHECK_RELRO_SKIP+= bin/stringer
CHECK_RELRO_SKIP+= bin/tip
CHECK_RELRO_SKIP+= bin/toolstash
+post-install:
+ cd ${DESTDIR}${PREFIX} && mv bin/analyze ${GOTOOLDIR}
+
.include "../../lang/go/go-package.mk"
.include "../../devel/google-api-go-client/buildlink3.mk"
BUILDLINK_API_DEPENDS.go-crypto+= go-crypto>=0.0.20180308
diff --git a/devel/go-tools/PLIST b/devel/go-tools/PLIST
index 234bf161768..25d8d055199 100644
--- a/devel/go-tools/PLIST
+++ b/devel/go-tools/PLIST
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.4 2018/10/10 18:58:33 bsiegert Exp $
-bin/analyze
+@comment $NetBSD: PLIST,v 1.5 2018/10/14 18:53:00 bsiegert Exp $
+${GOTOOLDIR}/analyze
bin/benchcmp
bin/bundle
bin/callgraph