23 lines
520 B
Ruby
23 lines
520 B
Ruby
require 'formula'
|
|
|
|
class Pngquant < Formula
|
|
homepage 'http://pngquant.org/'
|
|
url 'https://github.com/pornel/improved-pngquant/tarball/1.7.3'
|
|
sha1 'f6c22528428ee2806fa611aa536443306e45542f'
|
|
|
|
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
|