homebrew-core/Formula/googlecl.rb

40 lines
1.3 KiB
Ruby
Raw Normal View History

class Googlecl < Formula
desc "Manage Google services from the command-line"
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
depends_on :python if MacOS.version <= :snow_leopard
conflicts_with 'osxutils', :because => 'both install a google binary'
resource "gdata" do
url "https://pypi.python.org/packages/source/g/gdata/gdata-2.0.18.tar.gz"
sha1 "4cd6804f2af81697219307421996c6055c7c16e4"
end
def install
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)
bin.install Dir[libexec/"bin/*"]
2014-01-04 13:06:41 +00:00
bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH'])
end
2013-12-14 19:38:21 +00:00
test do
system "#{bin}/google", "help", "docs"
2013-12-14 19:38:21 +00:00
end
end