homebrew-core/Formula/geph4.rb

23 lines
728 B
Ruby
Raw Normal View History

class Geph4 < Formula
desc "Modular Internet censorship circumvention system to deal with national filtering"
homepage "https://geph.io/"
url "https://github.com/geph-official/geph4/archive/v4.2.1.tar.gz"
sha256 "bb5aaadb4fc55a22ec0be59761f9f5e71299e2c944c8b74432b45f278fb755c9"
license "GPL-3.0-only"
depends_on "rust" => :build
def install
File.delete("Cross.toml")
remove_dir(".cargo")
Dir.chdir "geph4-client"
system "cargo", "install", "--bin", "geph4-client", *std_cargo_args
end
test do
assert_equal "{\"error\":\"wrong password\"}",
shell_output("#{bin}/geph4-client sync --username 'test' --password 'test' --credential-cache ~/test.db")
.lines.last.strip
end
end