homebrew-core/Formula/pius.rb

41 lines
1.2 KiB
Ruby

class Pius < Formula
include Language::Python::Virtualenv
desc "PGP individual UID signer"
homepage "https://www.phildev.net/pius/"
url "https://github.com/jaymzh/pius/archive/v3.0.0.tar.gz"
sha256 "3454ade5540687caf6d8b271dd18eb773a57ab4f5503fc71b4769cc3c5f2b572"
license "GPL-2.0"
revision 2
head "https://github.com/jaymzh/pius.git"
bottle do
cellar :any_skip_relocation
sha256 "4a5deabe6e56424603556f18ccee09a5d2e71f63cbb5a7963faf541556de0f87" => :big_sur
sha256 "ef07a9e877e3774888c7e27378362744448590daee47bba22ab463f4a90660be" => :catalina
sha256 "3cfa04458840eab00f16c10a34dceb55783dd9d52178fab890d32e70fab5ee1f" => :mojave
sha256 "fbbecdabd75369b65e0c00c3b2ccdb91f34c643e73a3c81eaa4bc6474f5783e9" => :high_sierra
end
depends_on "gnupg"
depends_on "python@3.9"
def install
# Replace hardcoded gpg path (WONTFIX)
inreplace "libpius/constants.py", %r{/usr/bin/gpg2?}, "/usr/bin/env gpg"
virtualenv_install_with_resources
end
def caveats
<<~EOS
The path to gpg is hardcoded in pius as `/usr/bin/env gpg`.
You can specify a different path by editing ~/.pius:
gpg-path=/path/to/gpg
EOS
end
test do
system bin/"pius", "-T"
end
end