1
0
mirror of https://github.com/kennycason/kumo synced 2025-04-02 09:38:49 -04:00
kumo/script/kumo.rb

19 lines
665 B
Ruby
Raw Permalink Normal View History

2016-06-13 06:16:37 -04:00
class Kumo < Formula
desc "Word Clouds in Java"
2016-06-13 06:16:37 -04:00
homepage "https://github.com/kennycason/kumo"
2018-08-23 06:21:36 -04:00
url "https://search.maven.org/remotecontent?filepath=com/kennycason/kumo-cli/1.14-SNAPSHOT/kumo-cli-1.14-SNAPSHOT.jar"
2018-07-20 16:51:09 -04:00
sha256 "c9ad525f7d6aec9e2c06cf10017e1e533f43b1b3c4df5aa0d4b137f8d563c5c6"
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-08-23 06:21:36 -04:00
libexec.install "kumo-cli-1.14-SNAPSHOT.jar"
bin.write_jar_script libexec/"kumo-cli-1.14-SNAPSHOT.jar", "kumo"
2016-06-13 06:16:37 -04:00
end
test do
pipe_output("#{bin}/kumo --version", "Test Kumo version command")
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
ku