pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/go-tools Move analyze into $GOTOOLDIR.
details: https://anonhg.NetBSD.org/pkgsrc/rev/065eff592d67
branches: trunk
changeset: 313942:065eff592d67
user: bsiegert <bsiegert%pkgsrc.org@localhost>
date: Sun Oct 14 18:53:00 2018 +0000
description:
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:
devel/go-tools/Makefile | 9 ++++++++-
devel/go-tools/PLIST | 4 ++--
2 files changed, 10 insertions(+), 3 deletions(-)
diffs (44 lines):
diff -r 465df5127b65 -r 065eff592d67 devel/go-tools/Makefile
--- a/devel/go-tools/Makefile Sun Oct 14 18:15:34 2018 +0000
+++ b/devel/go-tools/Makefile Sun Oct 14 18:53:00 2018 +0000
@@ -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/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/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 -r 465df5127b65 -r 065eff592d67 devel/go-tools/PLIST
--- a/devel/go-tools/PLIST Sun Oct 14 18:15:34 2018 +0000
+++ b/devel/go-tools/PLIST Sun Oct 14 18:53:00 2018 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index