diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/googlecl.rb | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/Library/Formula/googlecl.rb b/Library/Formula/googlecl.rb index 887307039..32e389bba 100644 --- a/Library/Formula/googlecl.rb +++ b/Library/Formula/googlecl.rb @@ -1,5 +1,3 @@ -require 'formula' - class Googlecl < Formula homepage 'https://code.google.com/p/googlecl/' url 'https://googlecl.googlecode.com/files/googlecl-0.9.14.tar.gz' @@ -9,16 +7,25 @@ class Googlecl < Formula 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["PYTHONPATH"] = lib+"python2.7/site-packages" - system "python", "setup.py", "install", - "--prefix=#{prefix}", "--single-version-externally-managed", - "--record=installed.txt" + 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/*"] bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH']) end test do - system "#{bin}/google", '--version' + system "#{bin}/google", "help", "docs" end end |
