homebrew-core/Formula/zopfli.rb
Martin Czygan 257a47c30a zopfli: fix non-standard makefile name
Non-standard `makefile` prohibited build on case-sensitive filesystem.
See: https://code.google.com/p/zopfli/source/browse/

Closes Homebrew/homebrew#26348.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-02-02 20:35:25 +00:00

23 lines
566 B
Ruby

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', '-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