brew/Library/Homebrew/requirements/gpg2_requirement.rb

13 lines
353 B
Ruby
Raw Normal View History

require "requirement"
require "gpg"
class GPG2Requirement < Requirement
fatal true
default_formula "gnupg"
2017-08-29 05:20:10 +01:00
# 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.
2017-08-09 17:02:14 +01:00
satisfy(build_env: false) { Gpg.gpg || Gpg.gpg2 }
end