2014-10-21 18:56:11 +00:00
|
|
|
class Groovysdk < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "SDK for Groovy: a Java-based scripting language"
|
2015-07-18 17:41:25 +00:00
|
|
|
homepage "http://www.groovy-lang.org"
|
2015-10-05 18:51:32 +00:00
|
|
|
url "https://dl.bintray.com/groovy/maven/apache-groovy-sdk-2.4.5.zip"
|
|
|
|
sha256 "48d9f7f1165c12f7eed2b9a762820a7ffe176b666b1605c9b1411ab3b3f45a1d"
|
2014-10-21 18:56:11 +00:00
|
|
|
|
2015-10-23 11:10:57 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2015-11-01 22:13:09 +00:00
|
|
|
conflicts_with "groovy", :because => "both install the same binaries"
|
|
|
|
|
2014-10-21 18:56:11 +00:00
|
|
|
def install
|
|
|
|
ENV["GROOVY_HOME"] = libexec
|
|
|
|
|
|
|
|
# We don't need Windows' files.
|
|
|
|
rm_f Dir["bin/*.bat"]
|
|
|
|
|
|
|
|
prefix.install_metafiles
|
|
|
|
bin.install Dir["bin/*"]
|
2015-08-03 12:55:31 +00:00
|
|
|
libexec.install %w[conf lib embeddable src doc]
|
2014-10-21 18:56:11 +00:00
|
|
|
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
|