pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/go



Module Name:    pkgsrc
Committed By:   bsiegert
Date:           Sun Jul  8 09:27:31 UTC 2018

Modified Files:
        pkgsrc/lang/go: Makefile PLIST
Added Files:
        pkgsrc/lang/go: ALTERNATIVES

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


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/go/ALTERNATIVES
cvs rdiff -u -r1.63 -r1.64 pkgsrc/lang/go/Makefile
cvs rdiff -u -r1.42 -r1.43 pkgsrc/lang/go/PLIST

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

Modified files:

Index: pkgsrc/lang/go/Makefile
diff -u pkgsrc/lang/go/Makefile:1.63 pkgsrc/lang/go/Makefile:1.64
--- pkgsrc/lang/go/Makefile:1.63        Mon Mar  5 12:42:50 2018
+++ pkgsrc/lang/go/Makefile     Sun Jul  8 09:27:31 2018
@@ -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 ""

Index: pkgsrc/lang/go/PLIST
diff -u pkgsrc/lang/go/PLIST:1.42 pkgsrc/lang/go/PLIST:1.43
--- pkgsrc/lang/go/PLIST:1.42   Tue Jun 12 17:37:59 2018
+++ pkgsrc/lang/go/PLIST        Sun Jul  8 09:27:31 2018
@@ -1,6 +1,4 @@
-@comment $NetBSD: PLIST,v 1.42 2018/06/12 17:37:59 bsiegert Exp $
-bin/go
-bin/gofmt
+@comment $NetBSD: PLIST,v 1.43 2018/07/08 09:27:31 bsiegert Exp $
 go/AUTHORS
 go/CONTRIBUTING.md
 go/CONTRIBUTORS

Added files:

Index: pkgsrc/lang/go/ALTERNATIVES
diff -u /dev/null pkgsrc/lang/go/ALTERNATIVES:1.1
--- /dev/null   Sun Jul  8 09:27:31 2018
+++ pkgsrc/lang/go/ALTERNATIVES Sun Jul  8 09:27:31 2018
@@ -0,0 +1,2 @@
+bin/go @PREFIX@/go/bin/go
+bin/gofmt @PREFIX@/go/bin/gofmt



Home | Main Index | Thread Index | Old Index