aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat
diff options
context:
space:
mode:
authorMike McQuaid2018-01-10 13:40:55 +0000
committerGitHub2018-01-10 13:40:55 +0000
commitb66010605dfb8ecd7e5eb9eb5d1b97462c259e4d (patch)
treeea99bfa14eba55b1eae5876dae02db39a41cf73e /Library/Homebrew/compat
parentb29213a663c547c64b1cda55f622249c90320604 (diff)
parent27be33b245f600ed7b90015798a140df334d48a9 (diff)
downloadbrew-b66010605dfb8ecd7e5eb9eb5d1b97462c259e4d.tar.bz2
Merge pull request #3651 from MikeMcQuaid/deprecate-git-svn-requirements
Deprecate Git, Subversion requirements.
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