diff options
| author | Nicklas Ansman Giertz | 2012-08-04 15:11:06 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-26 13:51:43 -0700 |
| commit | ac5c2707339ac4279dfa6299e84f0a6e95d305c6 (patch) | |
| tree | 288497c5e2ae04063404a417441d439f5596132c /Library | |
| parent | a595b524af334ec12282f86e4d3164165e05d7f4 (diff) | |
| download | homebrew-ac5c2707339ac4279dfa6299e84f0a6e95d305c6.tar.bz2 | |
pngquant 1.7.2
Closes #13943.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/pngquant.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/pngquant.rb b/Library/Formula/pngquant.rb new file mode 100644 index 000000000..44f1bb73d --- /dev/null +++ b/Library/Formula/pngquant.rb @@ -0,0 +1,22 @@ +require 'formula' + +class Pngquant < Formula + homepage 'http://pngquant.org/' + url 'https://github.com/pornel/improved-pngquant/tarball/1.7.2' + sha1 'fcb10d23380824451371f47a62428ce496f21636' + + 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 |
