homebrew-core/Formula/pngquant.rb
Andrew Janke c8d2d41c1d Change github /tarball/ URLs to /archive/ for formulae L-Z
This takes care of a `brew audit` complaint.

Closes Homebrew/homebrew#18828.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-29 14:59:28 -07:00

22 lines
527 B
Ruby

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