homebrew-core/Formula/pngquant.rb
Brett Koonce 009d378e38 pngquant 1.8.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-02-08 09:17:37 -08:00

22 lines
520 B
Ruby

require 'formula'
class Pngquant < Formula
homepage 'http://pngquant.org/'
url 'https://github.com/pornel/improved-pngquant/tarball/1.8.2'
sha1 '0ab2116897109a42aa92d3a5f47ea3cb9b1cf87c'
head 'https://github.com/pornel/improved-pngquant.git'
depends_on :libpng
def install
ENV.append_to_cflags "-DNDEBUG" # Turn off debug
system "make", "PREFIX=#{prefix}", "CC=#{ENV.cc}"
bin.install 'pngquant'
man1.install 'pngquant.1'
end
def test
system "#{bin}/pngquant", "--help"
end
end