pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/go-tools



Module Name:    pkgsrc
Committed By:   bsiegert
Date:           Sun Oct 14 18:53:00 UTC 2018

Modified Files:
        pkgsrc/devel/go-tools: Makefile PLIST

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 pkgsrc/devel/go-tools/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/go-tools/PLIST

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/go-tools/Makefile
diff -u pkgsrc/devel/go-tools/Makefile:1.21 pkgsrc/devel/go-tools/Makefile:1.22
--- pkgsrc/devel/go-tools/Makefile:1.21 Wed Oct 10 18:58:33 2018
+++ pkgsrc/devel/go-tools/Makefile      Sun Oct 14 18:53:00 2018
@@ -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

Index: pkgsrc/devel/go-tools/PLIST
diff -u pkgsrc/devel/go-tools/PLIST:1.4 pkgsrc/devel/go-tools/PLIST:1.5
--- pkgsrc/devel/go-tools/PLIST:1.4     Wed Oct 10 18:58:33 2018
+++ pkgsrc/devel/go-tools/PLIST Sun Oct 14 18:53:00 2018
@@ -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