diff options
| author | Adam Vandenberg | 2013-07-05 20:07:59 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-07-05 20:08:01 -0700 |
| commit | 827ca5462a6799081e72fefa4762f5d6d725bfd0 (patch) | |
| tree | 2790c818cff0a0ee1d6adcc0021df0776a8872ae /Library/Formula/gnuplot.rb | |
| parent | 45beb2ff1dbc3e94f124c3747fb55b0f3a2d63e0 (diff) | |
| download | homebrew-827ca5462a6799081e72fefa4762f5d6d725bfd0.tar.bz2 | |
gnuplot: allow lua 5.1 or 5.2
Closes #19565.
Diffstat (limited to 'Library/Formula/gnuplot.rb')
| -rw-r--r-- | Library/Formula/gnuplot.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/gnuplot.rb b/Library/Formula/gnuplot.rb index ef6028647..0b5a070f9 100644 --- a/Library/Formula/gnuplot.rb +++ b/Library/Formula/gnuplot.rb @@ -1,5 +1,12 @@ require 'formula' +class LuaRequirement < Requirement + fatal true + default_formula 'lua' + + satisfy { which 'pg_config' } +end + class Gnuplot < Formula homepage 'http://www.gnuplot.info' url 'http://downloads.sourceforge.net/project/gnuplot/gnuplot/4.6.3/gnuplot-4.6.3.tar.gz' @@ -24,11 +31,11 @@ class Gnuplot < Formula end depends_on 'pkg-config' => :build + depends_on LuaRequirement unless build.include? 'nolua' depends_on 'readline' depends_on 'pango' if build.include? 'cairo' or build.include? 'wx' depends_on :x11 if build.include? 'with-x' or MacOS::X11.installed? depends_on 'pdflib-lite' if build.include? 'pdf' - depends_on 'lua' unless build.include? 'nolua' depends_on 'gd' unless build.include? 'nogd' depends_on 'wxmac' if build.include? 'wx' depends_on 'qt' if build.include? 'qt' |
