aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-27 22:03:58 -0700
committerAdam Vandenberg2012-08-27 22:03:58 -0700
commit87c68b8d940dfae85b03f893c4d07e468e61e67f (patch)
treeb3173c9bcd3762643622e0dcbc56bd146649c5bb /Library
parentb9f3a3152651c7301bc8f3d4e1b47667698cdeb6 (diff)
downloadhomebrew-87c68b8d940dfae85b03f893c4d07e468e61e67f.tar.bz2
fceux: use new dsl
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/fceux.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/Formula/fceux.rb b/Library/Formula/fceux.rb
index 11532e06a..5489f9150 100644
--- a/Library/Formula/fceux.rb
+++ b/Library/Formula/fceux.rb
@@ -5,20 +5,18 @@ class Fceux < Formula
url 'http://downloads.sourceforge.net/fceultra/fceux-2.1.5.src.tar.bz2'
md5 'e8b20e62bbbb061b1a59d51b47c827bd'
+ option 'no-gtk', "Build without Gtk+ support"
+
depends_on 'scons' => :build
depends_on 'sdl'
depends_on 'libzip'
- depends_on 'gtk+' unless ARGV.include? "--no-gtk"
-
- def options
- [['--no-gtk', "Build without Gtk+ support."]]
- end
+ depends_on 'gtk+' unless build.include? "no-gtk"
# fixes compilation errors on osx; upstream in 2.1.6
def patches; DATA; end
def install
- if ARGV.include? "--no-gtk"
+ if build.include? "no-gtk"
inreplace "SConstruct",
"BoolVariable('GTK', 'Enable GTK2 GUI (SDL only)', 1),",
"BoolVariable('GTK', 'Enable GTK2 GUI (SDL only)', 0),"