homebrew-core/Formula/zopfli.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

22 lines
629 B
Ruby

class Zopfli < Formula
desc "New zlib (gzip, deflate) compatible compressor"
homepage "https://code.google.com/p/zopfli/"
url "https://zopfli.googlecode.com/files/zopfli-1.0.0.zip"
sha256 "e20d73b56620285e6cce5b510d8e5da6835a81940e48cdf35a69090e666f3adb"
head "https://code.google.com/p/zopfli/", :using => :git
def install
# Makefile hardcodes gcc
inreplace "makefile", "gcc", ENV.cc
system "make", "-f", "makefile"
bin.install "zopfli"
if build.head?
system "make", "-f", "makefile", "zopflipng"
bin.install "zopflipng"
end
end
test do
system "#{bin}/zopfli"
end
end