require 'formula' class Pngcrush < Formula homepage 'http://pmt.sourceforge.net/pngcrush/' url 'http://downloads.sourceforge.net/project/pmt/pngcrush/1.7.17/pngcrush-1.7.17.tar.bz2' md5 '80F5EBBE7D15C58B077EDAE7738F08AD' def install # use our CFLAGS, LDFLAGS, CC, and LD inreplace 'Makefile' do |s| s.remove_make_var! %w[CFLAGS LDFLAGS CC LD] end system "make" bin.install 'pngcrush' end end