homebrew-core/Formula/groovysdk.rb
2019-10-01 14:02:15 +02:00

29 lines
902 B
Ruby

class Groovysdk < Formula
desc "SDK for Groovy: a Java-based scripting language"
homepage "https://www.groovy-lang.org/"
url "https://dl.bintray.com/groovy/maven/apache-groovy-sdk-2.5.8.zip"
sha256 "37e030bbb14746869e822702db1c6dd57d7d077ceef4c12938b1c6c4d341f459"
bottle :unneeded
# Groovy 2.5 requires JDK8+ to build and JDK7 is the minimum version of the JRE that we support.
depends_on :java => "1.7+"
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 "conf", "lib", "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