aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-11-05 20:32:09 -0600
committerJack Nagel2014-11-05 20:34:02 -0600
commit6eabbed464c6a33a5af8d646805fae9fa3f3c648 (patch)
treefda9b62c7c35a7fe2e85f1eafa13de22ca6b050a /Library
parentd78769743d66c2af3039c85cda69382945691abd (diff)
downloadbrew-6eabbed464c6a33a5af8d646805fae9fa3f3c648.tar.bz2
Add `depend_on :apr`
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dependency_collector.rb1
-rw-r--r--Library/Homebrew/requirements.rb24
2 files changed, 25 insertions, 0 deletions
diff --git a/Library/Homebrew/dependency_collector.rb b/Library/Homebrew/dependency_collector.rb
index 546e92af3..1641c71e6 100644
--- a/Library/Homebrew/dependency_collector.rb
+++ b/Library/Homebrew/dependency_collector.rb
@@ -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
diff --git a/Library/Homebrew/requirements.rb b/Library/Homebrew/requirements.rb
index 05576a873..7dcd5039f 100644
--- a/Library/Homebrew/requirements.rb
+++ b/Library/Homebrew/requirements.rb
@@ -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