diff options
| author | Xiyue Deng | 2012-12-28 16:39:20 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2013-01-13 18:25:47 -0800 |
| commit | 7907ab8ab90f3fee39c366e6ae5d0b39e0588b72 (patch) | |
| tree | c4ac865e05e722b5af3ad0a7826814a8cb9e044b /Library | |
| parent | f104952349a23f9920ef1c64c5359d2494eaffb4 (diff) | |
| download | homebrew-7907ab8ab90f3fee39c366e6ae5d0b39e0588b72.tar.bz2 | |
Enable LaTeX support in gnuplot.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -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 |
