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:
parent
72c1ea1a04
commit
a16173fd8d
1 changed files with 3 additions and 3 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue