diff --git a/Formula/pngcheck.rb b/Formula/pngcheck.rb index fc51d195ab..80f576fc0a 100644 --- a/Formula/pngcheck.rb +++ b/Formula/pngcheck.rb @@ -1,9 +1,7 @@ -require 'formula' - class Pngcheck < Formula - homepage 'http://www.libpng.org/pub/png/apps/pngcheck.html' - url 'https://downloads.sourceforge.net/project/png-mng/pngcheck/2.3.0/pngcheck-2.3.0.tar.gz' - sha1 'e7f1535abbf2f809e036a9a43c759eeac5e39350' + homepage "http://www.libpng.org/pub/png/apps/pngcheck.html" + url "https://downloads.sourceforge.net/project/png-mng/pngcheck/2.3.0/pngcheck-2.3.0.tar.gz" + sha1 "e7f1535abbf2f809e036a9a43c759eeac5e39350" revision 1 bottle do @@ -14,7 +12,11 @@ class Pngcheck < Formula end def install - system 'make -f Makefile.unx ZINC= ZLIB=-lz' + system "make", "-f", "Makefile.unx", "ZINC=", "ZLIB=-lz" bin.install %w[pngcheck pngsplit png-fix-IDAT-windowsize] end + + test do + system bin/"pngcheck", test_fixtures("test.png") + end end