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

Closes Homebrew/homebrew#15777.
This commit is contained in:
Adam Vandenberg 2012-11-01 07:53:41 -07:00
parent 44aa5d163c
commit d1be7051bd

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
@ -41,7 +42,7 @@ class Gnuplot < Formula
gd = Formula.factory 'gd'
# Aquaterm disabled due to breakage. See:
# https://github.com/mxcl/homebrew/issues/14647
# https://github.com/mxcl/homebrew/issues/14647
args = %W[
--disable-debug
--disable-dependency-tracking
@ -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'