gnu-plot: add option to skip building emacs lisp files

Closes Homebrew/homebrew#15777.
master
Adam Vandenberg 2012-11-01 07:53:41 -07:00
parent 44aa5d163c
commit d1be7051bd
1 changed files with 10 additions and 8 deletions

View File

@ -7,11 +7,12 @@ class Gnuplot < Formula
head 'cvs://:pserver:anonymous@gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot:gnuplot', :using => :cvs
option 'pdf', 'Build with pdflib-lite support.'
option 'wx', 'Build with wxWidgets support.'
option 'nolua', 'Build without lua support.'
option 'nogd', 'Build without gd support.'
option 'with-x', 'Build with X support.'
option 'pdf', 'Build with pdflib-lite support'
option 'wx', 'Build with wxWidgets support'
option 'nolua', 'Build without lua support'
option 'nogd', 'Build without gd support'
option 'with-x', 'Build with X support'
option 'without-emacs', 'Do not build Emacs lisp files'
if build.head?
depends_on :automake
@ -50,9 +51,10 @@ class Gnuplot < Formula
--without-aquaterm
]
args << '--disable-wxwidgets' unless build.include? 'wx'
args << "--disable-wxwidgets" unless build.include? 'wx'
args << "--with-pdf=#{pdflib.prefix}" if build.include? 'pdf'
args << '--without-lua' if build.include? 'nolua'
args << "--without-lua" if build.include? 'nolua'
args << "--without-lisp-files" if build.include? 'without-emacs'
if build.include? 'nogd'
args << '--without-gd'