From e84ea7132f4f6334d2610542c1093788294c6c9a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 21 Oct 2012 17:49:24 +0100 Subject: gnuplot: remove X11 dependency. --- Library/Formula/gnuplot.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Library/Formula/gnuplot.rb') diff --git a/Library/Formula/gnuplot.rb b/Library/Formula/gnuplot.rb index 8296315db..26c46e4b1 100644 --- a/Library/Formula/gnuplot.rb +++ b/Library/Formula/gnuplot.rb @@ -11,6 +11,7 @@ class Gnuplot < Formula option 'wx', 'Build with wxWidgets support.' option 'nolua', 'Build without lua support.' option 'nogd', 'Build without gd support.' + option 'with-x', 'Build with X support.' if build.head? depends_on :automake @@ -19,8 +20,8 @@ class Gnuplot < Formula depends_on 'pkg-config' => :build depends_on 'readline' - depends_on 'pango' - depends_on :x11 + depends_on 'pango' unless build.include? 'with-x' or MacOS::X11.installed? + depends_on :x11 if build.include? 'with-x' or MacOS::X11.installed? depends_on 'pdflib-lite' if build.include? 'pdf' depends_on 'lua' unless build.include? 'nolua' depends_on 'gd' unless build.include? 'nogd' -- cgit v1.2.3