From 76aa7d41c7881b18e62c6fa987b811f0187fa42e Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Tue, 30 Apr 2013 16:50:09 +0200 Subject: [PATCH] zopfli 1.0.0 Closes Homebrew/homebrew#18150 and Homebrew/homebrew#19435. Signed-off-by: Mathias Bynens Signed-off-by: Misty De Meo --- Formula/zopfli.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Formula/zopfli.rb diff --git a/Formula/zopfli.rb b/Formula/zopfli.rb new file mode 100644 index 0000000000..80d13846d8 --- /dev/null +++ b/Formula/zopfli.rb @@ -0,0 +1,19 @@ +require 'formula' + +class Zopfli < Formula + homepage 'https://code.google.com/p/zopfli/' + url 'https://zopfli.googlecode.com/files/zopfli-1.0.0.zip' + sha1 '98ea00216e296bf3a13e241d7bc69490042ea7ce' + head 'https://code.google.com/p/zopfli/', :using => :git + + def install + # Makefile hardcodes gcc + inreplace 'Makefile', 'gcc', ENV.cc + system 'make' + bin.install 'zopfli' + end + + test do + system "#{bin}/zopfli" + end +end