homebrew-core/Formula/kumo.rb

22 lines
664 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.28/kumo-cli-1.28.jar"
sha256 "43e4e2ea9da62a2230deed9151d8484f80bd6ae5fef304eaadf3301378f45fb6"
license "MIT"
bottle :unneeded
depends_on "openjdk"
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