crowdin: depend on openjdk
parent
5f20a334ef
commit
f4fa744134
|
@ -3,14 +3,18 @@ class Crowdin < Formula
|
|||
homepage "https://support.crowdin.com/cli-tool/"
|
||||
url "https://downloads.crowdin.com/cli/v2/crowdin-cli-2.0.31.zip"
|
||||
sha256 "93defe16706783e92cbe3b32e528e495ddffa9e2a68471c3b70a2eb6c487e245"
|
||||
revision 1
|
||||
|
||||
bottle :unneeded
|
||||
|
||||
depends_on :java => "1.7+"
|
||||
depends_on "openjdk"
|
||||
|
||||
def install
|
||||
libexec.install "crowdin-cli.jar"
|
||||
bin.write_jar_script libexec/"crowdin-cli.jar", "crowdin"
|
||||
(bin/"crowdin").write <<~EOS
|
||||
#!/bin/bash
|
||||
exec "#{Formula["openjdk"].opt_bin}/java" -jar "#{libexec}/crowdin-cli.jar" "$@"
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in New Issue