ruby: autoconf dep for HEAD on Xcode 4.3

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-05-14 22:34:59 -05:00
parent 2d5ba6304f
commit a9f1d022ed

View file

@ -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"]