Enable LaTeX support in gnuplot.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>master
parent
8873be8456
commit
02050f1251
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue