Gnuplot: use opt_prefix for keg_only dependencies.

* Avoid broken path when keg_only dependencies updates.

Closes Homebrew/homebrew#16567.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Xiyue Deng 2012-12-13 22:03:30 -08:00 committed by Adam Vandenberg
parent 72c1ea1a04
commit a16173fd8d

View file

@ -41,13 +41,13 @@ class Gnuplot < Formula
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--with-readline=#{readline.prefix}
--with-readline=#{readline.opt_prefix}
--without-latex
--without-tutorial
]
args << "--with-pdf=#{pdflib.prefix}" if build.include? 'pdf'
args << '--with' + ((build.include? 'nogd') ? 'out-gd' : "-gd=#{gd.prefix}")
args << "--with-pdf=#{pdflib.opt_prefix}" if build.include? 'pdf'
args << '--with' + ((build.include? 'nogd') ? 'out-gd' : "-gd=#{gd.opt_prefix}")
args << '--disable-wxwidgets' unless build.include? 'wx'
args << '--without-cairo' unless build.include? 'cairo'
args << '--enable-qt' if build.include? 'qt'