# -*- 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 # $Id$ PortSystem 1.0 PortGroup github 1.0 github.setup golang tools 65b5a8eca7a871e7c1d99722e4a43a4a6e32ebe0 name go-tools categories devel platforms darwin freebsd linux license BSD maintainers ciserlohn description Various packages and tools that support the Go programming language. long_description $description checksums rmd160 a66e0f31dfed25d2560ed54bd6571106f4d2c2f7 \ sha256 69f9416830ac33c291f964ccba0811c8b64a9812bf99a0bafeae936948b3b858 depends_build port:go universal_variant no use_configure no set gopath ${workpath}/go-tools set package_dir golang.org/x/tools post-extract { 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 cover eg godoc gomvpkg gotype oracle ssadump tipgodoc callgraph digraph godex goimports gorename stringer vet } #build.env GOPATH=${package_dir} build { foreach cmd $cmds { system -W ${workpath} "GOPATH=${gopath} go build ${package_dir}/cmd/${cmd}" } } destroot { foreach cmd $cmds { xinstall -W ${workpath} ${cmd} ${destroot}${prefix}/bin/ } } livecheck.type none