homebrew-core/Formula/lz4.rb
Viktor Szakats 93f19bb122 lz4: update homepage
It's redirected to: https://cyan4973.github.io/lz4/ (with http though)

Closes Homebrew/homebrew#40692.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-14 13:17:10 +01:00

27 lines
925 B
Ruby

class Lz4 < Formula
desc "Lossless compression algorithm"
homepage "http://www.lz4.info/"
url "https://github.com/Cyan4973/lz4/archive/r130.tar.gz"
sha256 "c48450d27524c2e5856997133e059e3cf9909241110a6e21ad278890ac425afc"
version "r130"
bottle do
cellar :any
sha256 "ddc009f6644dbfbe40f097164e4d32519dc425fbcbc4da2a730085c09e71cbb9" => :yosemite
sha256 "32aca554261845d66f1a5b8a30c24100a65e7eeed3cb9936234c23a1942ffb34" => :mavericks
sha256 "64b4d909025c00e2ae01d9dd1bedb56475d11ea30a3bae0c306e5aee4da0da09" => :mountain_lion
end
def install
system "make", "install", "PREFIX=#{prefix}"
end
test do
input = "testing compression and decompression"
input_file = testpath/"in"
input_file.write input
output_file = testpath/"out"
system "sh", "-c", "cat #{input_file} | #{bin}/lz4 | #{bin}/lz4 -d > #{output_file}"
assert_equal output_file.read, input
end
end