Remove special behavior of autotools symbol deps
Closes Homebrew/homebrew#28094.
This commit is contained in:
parent
c13311ca09
commit
d22ad92a84
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user