homebrew-core/Formula/zanata-client.rb
ilovezfs 78f9669430 zanata-client 4.2.1 (#14206)
set bottle unneeded
2017-06-04 00:53:32 -07:00

20 lines
686 B
Ruby

class ZanataClient < Formula
desc "Zanata translation system command-line client"
homepage "http://zanata.org/"
url "https://search.maven.org/remotecontent?filepath=org/zanata/zanata-cli/4.2.1/zanata-cli-4.2.1-dist.tar.gz"
sha256 "8052b11d0dcda8262221bd573cae70933e00a5e84336235e7149aabcf8cb61f7"
bottle :unneeded
depends_on :java => "1.8+"
def install
libexec.install Dir["*"]
(bin/"zanata-cli").write_env_script libexec/"bin/zanata-cli", Language::Java.java_home_env("1.8+")
bash_completion.install libexec/"bin/zanata-cli-completion"
end
test do
assert_match /Zanata Java command-line client/, shell_output("#{bin}/zanata-cli --help")
end
end