diff options
| author | Adam Vandenberg | 2012-08-09 22:13:32 -0700 | 
|---|---|---|
| committer | Adam Vandenberg | 2012-08-09 22:13:32 -0700 | 
| commit | f6e5605c371a1a61ded11e6c1f945253d503c2a6 (patch) | |
| tree | 08047e89f70cc1e143d33dcb419e3cb3796a6eb1 /Library/Formula/libidl.rb | |
| parent | 8939844e43d1f5748a04eac404bfc95b74c33a07 (diff) | |
| download | homebrew-f6e5605c371a1a61ded11e6c1f945253d503c2a6.tar.bz2 | |
libidl: use options dsl
Diffstat (limited to 'Library/Formula/libidl.rb')
| -rw-r--r-- | Library/Formula/libidl.rb | 13 | 
1 files changed, 6 insertions, 7 deletions
| diff --git a/Library/Formula/libidl.rb b/Library/Formula/libidl.rb index e53a966e4..a652d7c0d 100644 --- a/Library/Formula/libidl.rb +++ b/Library/Formula/libidl.rb @@ -1,21 +1,20 @@  require 'formula'  class Libidl < Formula -  url 'http://ftp.acc.umu.se/pub/gnome/sources/libIDL/0.8/libIDL-0.8.14.tar.bz2'    homepage 'http://ftp.acc.umu.se/pub/gnome/sources/libIDL/0.8/' +  url 'http://ftp.acc.umu.se/pub/gnome/sources/libIDL/0.8/libIDL-0.8.14.tar.bz2'    md5 'bb8e10a218fac793a52d404d14adedcb' +  option :universal +    depends_on 'pkg-config' => :build    depends_on 'gettext'    depends_on 'glib' -  def options -    [['--universal', 'Build universal binaries.']] -  end -    def install -    ENV.universal_binary if ARGV.build_universal? -    system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking" +    ENV.universal_binary if build.universal? +    system "./configure", "--disable-dependency-tracking", +                          "--prefix=#{prefix}"      system "make install"    end  end | 
