homebrew-core/Formula/goenv.rb
2018-08-07 18:42:22 +02: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.18.0.tar.gz"
sha256 "d1f98d61e6c1741b3a71c3ce164ea00ecf38e1e8e30247f7dba841939778023a"
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