homebrew-core/Formula/frotz.rb
Max Howell 61b2307139 s/require 'brewkit'/require 'formula'/g
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
2009-10-15 16:48:03 +01:00

17 lines
501 B
Ruby

require 'formula'
class Frotz <Formula
@url='http://downloads.sourceforge.net/project/frotz/frotz/2.43/frotz-2.43.tar.gz'
@homepage='http://frotz.sourceforge.net/'
@md5='efe51879e012b92bb8d5f4a82e982677'
def install
inreplace "Makefile", "CC = gcc", ""
inreplace "Makefile", "OPTS = -O2", ""
inreplace "Makefile", "PREFIX = /usr/local", "PREFIX = #{prefix}"
inreplace "Makefile", "CONFIG_DIR = /usr/local/etc", ""
system "make frotz"
system "make install"
end
end