Add depend_on :apr

This commit is contained in:
Jack Nagel 2014-11-05 20:32:09 -06:00
parent d78769743d
commit 6eabbed464
2 changed files with 25 additions and 0 deletions

View File

@ -124,6 +124,7 @@ class DependencyCollector
when :ld64 then LD64Dependency.new if MacOS.version < :leopard
when :ant then ant_dep(spec, tags)
when :clt # deprecated
when :apr then AprDependency.new(tags)
when :cairo, :fontconfig, :freetype, :libpng, :pixman # deprecated
Dependency.new(spec.to_s, tags)
when :libltdl # deprecated

View File

@ -130,3 +130,27 @@ class JavaDependency < Requirement
EOS
end
end
class AprDependency < Requirement
fatal true
satisfy(:build_env => false) { MacOS::CLT.installed? }
def message
message = <<-EOS.undent
Due to packaging problems on Apple's part, software that compiles
against APR requires the standalone Command Line Tools.
EOS
if MacOS.version >= :mavericks
message += <<-EOS.undent
Run `xcode-select --install` to install them.
EOS
else
message += <<-EOS.undent
The standalone package can be obtained from
https://developer.apple.com/downloads/,
or it can be installed via Xcode's preferences.
EOS
end
end
end