pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/go Install bin/go via pkg_alternatives. Bump revi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2a1009bcc9ea
branches:  trunk
changeset: 310224:2a1009bcc9ea
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Sun Jul 08 09:27:31 2018 +0000

description:
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:

 lang/go/ALTERNATIVES |  2 ++
 lang/go/Makefile     |  6 ++----
 lang/go/PLIST        |  4 +---
 3 files changed, 5 insertions(+), 7 deletions(-)

diffs (42 lines):

diff -r 5fef857af25d -r 2a1009bcc9ea lang/go/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go/ALTERNATIVES      Sun Jul 08 09:27:31 2018 +0000
@@ -0,0 +1,2 @@
+bin/go @PREFIX@/go/bin/go
+bin/gofmt @PREFIX@/go/bin/gofmt
diff -r 5fef857af25d -r 2a1009bcc9ea lang/go/Makefile
--- a/lang/go/Makefile  Sun Jul 08 09:04:12 2018 +0000
+++ b/lang/go/Makefile  Sun Jul 08 09:27:31 2018 +0000
@@ -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 @@
        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 ""
diff -r 5fef857af25d -r 2a1009bcc9ea lang/go/PLIST
--- a/lang/go/PLIST     Sun Jul 08 09:04:12 2018 +0000
+++ b/lang/go/PLIST     Sun Jul 08 09:27:31 2018 +0000
@@ -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



Home | Main Index | Thread Index | Old Index