pngcheck: modernize and add test

This commit is contained in:
Xu Cheng 2015-04-10 17:52:06 +08:00
parent 473643b053
commit 4d3ad2fb2f

View file

@ -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