From 5fa2bf64970e7b26ecdd1fc24bbcc5483f2c5a94 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 30 Apr 2013 09:51:32 -0700 Subject: cairo: allow glib support without x --- Library/Formula/cairo.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/cairo.rb b/Library/Formula/cairo.rb index aa5c63109..9f396ecac 100644 --- a/Library/Formula/cairo.rb +++ b/Library/Formula/cairo.rb @@ -13,6 +13,7 @@ class Cairo < Formula option :universal option 'without-x', 'Build without X11 support' + option 'with-glib', 'Build with glib (default when building with X)' env :std if build.universal? @@ -20,8 +21,8 @@ class Cairo < Formula depends_on 'pixman' depends_on 'pkg-config' => :build depends_on 'xz'=> :build - depends_on 'glib' unless build.include? 'without-x' - depends_on :x11 unless build.include? 'without-x' + depends_on 'glib' if build.with? 'x' || build.with? 'glib' + depends_on :x11 if build.with? 'x' def install ENV.universal_binary if build.universal? -- cgit v1.2.3