diff options
| author | Adam Vandenberg | 2013-04-30 09:51:32 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-04-30 11:57:36 -0700 |
| commit | 5fa2bf64970e7b26ecdd1fc24bbcc5483f2c5a94 (patch) | |
| tree | 166f8ae5b4d159c79a41b545db3eb9141f3b8197 /Library | |
| parent | 0d7e2792f2dc911b8acdd3ec400d319c278a9509 (diff) | |
| download | homebrew-5fa2bf64970e7b26ecdd1fc24bbcc5483f2c5a94.tar.bz2 | |
cairo: allow glib support without x
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/cairo.rb | 5 |
1 files changed, 3 insertions, 2 deletions
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? |
