aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/frotz.rb
diff options
context:
space:
mode:
authorMax Howell2010-01-13 11:06:52 +0000
committerMax Howell2010-01-13 11:23:11 +0000
commit99acd7f4fb773d7af8bef08ffa6a79c2cf4c9798 (patch)
treef8fec0fae27724f59a07b0561a9276f24e56f47a /Library/Formula/frotz.rb
parentaf6d133c80c0bbf26bf752260feececc99438fd5 (diff)
downloadhomebrew-99acd7f4fb773d7af8bef08ffa6a79c2cf4c9798.tar.bz2
Use new inreplace syntax where useful
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"