brew/Library/Homebrew/requirements/gpg2_requirement.rb
2017-10-22 05:11:52 +01:00

13 lines
348 B
Ruby

require "requirement"
require "gpg"
class GPG2Requirement < Requirement
fatal true
default_formula "gnupg"
# GPGTools installs GnuPG 2.0.x as a `gpg` symlink pointing
# to `gpg2`. Our `gnupg` installs only a non-symlink `gpg`.
# The aim is to retain support for any version above 2.0.
satisfy(build_env: false) { Gpg.available? }
end