diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/dependency_collector.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/requirements.rb | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/Library/Homebrew/dependency_collector.rb b/Library/Homebrew/dependency_collector.rb index 22f690a8c..bf5c014f3 100644 --- a/Library/Homebrew/dependency_collector.rb +++ b/Library/Homebrew/dependency_collector.rb @@ -91,6 +91,7 @@ class DependencyCollector when :tex then TeXDependency.new(tag) when :clt then CLTDependency.new(tag) when :arch then ArchRequirement.new(tag) + when :hg then MercurialDependency.new(tag) else raise "Unsupported special dependency #{spec}" end diff --git a/Library/Homebrew/requirements.rb b/Library/Homebrew/requirements.rb index f226db839..6ebf3f6a4 100644 --- a/Library/Homebrew/requirements.rb +++ b/Library/Homebrew/requirements.rb @@ -107,3 +107,17 @@ class ArchRequirement < Requirement "This formula requires an #{@arch} architecture." end end + +class MercurialDependency < Requirement + fatal true + + satisfy { which('hg') } + + def message; <<-EOS.undent + Mercurial is needed to install this software. + + You can install this with Homebrew using: + brew install mercurial + EOS + end +end |
