kumo 1.13 (new formula) (#21248)

master
Kenny Cason 2018-01-04 10:45:58 -08:00 committed by ilovezfs
parent d255dd3557
commit 16d83160f2
1 changed files with 20 additions and 0 deletions

20
Formula/kumo.rb Normal file
View File

@ -0,0 +1,20 @@
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.13/kumo-cli-1.13.jar"
sha256 "c9ad525f7d6aec9e2c06cf10017e1e533f43b1b3c4df5aa0d4b137f8d563c5c6"
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