diff options
| -rw-r--r-- | Library/Formula/gnuplot.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Library/Formula/gnuplot.rb b/Library/Formula/gnuplot.rb index a4d6b4ec1..f738eaa30 100644 --- a/Library/Formula/gnuplot.rb +++ b/Library/Formula/gnuplot.rb @@ -16,6 +16,7 @@ class Gnuplot < Formula option 'nogd', 'Build without gd support' option 'tests', 'Verify the build with make check (1 min)' option 'without-emacs', 'Do not build Emacs lisp files' + option 'latex', 'Build with LaTeX support' if build.head? depends_on :automake @@ -31,6 +32,7 @@ class Gnuplot < Formula depends_on 'gd' unless build.include? 'nogd' depends_on 'wxmac' if build.include? 'wx' depends_on 'qt' if build.include? 'qt' + depends_on :tex if build.include? 'latex' def install # Help configure find libraries @@ -42,8 +44,6 @@ class Gnuplot < Formula --disable-dependency-tracking --prefix=#{prefix} --with-readline=#{readline.opt_prefix} - --without-latex - --without-tutorial ] args << "--with-pdf=#{pdflib.opt_prefix}" if build.include? 'pdf' @@ -54,6 +54,14 @@ class Gnuplot < Formula args << '--without-lua' if build.include? 'nolua' args << '--without-lisp-files' if build.include? 'without-emacs' + if build.include? 'latex' + args << '--with-latex' + args << '--with-tutorial' + else + args << '--without-latex' + args << '--without-tutorial' + end + system './prepare' if build.head? system "./configure", *args ENV.j1 # or else emacs tries to edit the same file with two threads |
