rdiff-backup: use new arch methods

master
Adam Vandenberg 2011-03-19 09:50:26 -07:00
parent c550860a31
commit 12106f5de7
1 changed files with 2 additions and 3 deletions

View File

@ -11,9 +11,8 @@ class RdiffBackup < Formula
# 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
ENV['ARCHFLAGS'] = archs.collect{ |a| "-arch #{a}" }.join(' ')
archs.remove_ppc!
ENV['ARCHFLAGS'] = archs.as_arch_flags
system "python", "setup.py", "--librsync-dir=#{prefix}", "build"