forked from pivotal-legacy/homebrew-tap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gemfire.rb
32 lines (24 loc) · 988 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.10.10/pivotal-gemfire-9.10.10.tgz'
sha256 '4401e32c981ba86845bd00b51a54be37de16912d6c1edc3e7a2574aea937226e'
version '9.10.10'
bottle :unneeded
depends_on "openjdk@8"
def install
rm_f "bin/gfsh.bat"
prefix.install %w{ VMware-EULA open_source_licenses.txt }
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