7158f6570c
Closes #36255. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
18 lines
479 B
Ruby
18 lines
479 B
Ruby
class Jenv < Formula
|
|
desc "Manage your Java environment"
|
|
homepage "https://www.jenv.be/"
|
|
url "https://github.com/jenv/jenv/archive/0.5.0.tar.gz"
|
|
sha256 "50834edaa5bef58261206f4fac154def57e1829b033fd30b5da607dbe58639bc"
|
|
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
|