2013-12-14 19:25:25 +00:00
|
|
|
class Googlecl < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Manage Google services from the command-line"
|
2013-12-14 19:25:25 +00:00
|
|
|
homepage 'https://code.google.com/p/googlecl/'
|
|
|
|
url 'https://googlecl.googlecode.com/files/googlecl-0.9.14.tar.gz'
|
|
|
|
sha1 '810b2426e2c5e5292e507837ea425e66f4949a1d'
|
|
|
|
|
2015-02-21 21:51:27 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "ecb5890566eae00f555e6e7e5e296681bf82dc65" => :yosemite
|
|
|
|
sha1 "4c76e56a7684777d256c97f827f24ad6f18452e2" => :mavericks
|
|
|
|
sha1 "45ef7433cb23ec05fbf202caac3c3c0cc095a080" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-05-01 20:06:26 +00:00
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
2013-12-14 19:25:25 +00:00
|
|
|
|
2013-12-16 15:20:41 +00:00
|
|
|
conflicts_with 'osxutils', :because => 'both install a google binary'
|
|
|
|
|
2015-02-21 20:11:34 +00:00
|
|
|
resource "gdata" do
|
|
|
|
url "https://pypi.python.org/packages/source/g/gdata/gdata-2.0.18.tar.gz"
|
|
|
|
sha1 "4cd6804f2af81697219307421996c6055c7c16e4"
|
|
|
|
end
|
|
|
|
|
2013-12-14 19:25:25 +00:00
|
|
|
def install
|
2015-02-21 20:11:34 +00:00
|
|
|
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
|
|
|
|
resource("gdata").stage do
|
|
|
|
system "python", *Language::Python.setup_install_args(libexec/"vendor")
|
|
|
|
end
|
|
|
|
|
|
|
|
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
|
|
|
|
system "python", *Language::Python.setup_install_args(libexec)
|
2013-12-14 19:25:25 +00:00
|
|
|
|
2015-02-21 20:11:34 +00:00
|
|
|
bin.install Dir[libexec/"bin/*"]
|
2014-01-04 13:06:41 +00:00
|
|
|
bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH'])
|
2013-12-14 19:25:25 +00:00
|
|
|
end
|
2013-12-14 19:38:21 +00:00
|
|
|
|
|
|
|
test do
|
2015-02-21 20:11:34 +00:00
|
|
|
system "#{bin}/google", "help", "docs"
|
2013-12-14 19:38:21 +00:00
|
|
|
end
|
2013-12-14 19:25:25 +00:00
|
|
|
end
|