# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
github.setup golang tools c21bc47f893ee73c18dd2119bb8ff9a2b492c4c6
platforms darwin freebsd linux
description Various packages and tools that support the Go programming language.
long_description $description
checksums rmd160 14eab87b4dcb090ee1e4a102b367defc4354ecf6 \
sha256 f5e54df63e95f251b33a50c99d6eba58df20632f0bc5e20f6f0ac47c36a40dde
set gopath ${workpath}/go-tools
set package_dir golang.org/x/tools
set package_src_dir ${gopath}/src/${package_dir}
file mkdir ${package_src_dir}
foreach f [glob -directory ${worksrcpath} *] {
move ${f}/ ${package_src_dir}
set cmds { benchcmp bundle callgraph cover digraph eg fiximports godex godoc
goimports gomvpkg gorename gotype goyacc guru heapview html2article
present ssadump stress stringer tip toolstash }
system -W ${workpath} "GOPATH=${gopath} go get -d golang.org/x/net/websocket"
system -W ${workpath} "GOPATH=${gopath} go get -d golang.org/x/crypto/acme/autocert"
system -W ${workpath} "GOPATH=${gopath} go build ${package_dir}/cmd/${cmd}"
xinstall -W ${workpath} ${cmd} ${destroot}${prefix}/bin/