aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/frotz.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/frotz.rb')
-rw-r--r--Library/Formula/frotz.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/Library/Formula/frotz.rb b/Library/Formula/frotz.rb
index 9a63ee828..c872d6c63 100644
--- a/Library/Formula/frotz.rb
+++ b/Library/Formula/frotz.rb
@@ -6,10 +6,11 @@ class Frotz <Formula
@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", ""
+ inreplace "Makefile" do |contents|
+ contents.remove_make_var! %w[CC OPTS]
+ contents.change_make_var! "PREFIX", prefix
+ contents.change_make_var! "CONFIG_DIR", etc
+ end
system "make frotz"
system "make install"