2013-03-13 18:06:09 +00:00
|
|
|
require 'formula'
|
|
|
|
class GnupgInstalled < Requirement
|
|
|
|
fatal true
|
|
|
|
|
|
|
|
satisfy { which('gpg') || which('gpg2') }
|
|
|
|
|
|
|
|
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
|
|
|
|
end
|
|
|
|
|
|
|
|
class Pius < Formula
|
|
|
|
homepage 'http://www.phildev.net/pius/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/pgpius/pius/2.0.11/pius-2.0.11.tar.bz2'
|
2013-12-17 07:26:10 +00:00
|
|
|
sha1 '0c9b74f271bf195d8636d8406fbb56cc024195ad'
|
2013-03-13 18:06:09 +00:00
|
|
|
|
|
|
|
depends_on GnupgInstalled
|
|
|
|
|
|
|
|
def install
|
2013-05-18 21:55:45 +00:00
|
|
|
# Replace hardcoded gpg path: https://sourceforge.net/p/pgpius/bugs/12/
|
|
|
|
inreplace 'pius', '/usr/bin/gpg', HOMEBREW_PREFIX/'bin/gpg'
|
2013-03-13 18:06:09 +00:00
|
|
|
bin.install 'pius'
|
|
|
|
bin.install 'pius-keyring-mgr'
|
|
|
|
bin.install 'pius-party-worksheet'
|
|
|
|
end
|
|
|
|
end
|