|
| 1 | +class SequoiaChameleonGnupg < Formula |
| 2 | + desc "Reimplementatilon of gpg and gpgv using Sequoia" |
| 3 | + homepage "https://sequoia-pgp.org" |
| 4 | + url "https://gitlab.com/sequoia-pgp/sequoia-chameleon-gnupg/-/archive/v0.13.1/sequoia-chameleon-gnupg-v0.13.1.tar.bz2" |
| 5 | + sha256 "8e204784c83b2f17cdd591bd9e2e3df01f9f68527bb5c97aa181c8bec5c6f857" |
| 6 | + license "GPL-3.0-or-later" |
| 7 | + |
| 8 | + bottle do |
| 9 | + sha256 cellar: :any, arm64_sequoia: "5b91310a0e9767914f4e236560e5ca9e010e5251386ee843a36bddd67d44b8fa" |
| 10 | + sha256 cellar: :any, arm64_sonoma: "27b24b86636d9645d07a03f3b317208a030ebf65c4c1d5720ce71b4b6da329ce" |
| 11 | + sha256 cellar: :any, arm64_ventura: "63e79260f1665bd08b3c837dc89484e652494dd77d91ebdecc523bc48ce6e3f1" |
| 12 | + sha256 cellar: :any, sonoma: "0c04398a6a5a0ec0b24d8c9e17c8d32b60cd6506c3e123478372765d2c110e6e" |
| 13 | + sha256 cellar: :any, ventura: "b040e893c7a651cf2487981dfa5ddf7efde8d5f7df18e2900757f6c761131709" |
| 14 | + sha256 cellar: :any_skip_relocation, x86_64_linux: "3319626d5c818b6482bf2ba1c9cfd267447639975483dde222f430a33ba1dc82" |
| 15 | + end |
| 16 | + |
| 17 | + depends_on "pkgconf" => :build |
| 18 | + depends_on "rust" => :build |
| 19 | + |
| 20 | + depends_on "gmp" |
| 21 | + depends_on "nettle" |
| 22 | + depends_on "openssl@3" |
| 23 | + |
| 24 | + uses_from_macos "llvm" => :build |
| 25 | + uses_from_macos "bzip2" |
| 26 | + uses_from_macos "sqlite" |
| 27 | + |
| 28 | + def install |
| 29 | + ENV["OPENSSL_DIR"] = Formula["openssl@3"].opt_prefix |
| 30 | + ENV["ASSET_OUT_DIR"] = buildpath |
| 31 | + |
| 32 | + system "cargo", "install", *std_cargo_args |
| 33 | + man1.install Dir["man-pages/*.1"] |
| 34 | + |
| 35 | + zsh_completion.install "shell-completions/_gpg-sq" |
| 36 | + zsh_completion.install "shell-completions/_gpgv-sq" |
| 37 | + bash_completion.install "shell-completions/gpg-sq.bash" => "gpg-sq" |
| 38 | + bash_completion.install "shell-completions/gpgv-sq.bash" => "gpgv-sq" |
| 39 | + fish_completion.install "shell-completions/gpg-sq.fish" |
| 40 | + fish_completion.install "shell-completions/gpgv-sq.fish" |
| 41 | + end |
| 42 | + |
| 43 | + test do |
| 44 | + assert_match "Chameleon #{version}", shell_output("#{bin}/gpg-sq --version") |
| 45 | + |
| 46 | + output = pipe_output("#{bin}/gpg-sq --enarmor", test_fixtures("test.gif").read, 0) |
| 47 | + assert_match "R0lGODdhAQABAPAAAAAAAAAAACwAAAAAAQABAAACAkQBADs=", output |
| 48 | + end |
| 49 | +end |
0 commit comments