Skip to content

Commit

Permalink
gnuplot: update x11 option
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Nov 13, 2014
1 parent bf850ba commit d5cc329
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Formula/gnuplot.rb
Expand Up @@ -28,7 +28,6 @@ class Gnuplot < Formula

option 'pdf', 'Build the PDF terminal using pdflib-lite'
option 'wx', 'Build the wxWidgets terminal using pango'
option 'with-x', 'Build the X11 terminal'
option 'qt', 'Build the Qt4 terminal'
option 'cairo', 'Build the Cairo based terminals'
option 'nolua', 'Build without the lua/TikZ terminal'
Expand All @@ -38,6 +37,8 @@ class Gnuplot < Formula
option 'latex', 'Build with LaTeX support'
option 'with-aquaterm', 'Build with AquaTerm support'

deprecated_option "with-x" => "with-x11"

depends_on 'pkg-config' => :build
depends_on LuaRequirement unless build.include? 'nolua'
depends_on 'readline'
Expand All @@ -46,7 +47,7 @@ class Gnuplot < Formula
depends_on "libtiff"
depends_on "fontconfig"
depends_on 'pango' if build.include? 'cairo' or build.include? 'wx'
depends_on :x11 if build.with? "x"
depends_on :x11 => :optional
depends_on 'pdflib-lite' if build.include? 'pdf'
depends_on 'gd' unless build.include? 'nogd'
depends_on 'wxmac' if build.include? 'wx'
Expand Down Expand Up @@ -95,7 +96,7 @@ def install
args << '--without-lisp-files' if build.without? "emacs"
args << (build.with?('aquaterm') ? '--with-aquaterm' : '--without-aquaterm')

if build.with? "x"
if build.with? "x11"
args << "--with-x"
else
args << "--without-x"
Expand Down

0 comments on commit d5cc329

Please sign in to comment.