aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2014-12-31 15:27:33 +0800
committerMike McQuaid2014-12-31 14:52:18 +0000
commitbc581c73ec8a6af9d7a1994c2b83cbe227730615 (patch)
tree1123229f26b3585f520fc2ca09cc36c877c5520a /Library
parent6b2554777a710bbc6575e45655d94d1a1fba88ce (diff)
downloadhomebrew-bc581c73ec8a6af9d7a1994c2b83cbe227730615.tar.bz2
optipng: modernize
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/optipng.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/Library/Formula/optipng.rb b/Library/Formula/optipng.rb
index 7400ab5e7..d60364e3e 100644
--- a/Library/Formula/optipng.rb
+++ b/Library/Formula/optipng.rb
@@ -1,10 +1,8 @@
-require 'formula'
-
class Optipng < Formula
- homepage 'http://optipng.sourceforge.net/'
- head 'http://hg.code.sf.net/p/optipng/mercurial', :using => :hg
- url 'https://downloads.sourceforge.net/project/optipng/OptiPNG/optipng-0.7.5/optipng-0.7.5.tar.gz'
- sha1 '30b6c333d74fc0f5dc83004aace252fa3321368b'
+ homepage "http://optipng.sourceforge.net/"
+ head "http://hg.code.sf.net/p/optipng/mercurial", :using => :hg
+ url "https://downloads.sourceforge.net/project/optipng/OptiPNG/optipng-0.7.5/optipng-0.7.5.tar.gz"
+ sha1 "30b6c333d74fc0f5dc83004aace252fa3321368b"
# Fix compilation on 10.10
# http://sourceforge.net/p/optipng/bugs/47/
@@ -14,7 +12,7 @@ class Optipng < Formula
system "./configure", "--with-system-zlib",
"--prefix=#{prefix}",
"--mandir=#{man}"
- system "make install"
+ system "make", "install"
end
end