homebrew-core/Formula/ecasound.rb
Andrew Janke 0bfb448068 ecasound 2.8.1: Fix ruby support behavior
Change formula to always pass explicit --enable-rubyecasound=<yes|no>
so it works regardless of the ecasound configure's default behavior
for --enable-ruby. Formula was assuming default was no, but default was
actually yes, so the ruby stuff got built even when --with-ruby was
not supplied, which could break the build when attempting to install
in to /Library/Ruby.

Fixes Homebrew/homebrew#19357.
Closes Homebrew/homebrew#19420.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-24 18:43:32 -05:00

22 lines
681 B
Ruby

require 'formula'
# 2.9.0 is out, but uses clock_gettime which is not available on OS X
class Ecasound < Formula
homepage 'http://www.eca.cx/ecasound/'
url 'http://ecasound.seul.org/download/ecasound-2.8.1.tar.gz'
sha1 '55c42a611ce59ea2b92461f49358a0cd54c40fe0'
option "with-ruby", "Compile with ruby support"
def install
args = %W[
--disable-debug
--disable-dependency-tracking
--prefix=#{prefix}
]
# Always explicitly control ruby, since there's some confusion about the default
args << ("--enable-rubyecasound=%s" % ((build.include? 'with-ruby') ? 'yes' : 'no'))
system "./configure", *args
system "make install"
end
end