aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat
diff options
context:
space:
mode:
authorMike McQuaid2018-01-10 13:19:45 +0000
committerMike McQuaid2018-01-10 13:19:50 +0000
commit27be33b245f600ed7b90015798a140df334d48a9 (patch)
tree70498933335b333c5ea6d090818fb7bf534e705a /Library/Homebrew/compat
parentf06b54f1bb7dffb319ec7407e309e260ce651517 (diff)
downloadbrew-27be33b245f600ed7b90015798a140df334d48a9.tar.bz2
Deprecate Git, Subversion requirements.
These rely on `default_formula` to be useful and are better following the `*_dep_if_needed` pattern.
Diffstat (limited to 'Library/Homebrew/compat')
-rw-r--r--Library/Homebrew/compat/requirements.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/compat/requirements.rb b/Library/Homebrew/compat/requirements.rb
index 48911b52b..304dd2504 100644
--- a/Library/Homebrew/compat/requirements.rb
+++ b/Library/Homebrew/compat/requirements.rb
@@ -44,6 +44,18 @@ class GPG2Requirement < Requirement
satisfy { which "gpg" }
end
+class GitRequirement < Requirement
+ fatal true
+ default_formula "git"
+ satisfy { Utils.git_available? }
+end
+
+class SubversionRequirement < Requirement
+ fatal true
+ default_formula "subversion"
+ satisfy { Utils.svn_available? }
+end
+
XcodeDependency = XcodeRequirement
MysqlDependency = MysqlRequirement
PostgresqlDependency = PostgresqlRequirement