mirror of
https://github.com/kennycason/kumo
synced 2025-03-30 09:18:49 -04:00
22 lines
680 B
Ruby
22 lines
680 B
Ruby
class Kumo < Formula
|
|
desc "Kumo: Word Clouds in Java"
|
|
homepage "https://github.com/kennycason/kumo"
|
|
url "http://search.maven.org/remotecontent?filepath=com/kennycason/kumo-cli/1.11/kumo-cli-1.11.jar"
|
|
sha256 "ac538ca2006d5ce261b9495715cc42752679b577116480cc622d47f8ee1007d0"
|
|
|
|
def install
|
|
libexec.install "kumo-cli-1.11.jar"
|
|
bin.write_jar_script libexec/"kumo-cli-1.11.jar", "kumo"
|
|
puts "Finished installing kumo 1.11"
|
|
end
|
|
|
|
def server_script(server_jar); <<-EOS.undent
|
|
#!/bin/bash
|
|
exec java -cp #{server_jar} com.kennycason.kumo.cli.KumoCli "$@"
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
pipe_output("#{bin}/kumo --version", "Test Kumo version command")
|
|
end
|
|
end |