2019-04-17 20:57:08 +00:00
|
|
|
class Cmix < Formula
|
|
|
|
desc "Data compression program with high compression ratio"
|
|
|
|
homepage "https://www.byronknoll.com/cmix.html"
|
2019-08-02 12:04:14 +00:00
|
|
|
url "https://github.com/byronknoll/cmix/archive/v18.tar.gz"
|
|
|
|
version "18.0.0"
|
|
|
|
sha256 "2f0272186a8ff693146d0d8070ad4d9687461a486805ab91d727891df316498d"
|
2019-04-17 20:57:08 +00:00
|
|
|
|
2019-04-18 10:45:56 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2019-08-02 14:45:19 +00:00
|
|
|
sha256 "448fa06555b59d6a0541d1e36ff9eac14e05775fd2ef119e860a305368b800ec" => :mojave
|
|
|
|
sha256 "6e1bc1de5f3c36e6fcda7874b8fbd18938aedbdbce94039763302f9643964a0a" => :high_sierra
|
|
|
|
sha256 "3dc97bda2656e2b2ffccb50915f9a981513fff5a8f90af2a1c5521afe52568d0" => :sierra
|
2019-04-18 10:45:56 +00:00
|
|
|
end
|
|
|
|
|
2019-04-17 20:57:08 +00:00
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
bin.install "cmix"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"foo").write "test"
|
|
|
|
system "#{bin}/cmix", "-c", "foo", "foo.cmix"
|
|
|
|
system "#{bin}/cmix", "-d", "foo.cmix", "foo.unpacked"
|
|
|
|
assert_equal "test", shell_output("cat foo.unpacked")
|
|
|
|
end
|
|
|
|
end
|