aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/zookeeper.rb
diff options
context:
space:
mode:
authorKevin Clark2011-05-10 02:56:44 -0700
committerAdam Vandenberg2011-05-12 07:34:09 -0700
commit6d047c727307832b49ec6eb2d26c97465d869556 (patch)
tree5b4ff470c548913115840de4db5f7b5f83dca913 /Library/Formula/zookeeper.rb
parent55611732955cccff774aeb585cc5def62b35bbba (diff)
downloadhomebrew-6d047c727307832b49ec6eb2d26c97465d869556.tar.bz2
zookeeper: Don't build PPC extensions
Default $ARCHFLAGS includes ppc, which doesn't work on modern systems Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/zookeeper.rb')
-rw-r--r--Library/Formula/zookeeper.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/zookeeper.rb b/Library/Formula/zookeeper.rb
index ee654cdb7..956eb98f6 100644
--- a/Library/Formula/zookeeper.rb
+++ b/Library/Formula/zookeeper.rb
@@ -41,6 +41,13 @@ class Zookeeper < Formula
end
def install
+ # Don't try to build extensions for PPC
+ if Hardware.is_32_bit?
+ ENV['ARCHFLAGS'] = "-arch i386"
+ else
+ ENV['ARCHFLAGS'] = "-arch i386 -arch x86_64"
+ end
+
# Prep work for svn compile.
if ARGV.build_head?
system "ant", "compile_jute"