2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-20 16:51:35 +00:00
|
|
|
|
|
|
|
class Gnuplot <Formula
|
2010-03-15 12:10:07 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/gnuplot/gnuplot/4.4.0/gnuplot-4.4.0.tar.gz'
|
2010-05-10 04:18:50 +00:00
|
|
|
homepage 'http://www.gnuplot.info'
|
2010-03-15 12:10:07 +00:00
|
|
|
md5 'e708665bd512153ad5c35252fe499059'
|
|
|
|
|
2010-06-19 02:07:00 +00:00
|
|
|
depends_on 'pkg-config'
|
2009-09-20 16:51:35 +00:00
|
|
|
depends_on 'readline'
|
2010-03-23 10:58:39 +00:00
|
|
|
depends_on 'gd' unless ARGV.include? "--nogd"
|
|
|
|
depends_on 'pdflib-lite' if ARGV.include? "--pdf"
|
2009-09-20 16:51:35 +00:00
|
|
|
|
|
|
|
def install
|
2010-03-15 12:10:07 +00:00
|
|
|
ENV.x11
|
2010-06-16 04:16:40 +00:00
|
|
|
args = ["--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-readline=#{prefix}",
|
|
|
|
"--disable-wxwidgets"]
|
|
|
|
args << "--without-lua" if ARGV.include? "--without-lua"
|
|
|
|
|
|
|
|
system "./configure", *args
|
2009-09-20 16:51:35 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|