gnuplot: move gd to recommended
Closes #9403. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>master
parent
6b80ddd8ec
commit
c0d9523daf
|
@ -25,6 +25,7 @@ class Gnuplot < Formula
|
|||
option "with-wxmac", "Build wxmac support. Need with-cairo to build wxt terminal"
|
||||
option "with-tex", "Build with LaTeX support"
|
||||
option "with-aquaterm", "Build with AquaTerm support"
|
||||
option "without-gd", "Build without gd based terminals"
|
||||
|
||||
deprecated_option "with-x" => "with-x11"
|
||||
deprecated_option "pdf" => "with-pdflib-lite"
|
||||
|
@ -40,15 +41,9 @@ class Gnuplot < Formula
|
|||
deprecated_option "with-latex" => "with-tex"
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "fontconfig"
|
||||
depends_on "freetype"
|
||||
depends_on "gd"
|
||||
depends_on "gd" => :recommended
|
||||
depends_on "lua" => :recommended
|
||||
depends_on "jpeg"
|
||||
depends_on "libpng"
|
||||
depends_on "libtiff"
|
||||
depends_on "readline"
|
||||
depends_on "webp"
|
||||
depends_on "pango" if build.with?("cairo") || build.with?("wxmac")
|
||||
depends_on "pdflib-lite" => :optional
|
||||
depends_on "qt@5.7" => :optional
|
||||
|
@ -82,6 +77,8 @@ class Gnuplot < Formula
|
|||
|
||||
args << "--with-pdf=#{pdflib}" if build.with? "pdflib-lite"
|
||||
|
||||
args << "--without-gd" if build.without? "gd"
|
||||
|
||||
if build.without? "wxmac"
|
||||
args << "--disable-wxwidgets"
|
||||
args << "--without-cairo" if build.without? "cairo"
|
||||
|
@ -128,10 +125,10 @@ class Gnuplot < Formula
|
|||
|
||||
test do
|
||||
system "#{bin}/gnuplot", "-e", <<-EOS.undent
|
||||
set terminal png;
|
||||
set output "#{testpath}/image.png";
|
||||
set terminal dumb;
|
||||
set output "#{testpath}/graph.txt";
|
||||
plot sin(x);
|
||||
EOS
|
||||
File.exist? testpath/"image.png"
|
||||
File.exist? testpath/"graph.txt"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue