homebrew-core/Formula/groovyserv.rb

32 lines
1.2 KiB
Ruby

class Groovyserv < Formula
desc "Speed up Groovy startup time"
homepage "https://kobo.github.io/groovyserv/"
url "https://bitbucket.org/kobo/groovyserv-mirror/downloads/groovyserv-1.2.0-src.zip"
sha256 "235b38c6bb70721fa41b2c2cc6224eeaac09721e4d04b504148b83c40ea0bb27"
bottle do
cellar :any_skip_relocation
sha256 "30825c3d2f95214cf8e06fbec819f5b3d1ed87f7b5f0dd1c588525dafaf12c41" => :high_sierra
sha256 "43388a03d5e69fd6fe8377f8ac51fdfa00ffe0e0276a60f8c7ff2934ab32e2b0" => :sierra
sha256 "51aef6e15608021ae127aaa93e2aa39bfaf52cfea688b45841d315b6a04b55aa" => :el_capitan
end
depends_on "go" => :build
depends_on "groovy"
depends_on :java => "1.8"
def install
# Sandbox fix to stop it ignoring our temporary $HOME variable.
ENV["GRADLE_USER_HOME"] = buildpath/".brew_home"
system "./gradlew", "clean", "distLocalBin"
system "unzip", "build/distributions/groovyserv-#{version}-bin-local.zip"
libexec.install Dir["groovyserv-#{version}/{bin,lib}"]
bin.install Dir[libexec/"bin/*"]
bin.env_script_all_files(libexec/"bin", Language::Java.java_home_env("1.8"))
end
test do
system bin/"groovyserver", "--help"
end
end