aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gnuplot.rb
diff options
context:
space:
mode:
authorMike McQuaid2012-10-21 17:49:24 +0100
committerMike McQuaid2012-10-21 17:49:24 +0100
commite84ea7132f4f6334d2610542c1093788294c6c9a (patch)
tree38bb32ed9daff5292f1b0746bf5443760428c1b7 /Library/Formula/gnuplot.rb
parent0eaa72900c8634ac49ef6ceedaee388f96d03e0c (diff)
downloadhomebrew-e84ea7132f4f6334d2610542c1093788294c6c9a.tar.bz2
gnuplot: remove X11 dependency.
Diffstat (limited to 'Library/Formula/gnuplot.rb')
-rw-r--r--Library/Formula/gnuplot.rb5
1 files changed, 3 insertions, 2 deletions
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'