2012-08-04 13:11:06 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Pngquant < Formula
|
|
|
|
homepage 'http://pngquant.org/'
|
2014-04-19 15:01:40 +00:00
|
|
|
url 'https://github.com/pornel/pngquant/archive/2.2.0.tar.gz'
|
|
|
|
sha1 'd7ed6f13fdbef52074cbaee5452a2e7e27573376'
|
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
|
|
|
|
2014-03-23 02:51:41 +00:00
|
|
|
depends_on 'libpng'
|
2012-08-04 13:11:06 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-08-04 13:11:06 +00:00
|
|
|
system "#{bin}/pngquant", "--help"
|
|
|
|
end
|
|
|
|
end
|