diff options
| -rw-r--r-- | Library/Formula/libemu.rb | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/Library/Formula/libemu.rb b/Library/Formula/libemu.rb index e0491c8b7..62c4e03e9 100644 --- a/Library/Formula/libemu.rb +++ b/Library/Formula/libemu.rb @@ -1,19 +1,12 @@ require 'formula' -def use_python? - ARGV.include? '--enable-python-bindings' -end - class Libemu < Formula head 'http://git.carnivore.it/libemu.git' homepage 'http://libemu.carnivore.it/' - depends_on 'pkg-config' => :build - - def options - [["--enable-python-bindings", "Compile bindings for Python"]] - end + option "enable-python-bindings", "Compile bindings for Python" + depends_on 'pkg-config' => :build depends_on :automake depends_on :libtool @@ -22,10 +15,12 @@ class Libemu < Formula # Need to fix the static location of pkgconfigpath s.gsub! '/usr/lib/pkgconfig/', "#{lib}/pkgconfig/" end - args = ["--disable-debug", - "--disable-dependency-tracking", - "--prefix=#{prefix}"] - args << "--enable-python-bindings" if use_python? + args = %W[ + --disable-debug + --disable-dependency-tracking + --prefix=#{prefix} + ] + args << "--enable-python-bindings" if build.include? 'enable-python-bindings' system "autoreconf -v -i" system "./configure", *args |
