update to go-tools 1.6

OK and fixes from jsing@ kspillner@
This commit is contained in:
czarkoff 2016-05-21 01:29:09 +00:00
parent 985ab92a88
commit 889fc2747b
4 changed files with 26 additions and 35 deletions

View File

@ -1,12 +1,12 @@
# $OpenBSD: Makefile,v 1.7 2016/05/08 17:14:07 czarkoff Exp $ # $OpenBSD: Makefile,v 1.8 2016/05/21 01:29:09 czarkoff Exp $
COMMENT = various tools for the Go programming language COMMENT = various tools for the Go programming language
GH_ACCOUNT = golang GH_ACCOUNT = golang
GH_PROJECT = tools GH_PROJECT = tools
GH_COMMIT = 99c318c742339e824d89d23ba3b3bff4f4ab27a8 GH_COMMIT = c887be1b2ebd11663d4bf2fbca508c449172339e
DISTNAME = go-tools-1.5.20151226 DISTNAME = go-tools-1.6.20160204
CATEGORIES = devel CATEGORIES = devel
HOMEPAGE = http://golang.org/ HOMEPAGE = https://godoc.org/golang.org/x/tools
MAINTAINER = Dmitrij D. Czarkoff <czarkoff@openbsd.org> MAINTAINER = Dmitrij D. Czarkoff <czarkoff@openbsd.org>
@ -18,39 +18,24 @@ WANTLIB += c pthread
MODULES = lang/go MODULES = lang/go
MODGO_ENV = PATH="${PORTPATH}" MODGO_ENV = PATH="${PORTPATH}"
BUILD_DEPENDS = net/go-net
RUN_DEPENDS = ${MODGO_RUN_DEPENDS} RUN_DEPENDS = ${MODGO_RUN_DEPENDS}
GODOC_TARGET = golang.org/x/tools/cmd/godoc GODOC_TARGET = golang.org/x/tools/cmd/godoc
ALL_TARGET = golang.org/x/tools/cmd/benchcmp \ _MAIN = golang.org/x/tools
golang.org/x/tools/cmd/callgraph \ _SUBPKGS = benchcmp bundle callgraph digraph eg fiximports \
golang.org/x/tools/cmd/digraph \ godex goimports gomvpkg gorename gotype \
golang.org/x/tools/cmd/eg \ html2article oracle ssadump stress stringer
golang.org/x/tools/cmd/fiximports \ ALL_TARGET = ${_SUBPKGS:%=${_MAIN}/cmd/%}
golang.org/x/tools/cmd/godex \ WRKSRC = ${MODGO_WORKSPACE}/src/${_MAIN}
golang.org/x/tools/cmd/goimports \
golang.org/x/tools/cmd/gomvpkg \
golang.org/x/tools/cmd/gorename \
golang.org/x/tools/cmd/gotype \
golang.org/x/tools/cmd/oracle \
golang.org/x/tools/cmd/ssadump \
golang.org/x/tools/cmd/stress \
golang.org/x/tools/cmd/stringer \
# golang.org/x/tools/cmd/html2article \
# golang.org/x/tools/cmd/present \
MODGO_TYPE = bin
post-patch:
mkdir -p ${MODGO_WORKSPACE}/src/golang.org/x
mv ${WRKDIST} ${MODGO_WORKSPACE}/src/golang.org/x/tools
# godoc needs special handling - prior to Go 1.2, godoc was part of the base # godoc needs special handling - prior to Go 1.2, godoc was part of the base
# distribution and there is a remaining mapping that causes 'go install' to # distribution and there is a remaining mapping that causes 'go install' to
# install godoc in $GOROOT/bin instead of $GOPATH/bin (golang.org/issue/6654). # install godoc in $GOROOT/bin instead of $GOPATH/bin (golang.org/issue/6654).
do-build: do-build:
mkdir -p ${MODGO_WORKSPACE}/bin
${MODGO_CMD} build ${MODGO_FLAGS} -o ${MODGO_WORKSPACE}/bin/godoc ${GODOC_TARGET}
${MODGO_BUILD_TARGET} ${MODGO_BUILD_TARGET}
${MODGO_CMD} build ${MODGO_FLAGS} -o ${MODGO_WORKSPACE}/bin/godoc \
${GODOC_TARGET}
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (go-tools-1.5.20151226.tar.gz) = JDNfXzok6DwT7pexMzVL4DCxVSOXoYOJqcCkC8mLWd4= SHA256 (go-tools-1.6.20160204.tar.gz) = lV5aEZurrTVtnPAM2q88J2SNRFEQm0Z8hy+tjMlNW1Y=
SIZE (go-tools-1.5.20151226.tar.gz) = 1661993 SIZE (go-tools-1.6.20160204.tar.gz) = 1768790

View File

@ -2,7 +2,9 @@ This package holds the source for various packages and tools that support the Go
programming language: programming language:
* benchcmp displays performance changes between benchmarks * benchcmp displays performance changes between benchmarks
* callgraph reports the call graph of a Go program * bundle creates a single-source-file version of a source package suitable
for inclusion in a particular target package
* callgraph a tool for reporting the call graph of a Go program
* digraph performs queries over unlabelled directed graphs represented in * digraph performs queries over unlabelled directed graphs represented in
text form text form
* eg performs example-based refactoring * eg performs example-based refactoring
@ -13,8 +15,10 @@ programming language:
* goimports updates Go import lines * goimports updates Go import lines
* gomvpkg moves go packages, updating import declarations * gomvpkg moves go packages, updating import declarations
* gorename performs precise type-safe renaming of identifiers in Go code * gorename performs precise type-safe renaming of identifiers in Go code
* gotype does syntactic and semantic analysis of Go files and packages * gotype syntactic and semantic analysis of Go files and packages
* html2article takes an HTML file and outputs a corresponding article file in
present format
* oracle answers questions about Go source code * oracle answers questions about Go source code
* ssadump displays and interprets the SSA form of Go programs * ssadump displays and interprets the SSA form of Go programs
* stress runs a given process in parallel in a loop and collects failures * stress utility intended for catching of episodic failures
* stringer creats of methods that satisfy the fmt.Stringer interface * stringer creation of methods that satisfy the fmt.Stringer interface

View File

@ -1,7 +1,8 @@
@comment $OpenBSD: PLIST,v 1.4 2016/01/14 16:11:17 jsing Exp $ @comment $OpenBSD: PLIST,v 1.5 2016/05/21 01:29:09 czarkoff Exp $
@conflict stress-* @conflict stress-*
@pkgpath textproc/godoc @pkgpath textproc/godoc
@bin bin/benchcmp @bin bin/benchcmp
@bin bin/bundle
@bin bin/callgraph @bin bin/callgraph
@bin bin/digraph @bin bin/digraph
@bin bin/eg @bin bin/eg
@ -12,6 +13,7 @@
@bin bin/gomvpkg @bin bin/gomvpkg
@bin bin/gorename @bin bin/gorename
@bin bin/gotype @bin bin/gotype
@bin bin/html2article
@bin bin/oracle @bin bin/oracle
@bin bin/ssadump @bin bin/ssadump
@bin bin/stress @bin bin/stress