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"
|
|
|
|
url "https://dl.bintray.com/groovy/maven/apache-groovy-sdk-2.4.4.zip"
|
|
|
|
sha256 "2e794749f38386c81101c05e83b2ddd2bc3675d1cb01101f3ee2be6cf67b2fc9"
|
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
|