homebrew-core/Formula/jenv.rb
2019-01-22 22:48:15 -05:00

19 lines
480 B
Ruby

class Jenv < Formula
desc "Manage your Java environment"
homepage "https://www.jenv.be/"
url "https://github.com/jenv/jenv/archive/0.5.1.tar.gz"
sha256 "2962ed7d46f95259c4748c7cae6172dc54da52e782fe8e69c4867f4a70a88156"
head "https://github.com/gcuisinier/jenv.git"
bottle :unneeded
def install
libexec.install Dir["*"]
bin.write_exec_script libexec/"bin/jenv"
end
test do
shell_output("eval \"$(#{bin}/jenv init -)\" && jenv versions")
end
end