homebrew-core/Formula/pngquant.rb
Ted Pennings 4cd0935be7 Convert all 'def test' formulae to 'test do'
Closes Homebrew/homebrew#26942.
Closes Homebrew/homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-24 19:54:02 -08:00

22 lines
508 B
Ruby

require 'formula'
class Pngquant < Formula
homepage 'http://pngquant.org/'
url 'https://github.com/pornel/pngquant/archive/2.0.2.tar.gz'
sha1 'b7d3971d73a628ca5743331cf09bbe2e5574be73'
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
test do
system "#{bin}/pngquant", "--help"
end
end