forked from pivotal-legacy/homebrew-tap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gemfire.rb
32 lines (24 loc) · 973 Bytes
/
gemfire.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require 'formula'
class Gemfire < Formula
homepage 'http://www.pivotal.io/big-data/pivotal-gemfire'
url 'http://download.pivotal.com.s3.amazonaws.com/gemfire/9.9.0/pivotal-gemfire-9.9.0.tgz'
sha256 '49f274fc00d393487800aa5ea13ab6f6373211e883fb678221232e048e044e44'
version '9.9.0'
bottle :unneeded
depends_on :java => "1.8"
def install
rm_f "bin/gfsh.bat"
prefix.install %w{ Pivotal-EULA Pivotal-OSL }
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
def caveats; <<~EOS
By installing, you agree to comply with the license at https://network.pivotal.io/pivotal_software_eula. If you disagree with these terms, please uninstall by typing "brew uninstall gemfire" in your terminal window.
Usage:
gfsh
Documentation:
http://gemfire.docs.pivotal.io/index.html
EOS
end
end