aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-01-02 13:45:18 +0800
committerMike McQuaid2015-01-02 09:53:02 +0000
commit72120ba1d7e7d09ce4c7709df3a1a9ea9684e870 (patch)
tree6a7bb8932a02aef86ec5089f9a770d045639bbcf /Library
parentf67314a82442fbdbde4f50400b7e6678f41fe704 (diff)
downloadhomebrew-72120ba1d7e7d09ce4c7709df3a1a9ea9684e870.tar.bz2
plotutils: modernize
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/plotutils.rb16
1 files changed, 7 insertions, 9 deletions
diff --git a/Library/Formula/plotutils.rb b/Library/Formula/plotutils.rb
index 402695f4e..6b443c1d0 100644
--- a/Library/Formula/plotutils.rb
+++ b/Library/Formula/plotutils.rb
@@ -1,18 +1,16 @@
-require 'formula'
-
class Plotutils < Formula
- homepage 'http://www.gnu.org/software/plotutils/'
- url 'http://ftpmirror.gnu.org/plotutils/plotutils-2.6.tar.gz'
- mirror 'http://ftp.gnu.org/gnu/plotutils/plotutils-2.6.tar.gz'
- sha1 '7921301d9dfe8991e3df2829bd733df6b2a70838'
+ homepage "http://www.gnu.org/software/plotutils/"
+ url "http://ftpmirror.gnu.org/plotutils/plotutils-2.6.tar.gz"
+ mirror "http://ftp.gnu.org/gnu/plotutils/plotutils-2.6.tar.gz"
+ sha1 "7921301d9dfe8991e3df2829bd733df6b2a70838"
revision 1
- depends_on 'libpng'
+ depends_on "libpng"
depends_on :x11 => :optional
def install
# Fix usage of libpng to be 1.5 compatible
- inreplace 'libplot/z_write.c', 'png_ptr->jmpbuf', 'png_jmpbuf (png_ptr)'
+ inreplace "libplot/z_write.c", "png_ptr->jmpbuf", "png_jmpbuf (png_ptr)"
args = ["--disable-debug",
"--disable-dependency-tracking",
@@ -22,6 +20,6 @@ class Plotutils < Formula
system "./configure", *args
system "make"
- system "make install"
+ system "make", "install"
end
end