homebrew-core/Formula/pngquant.rb
Brett Koonce 2e648ae8b5 pngquant 1.8.4
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-08-16 23:25:27 -07:00

22 lines
509 B
Ruby

require 'formula'
class Pngquant < Formula
homepage 'http://pngquant.org/'
url 'https://github.com/pornel/pngquant/archive/1.8.4.tar.gz'
sha1 '66a0158a8e228fbec561d2236abddec5a3bc4649'
head 'https://github.com/pornel/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