groovysdk: depend on openjdk

master
Markus Reiter 2020-02-06 02:47:16 +01:00 committed by Alexander Bayandin
parent 0aeeb67985
commit 05775a51e7
1 changed files with 5 additions and 5 deletions

View File

@ -3,24 +3,24 @@ class Groovysdk < Formula
homepage "https://www.groovy-lang.org/"
url "https://dl.bintray.com/groovy/maven/apache-groovy-sdk-3.0.1.zip"
sha256 "85b763f02e831a609716f4076e160827f1f783112c0361ec7b71e2a65b7f4f83"
revision 1
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+"
depends_on "openjdk"
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"])
bin.env_script_all_files libexec/"bin",
:GROOVY_HOME => libexec,
:JAVA_HOME => "${JAVA_HOME:-#{Formula["openjdk"].opt_prefix}}"
end
test do