homebrew-core/Formula/groovysdk.rb
2017-04-28 18:44:33 +02:00

26 lines
776 B
Ruby

class Groovysdk < Formula
desc "SDK for Groovy: a Java-based scripting language"
homepage "http://www.groovy-lang.org"
url "https://dl.bintray.com/groovy/maven/apache-groovy-sdk-2.4.11.zip"
sha256 "bd7ed4b02379c1b2c70b9a87502be042bc0b53a8be3684a0c9961f299cbf418d"
bottle :unneeded
conflicts_with "groovy", :because => "both install the same binaries"
def install
ENV["GROOVY_HOME"] = libexec
# We don't need Windows' files.
rm_f Dir["bin/*.bat"]
prefix.install_metafiles
bin.install Dir["bin/*"]
libexec.install %w[conf lib embeddable src doc]
bin.env_script_all_files(libexec+"bin", :GROOVY_HOME => ENV["GROOVY_HOME"])
end
test do
system "#{bin}/grape", "install", "org.activiti", "activiti-engine", "5.16.4"
end
end