From 199b2e2c88303d4edad1eb3f9452bebf940d8fbb Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 20 Oct 2013 20:18:09 -0500 Subject: [PATCH] fceux: pass variable instead of using inreplace --- Formula/fceux.rb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Formula/fceux.rb b/Formula/fceux.rb index df67bcd69d..fa03d75461 100644 --- a/Formula/fceux.rb +++ b/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