Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
gnuplot: fix TeX compile
Browse files Browse the repository at this point in the history
Closes #48568.
  • Loading branch information
DomT4 committed Mar 25, 2016
1 parent b244376 commit 43f1afe
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Library/Formula/gnuplot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ class Gnuplot < Formula
depends_on "libtool" => :build
end

option "with-cairo", "Build the Cairo based terminals"
option "without-lua", "Build without the lua/TikZ terminal"
option "with-test", "Verify the build with make check"
option "with-cairo", "Build the Cairo based terminals"
option "without-lua", "Build without the lua/TikZ terminal"
option "with-test", "Verify the build with make check"
option "without-emacs", "Do not build Emacs lisp files"
option "with-wxmac", "Build wxmac support. Need with-cairo to build wxt terminal"
option "with-tex", "Build with LaTeX support"
option "with-tex", "Build with LaTeX support"
option "with-aquaterm", "Build with AquaTerm support"

deprecated_option "with-x" => "with-x11"
Expand Down Expand Up @@ -87,17 +87,19 @@ def install
args << "--with-qt=no"
end

# The tutorial requires the deprecated subfigure TeX package installed
# or it halts in the middle of the build for user-interactive resolution.
# Per upstream: "--with-tutorial is horribly out of date."
args << "--without-tutorial"
args << "--without-lua" if build.without? "lua"
args << "--without-lisp-files" if build.without? "emacs"
args << ((build.with? "aquaterm") ? "--with-aquaterm" : "--without-aquaterm")
args << ((build.with? "x11") ? "--with-x" : "--without-x")

if build.with? "tex"
args << "--with-latex"
args << "--with-tutorial"
else
args << "--without-latex"
args << "--without-tutorial"
end

system "./prepare" if build.head?
Expand Down

0 comments on commit 43f1afe

Please sign in to comment.