diff options
| author | Mike McQuaid | 2014-01-04 13:31:49 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-01-04 13:35:47 +0000 |
| commit | 6c972509955b18ab82288b4b06133d404c46a04e (patch) | |
| tree | e78cbdf770760aff36196db666ced7b02b5fb077 | |
| parent | d11a216fbe4b03a11b2dcd93993a68b292af3aa6 (diff) | |
| download | homebrew-6c972509955b18ab82288b4b06133d404c46a04e.tar.bz2 | |
swatchbooker: cleanup python usage.
| -rw-r--r-- | Library/Formula/swatchbooker.rb | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Library/Formula/swatchbooker.rb b/Library/Formula/swatchbooker.rb index 4c0a78d8b..34e5fac94 100644 --- a/Library/Formula/swatchbooker.rb +++ b/Library/Formula/swatchbooker.rb @@ -6,8 +6,8 @@ class Swatchbooker < Formula sha1 'fd2e46c278e762dc0c3ed69f824ab620773f153e' depends_on :python - depends_on :python => ["PIL" => 'pillow'] - depends_on 'little-cms' => 'with-python' + depends_on 'PIL' => :python + #depends_on 'little-cms' => 'with-python' depends_on 'pyqt' def patches @@ -20,13 +20,9 @@ class Swatchbooker < Formula s.gsub! "/usr/lib", "#{HOMEBREW_PREFIX}/lib" end - python do - system python, "setup.py", "install", "--prefix=#{prefix}" - end - end - - def caveats - python.standard_caveats if python + system "python", "setup.py", "install", "--prefix=#{prefix}" + bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH']) + chmod 0755, libexec/'bin/swatchbooker' end def test |
