lizard 1.0
Closes #39489. Signed-off-by: Sean Molenaar <smillerdev@me.com>
This commit is contained in:
parent
d96418ffe1
commit
bf06581ce7
1 changed files with 33 additions and 0 deletions
33
Formula/lizard.rb
Normal file
33
Formula/lizard.rb
Normal file
|
@ -0,0 +1,33 @@
|
|||
class Lizard < Formula
|
||||
desc "Efficient compressor with very fast decompression"
|
||||
homepage "https://github.com/inikep/lizard"
|
||||
url "https://github.com/inikep/lizard/archive/v1.0.tar.gz"
|
||||
sha256 "6f666ed699fc15dc7fdaabfaa55787b40ac251681b50c0d8df017c671a9457e6"
|
||||
|
||||
def install
|
||||
system "make", "PREFIX=#{prefix}", "install"
|
||||
cd "examples" do
|
||||
system "make"
|
||||
(pkgshare/"tests").install "ringBufferHC", "ringBuffer", "lineCompress", "doubleBuffer"
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"tests/test.txt").write <<~EOS
|
||||
Homebrew is a free and open-source software package management system that simplifies the installation
|
||||
of software on Apple's macOS operating system and Linux. The name means building software on your Mac
|
||||
depending on taste. Originally written by Max Howell, the package manager has gained popularity in the
|
||||
Ruby on Rails community and earned praise for its extensibility. Homebrew has been recommended for its
|
||||
ease of use as well as its integration into the command line. Homebrew is a non-profit project member
|
||||
of the Software Freedom Conservancy, and is run entirely by unpaid volunteers.
|
||||
EOS
|
||||
|
||||
cp_r pkgshare/"tests", testpath
|
||||
cd "tests" do
|
||||
system "./ringBufferHC", "./test.txt"
|
||||
system "./ringBuffer", "./test.txt"
|
||||
system "./lineCompress", "./test.txt"
|
||||
system "./doubleBuffer", "./test.txt"
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue