brew/Library/Homebrew/requirements/gpg2_requirement.rb

13 lines
372 B
Ruby
Raw Normal View History

require "requirement"
require "gpg"
class GPG2Requirement < Requirement
fatal true
default_formula "gnupg"
2017-08-09 17:02:14 +01:00
# GPGTools installs GnuPG 2.0.x as a vanilla `gpg` symlink
# pointing to `gpg2`. Homebrew install 2.1.x as a non-symlink `gpg`.
# We support both the 2.0.x "stable" and 2.1.x "modern" series here.
satisfy(build_env: false) { Gpg.gpg || Gpg.gpg2 }
end