diff options
| author | Jack Nagel | 2012-03-27 17:36:07 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-03-27 17:37:28 -0500 |
| commit | c978e0f19ab84eddc8d31556b34b4608c0a7c1a0 (patch) | |
| tree | 83c9e88ee586619806dd802f93ad6e064c9a490f /Library/Formula | |
| parent | d9d5381b0976ef63155f2bc6273847ea399eaa8f (diff) | |
| download | homebrew-c978e0f19ab84eddc8d31556b34b4608c0a7c1a0.tar.bz2 | |
signing-party: use a requirement for gpg
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/signing-party.rb | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/Library/Formula/signing-party.rb b/Library/Formula/signing-party.rb index 53ae23f52..eccb85799 100644 --- a/Library/Formula/signing-party.rb +++ b/Library/Formula/signing-party.rb @@ -1,11 +1,33 @@ require 'formula' +class GnupgInstalled < Requirement + def message; <<-EOS.undent + Gnupg is required to use these tools. + + You can install Gnupg or Gnupg2 with Homebrew: + brew install gnupg + brew install gnupg2 + + Or you can use one of several different + prepackaged installers that are available. + EOS + end + + def satisified? + which 'gpg' or which 'gpg2' + end + + def fatal? + false + end +end + class SigningParty < Formula homepage 'http://pgp-tools.alioth.debian.org/' url 'http://ftp.debian.org/debian/pool/main/s/signing-party/signing-party_1.1.4.orig.tar.gz' md5 '675f8f1edd01baa8b58a743927d13750' - depends_on 'gnupg' unless which 'gpg' + depends_on GnupgInstalled.new depends_on 'dialog' depends_on 'qprint' depends_on 'MIME::Tools' => :perl |
