4adf184cb7
Closes #19660. Signed-off-by: William Woodruff <william@tuffbizz.com>
22 lines
671 B
Ruby
22 lines
671 B
Ruby
class Goenv < Formula
|
|
desc "Go version management"
|
|
homepage "https://github.com/syndbg/goenv"
|
|
url "https://github.com/syndbg/goenv/archive/1.6.0.tar.gz"
|
|
sha256 "fcaecbd6f99fb0cb40cbef9ae276fc77b9dc8f6873b1f8840f8b75bf94bda21d"
|
|
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
|