2010-09-28 10:14:26 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Plotutils < Formula
|
2011-09-14 04:39:29 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/plotutils/plotutils-2.6.tar.gz'
|
2011-11-30 18:56:07 +00:00
|
|
|
mirror 'http://ftp.gnu.org/gnu/plotutils/plotutils-2.6.tar.gz'
|
2010-09-28 10:14:26 +00:00
|
|
|
homepage 'http://www.gnu.org/software/plotutils/'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '7921301d9dfe8991e3df2829bd733df6b2a70838'
|
2010-09-28 10:14:26 +00:00
|
|
|
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :libpng
|
2011-08-11 15:24:19 +00:00
|
|
|
|
2012-06-07 01:35:12 +00:00
|
|
|
def install
|
2011-08-11 15:24:19 +00:00
|
|
|
# Fix usage of libpng to be 1.5 compatible
|
|
|
|
inreplace 'libplot/z_write.c', 'png_ptr->jmpbuf', 'png_jmpbuf (png_ptr)'
|
|
|
|
|
2011-04-17 05:43:44 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--enable-libplotter"
|
2010-09-28 10:14:26 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|