2016-06-13 06:16:37 -04:00
|
|
|
class Kumo < Formula
|
2017-12-18 00:50:04 -05:00
|
|
|
desc "Word Clouds in Java"
|
2016-06-13 06:16:37 -04:00
|
|
|
homepage "https://github.com/kennycason/kumo"
|
2018-09-15 00:02:10 -04:00
|
|
|
url "https://search.maven.org/remotecontent?filepath=com/kennycason/kumo-cli/1.17/kumo-cli-1.17.jar"
|
2018-09-15 00:08:37 -04:00
|
|
|
sha256 "17f84d6287eeccf361c9eabe6d7449983c13d777afd161105a324c00adcadd0e"
|
2016-06-13 06:16:37 -04:00
|
|
|
|
2017-12-01 14:00:06 -05:00
|
|
|
depends_on :java => "1.8+"
|
|
|
|
|
2016-06-13 06:16:37 -04:00
|
|
|
def install
|
2018-09-15 00:02:10 -04:00
|
|
|
libexec.install "kumo-cli-1.17.jar"
|
|
|
|
bin.write_jar_script libexec/"kumo-cli-1.17.jar", "kumo"
|
2016-06-13 06:16:37 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
pipe_output("#{bin}/kumo --version", "Test Kumo version command")
|
2017-12-18 00:50:04 -05:00
|
|
|
pipe_output("#{bin}/kumo -i https://wikipedia.org -o /tmp/wikipedia.png", "Generate simple wordcloud")
|
2016-06-13 06:16:37 -04:00
|
|
|
end
|
2018-07-20 16:51:09 -04:00
|
|
|
end
|