crowdin: depend on openjdk

master
Markus Reiter 2020-02-06 01:42:09 +01:00 committed by Alexander Bayandin
parent 5f20a334ef
commit f4fa744134
1 changed files with 6 additions and 2 deletions

View File

@ -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