diff options
| author | Jack Nagel | 2013-02-10 19:26:18 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-02-10 19:28:14 -0600 |
| commit | 87434496fcb25648300a0b8775ac699768f233d8 (patch) | |
| tree | 3e5bef6f8cb8c4a39b709b2b5fd1a2647bb8ea6a /Library/Homebrew/dependency_collector.rb | |
| parent | 7938ea792fe5928860a7e87457ae796fcadb96d8 (diff) | |
| download | homebrew-87434496fcb25648300a0b8775ac699768f233d8.tar.bz2 | |
Add :libltdl dep for libtool's libltdl
The :libtool dep is implicitly a build-time dep; :libltdl can be used
for software that uses the ltdl library at runtime.
Diffstat (limited to 'Library/Homebrew/dependency_collector.rb')
| -rw-r--r-- | Library/Homebrew/dependency_collector.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/Homebrew/dependency_collector.rb b/Library/Homebrew/dependency_collector.rb index e5da02429..2a40e1ad8 100644 --- a/Library/Homebrew/dependency_collector.rb +++ b/Library/Homebrew/dependency_collector.rb @@ -74,7 +74,7 @@ private def parse_symbol_spec spec, tag case spec - when :autoconf, :automake, :bsdmake, :libtool + when :autoconf, :automake, :bsdmake, :libtool, :libltdl # Xcode no longer provides autotools or some other build tools autotools_dep(spec, tag) when *X11Dependency::Proxy::PACKAGES @@ -103,8 +103,13 @@ private end def autotools_dep(spec, tag) + case spec + when :libltdl then spec, tag = :libtool, Array(tag) + else tag = Array(tag) << :build + end + unless MacOS::Xcode.provides_autotools? - Dependency.new(spec.to_s, [:build, *tag]) + Dependency.new(spec.to_s, tag) end end end |
