homebrew-core/Formula/kumo.rb
Chongyu Zhu 3926e9fa2c
kumo 1.17
Closes #32285.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2018-09-21 08:26:47 +08:00

20 lines
654 B
Ruby

class Kumo < Formula
desc "Word Clouds in Java"
homepage "https://github.com/kennycason/kumo"
url "https://search.maven.org/remotecontent?filepath=com/kennycason/kumo-cli/1.17/kumo-cli-1.17.jar"
sha256 "17f84d6287eeccf361c9eabe6d7449983c13d777afd161105a324c00adcadd0e"
bottle :unneeded
depends_on :java => "1.8+"
def install
libexec.install "kumo-cli-#{version}.jar"
bin.write_jar_script libexec/"kumo-cli-#{version}.jar", "kumo"
end
test do
system bin/"kumo", "-i", "https://wikipedia.org", "-o", testpath/"wikipedia.png"
assert_predicate testpath/"wikipedia.png", :exist?, "Wordcloud was not generated!"
end
end