aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2011-03-19 09:50:37 -0700
committerAdam Vandenberg2011-03-19 09:50:37 -0700
commit35334bfb43ddda04f644ab17ddf95a5e6bf92b19 (patch)
tree2ae20b4d01f8e98e0bc90e741e0900bac210789b
parent535d817fc508dd1256216e79cbde0a356a33e77f (diff)
downloadhomebrew-35334bfb43ddda04f644ab17ddf95a5e6bf92b19.tar.bz2
uwsgi: use new arch methods
-rw-r--r--Library/Formula/uwsgi.rb8
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