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/saltstack.rb | |
| parent | 24fc341c9272ea1a5a9c0abc4981bd41d9f96a25 (diff) | |
| download | homebrew-30bf648c3e9ffb24b2ed54560b1a7ba1b7196f0e.tar.bz2 | |
Simplify resource installation
Diffstat (limited to 'Library/Formula/saltstack.rb')
| -rw-r--r-- | Library/Formula/saltstack.rb | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/Library/Formula/saltstack.rb b/Library/Formula/saltstack.rb index bd66f3763..4bc6fd991 100644 --- a/Library/Formula/saltstack.rb +++ b/Library/Formula/saltstack.rb @@ -79,19 +79,9 @@ class Saltstack < Formula def install ENV["PYTHONPATH"] = lib+"python2.7/site-packages" ENV.prepend_create_path 'PYTHONPATH', libexec+'lib/python2.7/site-packages' - install_args = [ "setup.py", "install", "--prefix=#{libexec}" ] - - resource('pycrypto').stage { system "python", *install_args } - resource('pyyaml').stage { system "python", *install_args } - resource('pyzmq').stage { system "python", *install_args } - resource('msgpack-python').stage { system "python", *install_args } - resource('markupsafe').stage { system "python", *install_args } - resource('m2crypto').stage { system "python", *install_args } - resource('jinja2').stage { system "python", *install_args } - resource('apache-libcloud').stage { system "python", *install_args } - - if build.head? - resource('requests').stage { system "python", *install_args } + + resources.each do |r| + r.stage { system "python", "setup.py", "install", "--prefix=#{libexec}" } end system "python", "setup.py", "install", "--prefix=#{prefix}" |
