Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit fef62e271602ba8ae6e84a74a5db6d6d86239866 1 parent 22e095e
@Sharpie Sharpie authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.