homebrew-core/Formula/pius.rb
Xu Cheng 03d0bd6421 pius: modernize and add caveats and test
Closes Homebrew/homebrew#35996.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-22 17:15:29 +01:00

26 lines
728 B
Ruby

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"
depends_on :gpg
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
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
EOS
end
test do
system "#{bin}/pius", "-T"
end
end