aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-05-14 22:34:59 -0500
committerJack Nagel2012-05-14 22:42:27 -0500
commit90c8b8a0f04514094a8e47a2adb1a9237bb85636 (patch)
tree9fa323ecb0a05f8693db4d6836cb5b493a0e128c /Library
parentaaab5746d86721f7f407f92fc457301750cb203e (diff)
downloadhomebrew-90c8b8a0f04514094a8e47a2adb1a9237bb85636.tar.bz2
ruby: autoconf dep for HEAD on Xcode 4.3
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ruby.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Formula/ruby.rb b/Library/Formula/ruby.rb
index 593987f9b..7d0e13da5 100644
--- a/Library/Formula/ruby.rb
+++ b/Library/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"]