From 0cd2681056f93a18c05f69cb78066eea49aaa7ff Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 27 Aug 2012 21:31:40 -0700 Subject: ecasound: use new dsl --- Library/Formula/ecasound.rb | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3