2016-08-02 13:33:38 +00:00
|
|
|
class Zstd < Formula
|
|
|
|
desc "Zstandard is a real-time compression algorithm"
|
|
|
|
homepage "http://zstd.net/"
|
2016-10-04 12:13:47 +00:00
|
|
|
url "https://github.com/facebook/zstd/archive/v1.1.0.tar.gz"
|
|
|
|
sha256 "61cbbd28ff78f658f0564c2ccc206ac1ac6abe7f2c65c9afdca74584a104ea51"
|
2016-08-02 13:33:38 +00:00
|
|
|
|
2016-08-03 08:05:22 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2016-10-01 18:41:24 +00:00
|
|
|
sha256 "4f39a55c4825416dc781d76c1d074b0c94123a2776bd228210482007242dac97" => :sierra
|
2016-08-31 22:44:58 +00:00
|
|
|
sha256 "44ad087ed45c645534cb7f50fd11d0a5a6c108dbd55cd3b87611a391f1468170" => :el_capitan
|
|
|
|
sha256 "0496df2283965e4bd5a9cef51a48ab46145b0b98901a55b7300630c49f3e68b8" => :yosemite
|
|
|
|
sha256 "d0acff7aaa610d58ead02729ad5ec2a447c764da12c2ffce79af8ee1c9effcbe" => :mavericks
|
2016-08-03 08:05:22 +00:00
|
|
|
end
|
|
|
|
|
2016-08-02 13:33:38 +00:00
|
|
|
def install
|
|
|
|
system "make", "install", "PREFIX=#{prefix}/"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_equal "hello\n",
|
|
|
|
pipe_output("#{bin}/zstd | #{bin}/zstd -d", "hello\n", 0)
|
|
|
|
end
|
|
|
|
end
|