aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2013-10-20 20:18:09 -0500
committerJack Nagel2013-10-20 20:18:09 -0500
commit97e8767a184b8d74858a02a9d4ec8bc18f90cd70 (patch)
tree89f565a595a0f933749bd7617081e16d952d04c7 /Library/Formula
parent0c9c6725f85a0834ad590934ba7a164d805ec2c4 (diff)
downloadhomebrew-97e8767a184b8d74858a02a9d4ec8bc18f90cd70.tar.bz2
fceux: pass variable instead of using inreplace
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/fceux.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/Library/Formula/fceux.rb b/Library/Formula/fceux.rb
index df67bcd69..fa03d7546 100644
--- a/Library/Formula/fceux.rb
+++ b/Library/Formula/fceux.rb
@@ -16,13 +16,9 @@ class Fceux < Formula
depends_on :x11
def install
- if build.include? "no-gtk"
- inreplace "SConstruct",
- "BoolVariable('GTK', 'Enable GTK2 GUI (SDL only)', 1),",
- "BoolVariable('GTK', 'Enable GTK2 GUI (SDL only)', 0),"
- end
-
- system "scons"
+ args = []
+ args << "GTK=0" if build.include? "no-gtk"
+ system "scons", *args
bin.install 'src/fceux'
end
end