2015-01-18 13:57:54 +00:00
|
|
|
class Pius < Formula
|
|
|
|
homepage "http://www.phildev.net/pius/"
|
|
|
|
url "https://downloads.sourceforge.net/project/pgpius/pius/2.0.11/pius-2.0.11.tar.bz2"
|
|
|
|
sha1 "0c9b74f271bf195d8636d8406fbb56cc024195ad"
|
2013-03-13 18:06:09 +00:00
|
|
|
|
2015-01-18 13:57:54 +00:00
|
|
|
depends_on :gpg
|
2013-03-13 18:06:09 +00:00
|
|
|
|
2015-01-18 13:57:54 +00:00
|
|
|
def install
|
|
|
|
# Replace hardcoded gpg path: https://sourceforge.net/p/pgpius/bugs/12/
|
|
|
|
inreplace "pius", "/usr/bin/gpg", HOMEBREW_PREFIX/"bin/gpg"
|
|
|
|
bin.install "pius"
|
|
|
|
bin.install "pius-keyring-mgr"
|
|
|
|
bin.install "pius-party-worksheet"
|
|
|
|
end
|
2013-03-13 18:06:09 +00:00
|
|
|
|
2015-01-18 13:57:54 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
The gpg path is hardcoded in pius. You can specific your own gpg path
|
|
|
|
by adding follow line into ~/.pius file:
|
|
|
|
gpg-path=/path/to/gpg
|
2013-03-13 18:06:09 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2015-01-18 13:57:54 +00:00
|
|
|
test do
|
|
|
|
system "#{bin}/pius", "-T"
|
2013-03-13 18:06:09 +00:00
|
|
|
end
|
|
|
|
end
|