aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirements/gpg2_requirement.rb
blob: 97fabcca0d001d3d4c8f8b80a9f3e68c2f9484f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require "requirement"
require "gpg"

class GPG2Requirement < Requirement
  fatal true
  default_formula "gnupg"

  # MacGPG2/GPGTools installs GnuPG 2.0.x as a vanilla `gpg` symlink
  # pointing to `gpg2`, as do we. Ensure we're actually using a 2.0 `gpg`.
  # Support both the 2.0.x "stable" and 2.1.x "modern" series.
  satisfy(build_env: false) { Gpg.gpg2 || Gpg.gpg }
end