diff options
| author | syntaxerrormmm | 2011-03-19 01:10:22 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-18 18:52:13 -0700 |
| commit | 36132f0cd5590f96e07a5cee6f5e947bead7456a (patch) | |
| tree | 3e3ee7f672434acf3e6b1241298e7eb6355f707e /Library | |
| parent | d356d3a25535e0a48a7f26a542ab6008f26297ce (diff) | |
| download | homebrew-36132f0cd5590f96e07a5cee6f5e947bead7456a.tar.bz2 | |
gnuplot 4.4.3
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/gnuplot.rb | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/Library/Formula/gnuplot.rb b/Library/Formula/gnuplot.rb index 26f9817f3..1b7ee2d1a 100644 --- a/Library/Formula/gnuplot.rb +++ b/Library/Formula/gnuplot.rb @@ -1,30 +1,48 @@ require 'formula' class Gnuplot < Formula - url 'http://downloads.sourceforge.net/project/gnuplot/gnuplot/4.4.2/gnuplot-4.4.2.tar.gz' + url 'http://downloads.sourceforge.net/project/gnuplot/gnuplot/4.4.3/gnuplot-4.4.3.tar.gz' homepage 'http://www.gnuplot.info' - md5 'a4f0dd89f9b9334890464f687ddd9f50' + md5 '639603752996f4923bc02c895fa03b45' depends_on 'pkg-config' => :build depends_on 'readline' - depends_on 'gd' unless ARGV.include? "--nogd" + depends_on 'pango' # cairo support depends_on 'pdflib-lite' if ARGV.include? "--pdf" + depends_on 'lua' unless ARGV.include? '--nolua' + depends_on 'gd' unless ARGV.include? "--nogd" def options [ - ["--pdf", "Build with pdf support."], - ["--without-lua", "Build without lua support."], + ["--pdf", "Build with pdflib-lite support."], + ["--nolua", "Build without lua support."], ["--nogd", "Build without gd support."] ] end def install + # Without this I got: + # ld: rel32 out of range in _fit_command from fit.o + # - adamv + ENV.j1 + + # Help configure find libraries ENV.x11 + readline = Formula.factory 'readline' + pdflib = Formula.factory 'pdflib-lite' + gd = Formula.factory 'gd' + args = ["--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", - "--with-readline=#{prefix}", + "--with-readline=#{readline.prefix}", "--disable-wxwidgets"] - args << "--without-lua" if ARGV.include? "--without-lua" + args << "--with-pdf=#{pdflib.prefix}" if ARGV.include? '--pdf' + args << "--without-lua" if ARGV.include? "--nolua" + if ARGV.include? '--nogd' + args << '--without-gd' + else + args << "--with-gd=#{gd.prefix}" + end system "./configure", *args system "make install" |
