diff options
| author | Adam Vandenberg | 2012-09-03 14:02:15 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-09-03 14:02:15 -0700 |
| commit | 1a53d0fda336aceaac55f1694810b54f2749ce89 (patch) | |
| tree | 057a25989fb5b748c5c6e6ccbeb5465f7cfa48a1 | |
| parent | 32eeed5ed6c8843ae87306bdaeb5b15d0e78098b (diff) | |
| download | homebrew-1a53d0fda336aceaac55f1694810b54f2749ce89.tar.bz2 | |
libemu: use new dsl
| -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 |
