Remove special behavior of autotools symbol deps

Closes Homebrew/homebrew#28094.
This commit is contained in:
Jack Nagel 2014-04-03 09:11:38 -05:00
parent c13311ca09
commit d22ad92a84
2 changed files with 0 additions and 21 deletions

View File

@ -136,8 +136,6 @@ class DependencyCollector
end end
def autotools_dep(spec, tags) def autotools_dep(spec, tags)
return if MacOS::Xcode.provides_autotools?
if spec == :libltdl if spec == :libltdl
spec = :libtool spec = :libtool
tags << :run tags << :run

View File

@ -86,25 +86,6 @@ class DependencyCollectorTests < Test::Unit::TestCase
assert dep.optional? assert dep.optional?
end end
def test_libltdl_not_build_dep
MacOS::Xcode.stubs(:provides_autotools?).returns(false)
dep = @d.build(:libltdl)
assert_equal Dependency.new("libtool"), dep
assert !dep.build?
end
def test_autotools_dep_no_system_autotools
MacOS::Xcode.stubs(:provides_autotools?).returns(false)
dep = @d.build(:libtool)
assert_equal Dependency.new("libtool"), dep
assert dep.build?
end
def test_autotools_dep_system_autotools
MacOS::Xcode.stubs(:provides_autotools?).returns(true)
assert_nil @d.build(:libtool)
end
def test_ld64_dep_pre_leopard def test_ld64_dep_pre_leopard
MacOS.stubs(:version).returns(MacOS::Version.new("10.4")) MacOS.stubs(:version).returns(MacOS::Version.new("10.4"))
assert_equal LD64Dependency.new, @d.build(:ld64) assert_equal LD64Dependency.new, @d.build(:ld64)