diff options
| author | Jack Nagel | 2014-07-18 22:42:47 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-07-18 22:42:47 -0500 | 
| commit | 30bf648c3e9ffb24b2ed54560b1a7ba1b7196f0e (patch) | |
| tree | a321611fedb9266e6ca962022d5110953432474b /Library/Formula/appscale-tools.rb | |
| parent | 24fc341c9272ea1a5a9c0abc4981bd41d9f96a25 (diff) | |
| download | homebrew-30bf648c3e9ffb24b2ed54560b1a7ba1b7196f0e.tar.bz2 | |
Simplify resource installation
Diffstat (limited to 'Library/Formula/appscale-tools.rb')
| -rw-r--r-- | Library/Formula/appscale-tools.rb | 15 | 
1 files changed, 4 insertions, 11 deletions
diff --git a/Library/Formula/appscale-tools.rb b/Library/Formula/appscale-tools.rb index 5248d1df5..9bfb5a2c6 100644 --- a/Library/Formula/appscale-tools.rb +++ b/Library/Formula/appscale-tools.rb @@ -56,17 +56,10 @@ class AppscaleTools < Formula    def install      ENV.prepend_create_path "PYTHONPATH", libexec+"lib/python2.7/site-packages" -    install_args = [ "setup.py", "install", "--prefix=#{libexec}" ] - -    resource("termcolor").stage { system "python", *install_args } -    resource("pyyaml").stage { system "python", *install_args } -    resource("SOAPpy").stage { system "python", *install_args } -    resource("boto").stage { system "python", *install_args } -    resource("argparse").stage { system "python", *install_args } -    resource("oauth2client").stage { system "python", *install_args } -    resource("google-api-python-client").stage { system "python", *install_args } -    resource("httplib2").stage { system "python", *install_args } -    resource("python-gflags").stage { system "python", *install_args } + +    resources.each do |r| +      r.stage { system "python", "setup.py", "install", "--prefix=#{libexec}" } +    end      inreplace Dir["bin/appscale*"] do |s|        s.gsub! /^lib = os.*/, "lib = '#{libexec}'"  | 
