c9e8b4ff53
Closes #32719. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
28 lines
989 B
Ruby
28 lines
989 B
Ruby
class ApacheGeode < Formula
|
|
desc "In-memory Data Grid for fast transactional data processing"
|
|
homepage "https://geode.apache.org/"
|
|
url "https://www.apache.org/dyn/closer.cgi?path=geode/1.7.0/apache-geode-1.7.0.tgz"
|
|
sha256 "91eec04420f46e949d32104479c4a4b5b34a4e5570dca7b98ca067a30d5a783d"
|
|
|
|
bottle :unneeded
|
|
|
|
# Geode does not work with Java 1.9 (see https://issues.apache.org/jira/browse/GEODE-3)
|
|
depends_on :java => "1.8"
|
|
|
|
def install
|
|
rm_f "bin/gfsh.bat"
|
|
bash_completion.install "bin/gfsh-completion.bash" => "gfsh"
|
|
libexec.install Dir["*"]
|
|
(bin/"gfsh").write_env_script libexec/"bin/gfsh", Language::Java.java_home_env("1.8")
|
|
end
|
|
|
|
test do
|
|
begin
|
|
flags = "--dir #{testpath} --name=geode_locator_brew_test"
|
|
output = shell_output("#{bin}/gfsh start locator #{flags}")
|
|
assert_match "Cluster configuration service is up and running", output
|
|
ensure
|
|
quiet_system "pkill", "-9", "-f", "geode_locator_brew_test"
|
|
end
|
|
end
|
|
end
|