Browse files

Cairo: Don't build with XCB support on Leopard

The version of XCB included with Leopard is too old to build against.
  • Loading branch information...
1 parent 22e095e commit fef62e271602ba8ae6e84a74a5db6d6d86239866 @Sharpie Sharpie committed Feb 16, 2012
Showing with 8 additions and 4 deletions.
  1. +8 −4 Library/Formula/cairo.rb
View
12 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

0 comments on commit fef62e2

Please sign in to comment.