homebrew-core/Formula/goenv.rb
BePsvPT 3d038f5385
goenv 1.19.0
Closes #31243.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2018-08-18 15:01:02 +08:00

22 lines
672 B
Ruby

class Goenv < Formula
desc "Go version management"
homepage "https://github.com/syndbg/goenv"
url "https://github.com/syndbg/goenv/archive/1.19.0.tar.gz"
sha256 "05e8cad542acd556d193d4d6510cf6591699e52cdfd0a63ef4116635dff90e87"
version_scheme 1
head "https://github.com/syndbg/goenv.git"
bottle :unneeded
def install
inreplace "libexec/goenv", "/usr/local", HOMEBREW_PREFIX
prefix.install Dir["*"]
%w[goenv-install goenv-uninstall go-build].each do |cmd|
bin.install_symlink "#{prefix}/plugins/go-build/bin/#{cmd}"
end
end
test do
assert_match "Usage: goenv <command> [<args>]", shell_output("#{bin}/goenv help")
end
end