2013-12-14 19:25:25 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Googlecl < Formula
|
|
|
|
homepage 'https://code.google.com/p/googlecl/'
|
|
|
|
url 'https://googlecl.googlecode.com/files/googlecl-0.9.14.tar.gz'
|
|
|
|
sha1 '810b2426e2c5e5292e507837ea425e66f4949a1d'
|
|
|
|
|
|
|
|
depends_on :python
|
|
|
|
|
2013-12-16 15:20:41 +00:00
|
|
|
conflicts_with 'osxutils', :because => 'both install a google binary'
|
|
|
|
|
2013-12-14 19:25:25 +00:00
|
|
|
def install
|
2014-01-04 13:06:41 +00:00
|
|
|
system "python", "setup.py", "install",
|
|
|
|
"--prefix=#{prefix}", "--single-version-externally-managed",
|
|
|
|
"--record=installed.txt"
|
2013-12-14 19:25:25 +00:00
|
|
|
|
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
|
|
|
|
system "#{bin}/google", '--version'
|
|
|
|
end
|
2013-12-14 19:25:25 +00:00
|
|
|
end
|