homebrew-core/Formula/websocat.rb
2019-11-03 10:45:47 +09:00

27 lines
920 B
Ruby

class Websocat < Formula
desc "Command-line client for WebSockets"
homepage "https://github.com/vi/websocat"
url "https://github.com/vi/websocat/archive/v1.5.0.tar.gz"
sha256 "3ffdb25e937095d95b564eafd805cb7ca141570f95c1296b6dd336d4d016445f"
bottle do
cellar :any_skip_relocation
rebuild 1
sha256 "fd1061d818e394d5678661b0c8559bcd61d586e0a0498e1a58a6a72d271adc33" => :catalina
sha256 "011b0892734d27b6a978b372fd342bbecccd75e9f29d8d2cf8e9944b30d2ff50" => :mojave
sha256 "b59d7c3fc70e1e643986c0414b7d8cc4897f611cb15affa21092f43d69ccbab2" => :high_sierra
end
depends_on "pkg-config" => :build
depends_on "rust" => :build
def install
system "cargo", "install", "--locked", "--root", prefix,
"--path", ".",
"--features", "ssl"
end
test do
system "#{bin}/websocat", "-t", "literal:qwe", "assert:qwe"
end
end