aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominyk Tiller2014-12-25 22:40:35 +0000
committerMike McQuaid2015-01-06 17:08:32 +0000
commitaaca6edfaaedab96b7dd50b010a02e318a8abd1b (patch)
treee8728603ff0aabdaf7f9b2981648a96b4e63b184
parent50d64da1ecc00d2ee6106dc0089622e3dfd0e8a6 (diff)
downloadbrew-aaca6edfaaedab96b7dd50b010a02e318a8abd1b.tar.bz2
requirements: externalise apr requirement
Removes the apr requirement from this internal document in favour of making it an external requirement, which allows us to use an apr formula to provide apr instead of asking people to install the whole CLT package.
-rw-r--r--Library/Homebrew/requirements.rb25
1 files changed, 1 insertions, 24 deletions
diff --git a/Library/Homebrew/requirements.rb b/Library/Homebrew/requirements.rb
index e51ec488f..fb3df9384 100644
--- a/Library/Homebrew/requirements.rb
+++ b/Library/Homebrew/requirements.rb
@@ -1,4 +1,5 @@
require 'requirement'
+require 'requirements/apr_dependency'
require 'requirements/fortran_dependency'
require 'requirements/language_module_dependency'
require 'requirements/minimum_macos_requirement'
@@ -136,27 +137,3 @@ class JavaDependency < Requirement
s
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