diff options
| author | blogabe | 2014-06-17 07:33:15 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-06-21 07:58:09 -0700 |
| commit | cca3780f6447db87932d219a97c5c25bc3fc66ff (patch) | |
| tree | c9c389e1c0077ff1e577a6459612ee00b120a284 /Library/Formula | |
| parent | f676ee184c3a29ca14c979218a92e3f1996a54ea (diff) | |
| download | homebrew-cca3780f6447db87932d219a97c5c25bc3fc66ff.tar.bz2 | |
xplanet: fix optional x11 dependency
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/xplanet.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Library/Formula/xplanet.rb b/Library/Formula/xplanet.rb index 33d6dde74..681ec5c9e 100644 --- a/Library/Formula/xplanet.rb +++ b/Library/Formula/xplanet.rb @@ -13,7 +13,7 @@ class Xplanet < Formula revision 1 - option "with-x", "Build for X11 instead of Aqua" + option "with-x11", "Build for X11 instead of Aqua" option "with-all", "Build with default Xplanet configuration dependencies" option "with-pango", "Build Xplanet to support Internationalized text library" option "with-netpbm", "Build Xplanet with PNM graphic support" @@ -30,15 +30,16 @@ class Xplanet < Formula depends_on "pango" if build.with?("pango") || build.with?("all") depends_on "cspice" if build.with?("cspice") || build.with?("all") - depends_on 'freetype' - depends_on :x11 + depends_on "freetype" + depends_on :x11 => :optional def install args = %W[ --disable-dependency-tracking --prefix=#{prefix} ] - if build.with? "x" + + if build.with? "x11" args << "--with-x" else args << "--with-aqua" << "--without-x" |
