diff options
| author | Adam Vandenberg | 2011-03-19 09:50:37 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-19 09:50:37 -0700 |
| commit | 35334bfb43ddda04f644ab17ddf95a5e6bf92b19 (patch) | |
| tree | 2ae20b4d01f8e98e0bc90e741e0900bac210789b | |
| parent | 535d817fc508dd1256216e79cbde0a356a33e77f (diff) | |
| download | homebrew-35334bfb43ddda04f644ab17ddf95a5e6bf92b19.tar.bz2 | |
uwsgi: use new arch methods
| -rw-r--r-- | Library/Formula/uwsgi.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/uwsgi.rb b/Library/Formula/uwsgi.rb index d1d4da830..02ec7bf52 100644 --- a/Library/Formula/uwsgi.rb +++ b/Library/Formula/uwsgi.rb @@ -6,13 +6,11 @@ class Uwsgi < Formula md5 'eab88c552e4c7c4ecb5188cdefc43390' def install - # Find the archs of the Python we are building against. + # Find the arch for the Python we are building against. # We remove 'ppc' support, so we can pass Intel-optimized CFLAGS. archs = archs_for_command("python") - archs.delete :ppc7400 - archs.delete :ppc64 - - flags = archs.collect{ |a| "-arch #{a}" }.join(' ') + archs.remove_ppc! + flags = archs.as_arch_flags ENV.append 'CFLAGS', flags ENV.append 'LDFLAGS', flags |
