diff options
| author | Adam Vandenberg | 2012-08-27 21:31:40 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-27 21:31:40 -0700 |
| commit | 0cd2681056f93a18c05f69cb78066eea49aaa7ff (patch) | |
| tree | e15358bdd46fa68a2b55f0a6ec13344efb360512 | |
| parent | afdb436579acf24cbeccf5ac526b470af8133a0e (diff) | |
| download | homebrew-0cd2681056f93a18c05f69cb78066eea49aaa7ff.tar.bz2 | |
ecasound: use new dsl
| -rw-r--r-- | Library/Formula/ecasound.rb | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Library/Formula/ecasound.rb b/Library/Formula/ecasound.rb index c0d590d74..547a74d8a 100644 --- a/Library/Formula/ecasound.rb +++ b/Library/Formula/ecasound.rb @@ -1,17 +1,20 @@ require 'formula' +# 2.9.0 is out, but uses clock_gettime which is not available on OS X class Ecasound < Formula - url 'http://ecasound.seul.org/download/ecasound-2.8.1.tar.gz' homepage 'http://www.eca.cx/ecasound/' + url 'http://ecasound.seul.org/download/ecasound-2.8.1.tar.gz' md5 'd9ded0074a8eeb59dd507c248220d010' - def options - [["--with-ruby", "Compile with ruby support."]] - end + option "with-ruby", "Compile with ruby support" def install - args = ["--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"] - args << "--enable-rubyecasound=yes" if ARGV.include?('--with-ruby') + args = %W[ + --disable-debug + --disable-dependency-tracking + --prefix=#{prefix} + ] + args << "--enable-rubyecasound=yes" if build.include? 'with-ruby' system "./configure", *args system "make install" end |
