193a78de04
Update formulas to make more idiomatic use of "inreplace", including its new ability to take a list of files to act on.
16 lines
423 B
Ruby
16 lines
423 B
Ruby
require 'formula'
|
|
|
|
class Optipng <Formula
|
|
url 'http://downloads.sourceforge.net/optipng/optipng-0.6.3.tar.gz'
|
|
homepage 'http://optipng.sourceforge.net/'
|
|
md5 '6cef405197a878acff4c6216cf38e871'
|
|
|
|
def install
|
|
inreplace 'src/scripts/gcc.mak.in' do |s|
|
|
s.gsub! '/usr/local', prefix
|
|
s.change_make_var! 'mandir', man
|
|
end
|
|
system "./configure", "-with-system-zlib"
|
|
system "make install"
|
|
end
|
|
end
|