homebrew-core/Formula/gnuplot.rb

25 lines
694 B
Ruby
Raw Normal View History

require 'formula'
class Gnuplot <Formula
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'
md5 'e708665bd512153ad5c35252fe499059'
2010-06-19 02:07:00 +00:00
depends_on 'pkg-config'
depends_on 'readline'
depends_on 'gd' unless ARGV.include? "--nogd"
depends_on 'pdflib-lite' if ARGV.include? "--pdf"
def install
ENV.x11
args = ["--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-readline=#{prefix}",
"--disable-wxwidgets"]
args << "--without-lua" if ARGV.include? "--without-lua"
system "./configure", *args
system "make install"
end
end