aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-01-18 21:29:57 +0800
committerMike McQuaid2015-01-22 17:15:28 +0100
commit011b47aeff60fa152496a5533110e4690970dba1 (patch)
tree1b97b0274ddac9762e32cd629d18e90420766a2a /Library
parentb6a91fb2340dcb3617fb1372825b68fc39854e60 (diff)
downloadbrew-011b47aeff60fa152496a5533110e4690970dba1.tar.bz2
Add `depends_on :gpg`
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dependency_collector.rb1
-rw-r--r--Library/Homebrew/requirements.rb7
2 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/dependency_collector.rb b/Library/Homebrew/dependency_collector.rb
index a2883a09b..c5a678067 100644
--- a/Library/Homebrew/dependency_collector.rb
+++ b/Library/Homebrew/dependency_collector.rb
@@ -107,6 +107,7 @@ class DependencyCollector
when :macos then MinimumMacOSRequirement.new(tags)
when :mysql then MysqlDependency.new(tags)
when :postgresql then PostgresqlDependency.new(tags)
+ when :gpg then GPGDependency.new(tags)
when :fortran then FortranDependency.new(tags)
when :mpi then MPIDependency.new(*tags)
when :tex then TeXDependency.new(tags)
diff --git a/Library/Homebrew/requirements.rb b/Library/Homebrew/requirements.rb
index d1c79f763..6b72d9804 100644
--- a/Library/Homebrew/requirements.rb
+++ b/Library/Homebrew/requirements.rb
@@ -59,6 +59,13 @@ class PostgresqlDependency < Requirement
satisfy { which 'pg_config' }
end
+class GPGDependency < Requirement
+ fatal true
+ default_formula "gpg"
+
+ satisfy { which("gpg") || which("gpg2") }
+end
+
class TeXDependency < Requirement
fatal true
cask "mactex"