Add depend_on :apr
This commit is contained in:
parent
d78769743d
commit
6eabbed464
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user