aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorKaren Wang and Tim Jarratt2014-02-20 17:28:26 -0800
committerAdam Vandenberg2014-02-22 07:00:08 -0800
commitf4122874154eebd44bcad84fd938aeb21dd1a7fb (patch)
treeca6dd9aa654d5f7b236b4c0e6e27837b6a865722 /Library/Formula
parent2703b11fabe7b2028de2c145acd05d0a302acd1f (diff)
downloadhomebrew-f4122874154eebd44bcad84fd938aeb21dd1a7fb.tar.bz2
cloudfoundry-cli 6.0.0
Closes #26876. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cloudfoundry-cli.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/cloudfoundry-cli.rb b/Library/Formula/cloudfoundry-cli.rb
new file mode 100644
index 000000000..ffedcfafd
--- /dev/null
+++ b/Library/Formula/cloudfoundry-cli.rb
@@ -0,0 +1,20 @@
+require 'formula'
+
+class CloudfoundryCli < Formula
+ homepage 'https://github.com/cloudfoundry/cli'
+ head 'https://github.com/cloudfoundry/cli.git', :branch => 'master'
+ url 'https://github.com/cloudfoundry/cli.git', :tag => 'v6.0.0'
+
+ depends_on 'go' => :build
+
+ def install
+ inreplace 'src/cf/app_constants.go', 'SHA', 'homebrew'
+ system 'bin/build'
+ bin.install 'out/cf'
+ doc.install 'LICENSE'
+ end
+
+ test do
+ system "#{bin}/cf"
+ end
+end