From a9f1d022ed70fd91457fa2bca02a9c9e80cea634 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 14 May 2012 22:34:59 -0500 Subject: [PATCH] ruby: autoconf dep for HEAD on Xcode 4.3 Signed-off-by: Jack Nagel --- Formula/ruby.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Formula/ruby.rb b/Formula/ruby.rb index 593987f9ba..7d0e13da5e 100644 --- a/Formula/ruby.rb +++ b/Formula/ruby.rb @@ -7,6 +7,7 @@ class Ruby < Formula head 'http://svn.ruby-lang.org/repos/ruby/trunk/' + depends_on 'autoconf' => :build if MacOS.xcode_version.to_f >= 4.3 and ARGV.build_head? depends_on 'pkg-config' => :build depends_on 'readline' depends_on 'gdbm' @@ -44,7 +45,7 @@ class Ruby < Formula exit 1 end - system "autoconf" unless File.exists? 'configure' + system "autoconf" if ARGV.build_head? args = ["--prefix=#{prefix}", "--enable-shared"]