aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gnuplot.rb19
1 files changed, 15 insertions, 4 deletions
diff --git a/Library/Formula/gnuplot.rb b/Library/Formula/gnuplot.rb
index a5c7e7d42..02a94fcfb 100644
--- a/Library/Formula/gnuplot.rb
+++ b/Library/Formula/gnuplot.rb
@@ -1,9 +1,10 @@
require 'formula'
class Gnuplot < Formula
- url 'http://downloads.sourceforge.net/project/gnuplot/gnuplot/4.4.3/gnuplot-4.4.3.tar.gz'
+ url 'http://downloads.sourceforge.net/project/gnuplot/gnuplot/4.4.4/gnuplot-4.4.4.tar.gz'
homepage 'http://www.gnuplot.info'
- md5 '639603752996f4923bc02c895fa03b45'
+ md5 '97a43328e81e57ebed7f135ca0c07e82'
+ head 'cvs://:pserver:anonymous@gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot:gnuplot', :using => :cvs
depends_on 'pkg-config' => :build
depends_on 'readline'
@@ -11,10 +12,12 @@ class Gnuplot < Formula
depends_on 'pdflib-lite' if ARGV.include? "--pdf"
depends_on 'lua' unless ARGV.include? '--nolua'
depends_on 'gd' unless ARGV.include? "--nogd"
+ depends_on 'wxmac' if ARGV.include? "--wx"
def options
[
["--pdf", "Build with pdflib-lite support."],
+ ["--wx", "Build with wxWidgets support."],
["--nolua", "Build without lua support."],
["--nogd", "Build without gd support."]
]
@@ -29,17 +32,25 @@ class Gnuplot < Formula
args = ["--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
- "--with-readline=#{readline.prefix}",
- "--disable-wxwidgets"]
+ "--with-readline=#{readline.prefix}"]
+
+ args << "--disable-wxwidgets" unless ARGV.include? "--wx"
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 "autoreconf" if ARGV.build_head?
+
system "./configure", *args
system "make install"
end
+
+ def test
+ system "gnuplot --version"
+ end
end