diff options
| author | Xu Cheng | 2015-04-10 17:52:06 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-04-10 17:52:06 +0800 |
| commit | bfb2a6b078f437ffbdc5681405840a8fea6988f8 (patch) | |
| tree | a15b9953beda5e8d734831d4cf55f9d2c1e7e35f /Library | |
| parent | dc612ee11e870ccc7cda08edebfe9f0fcae9c47b (diff) | |
| download | homebrew-bfb2a6b078f437ffbdc5681405840a8fea6988f8.tar.bz2 | |
pngcheck: modernize and add test
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/pngcheck.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Library/Formula/pngcheck.rb b/Library/Formula/pngcheck.rb index fc51d195a..80f576fc0 100644 --- a/Library/Formula/pngcheck.rb +++ b/Library/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 |
