2011-09-07 16:28:00 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
# This is a pure Python formula, but Google suck and won't provide it in PYPI.
|
|
|
|
# So fearlessly we elect to maintain the formula. References:
|
|
|
|
# https://github.com/mxcl/homebrew/pull/7484
|
|
|
|
# https://github.com/mxcl/homebrew/issues/2560
|
|
|
|
|
|
|
|
class Gsutil < Formula
|
|
|
|
homepage 'http://code.google.com/p/gsutil/'
|
2013-01-21 10:34:02 +00:00
|
|
|
url 'http://commondatastorage.googleapis.com/pub/gsutil_3.21.tar.gz'
|
|
|
|
sha1 '286b9c777c714eec48ae595060d3fba40d78e87f'
|
2011-09-07 16:28:00 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
libexec.install Dir["*"]
|
2012-06-01 18:03:49 +00:00
|
|
|
bin.install_symlink libexec/'gsutil'
|
2011-09-07 16:28:00 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
|
|
|
system "#{bin}/gsutil"
|
|
|
|
end
|
|
|
|
end
|