2012-08-04 13:11:06 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Pngquant < Formula
|
|
|
|
homepage 'http://pngquant.org/'
|
2013-08-23 22:17:26 +00:00
|
|
|
url 'https://github.com/pornel/pngquant/archive/2.0.0.tar.gz'
|
|
|
|
sha1 '083746e8b15936ba2efcbd26f76f0abd930dfa03'
|
2012-08-04 13:11:06 +00:00
|
|
|
|
2013-07-25 01:11:48 +00:00
|
|
|
head 'https://github.com/pornel/pngquant.git'
|
2012-08-04 13:11:06 +00:00
|
|
|
|
|
|
|
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
|