aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorCharlie Sharpsteen2012-02-16 12:41:29 -0800
committerCharlie Sharpsteen2012-02-16 12:43:03 -0800
commitfef62e271602ba8ae6e84a74a5db6d6d86239866 (patch)
tree2e107d643425f05134fb2838406d9a6e40ea18d1 /Library/Formula
parent22e095ef37802b562425c67fbd45f3ff0978f8bc (diff)
downloadhomebrew-fef62e271602ba8ae6e84a74a5db6d6d86239866.tar.bz2
Cairo: Don't build with XCB support on Leopard
The version of XCB included with Leopard is too old to build against.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cairo.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/Library/Formula/cairo.rb b/Library/Formula/cairo.rb
index 19e989f2b..381c5ee94 100644
--- a/Library/Formula/cairo.rb
+++ b/Library/Formula/cairo.rb
@@ -14,10 +14,14 @@ class Cairo < Formula
fails_with_llvm "Throws an 'lto could not merge' error during build.", :build => 2336
def install
- system "./configure", "--disable-dependency-tracking",
- "--prefix=#{prefix}",
- "--with-x",
- "--enable-xcb"
+ args = %W[
+ --disable-dependency-tracking
+ --prefix=#{prefix}
+ --with-x
+ ]
+ args << '--enable-xcb' unless MacOS.leopard?
+
+ system "./configure", *args
system "make install"
end
end