forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcmix.rb
26 lines (23 loc) · 897 Bytes
/
cmix.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
class Cmix < Formula
desc "Data compression program with high compression ratio"
homepage "https://www.byronknoll.com/cmix.html"
url "https://github.com/byronknoll/cmix/archive/v18.tar.gz"
version "18.0.0"
sha256 "2f0272186a8ff693146d0d8070ad4d9687461a486805ab91d727891df316498d"
bottle do
cellar :any_skip_relocation
sha256 "448fa06555b59d6a0541d1e36ff9eac14e05775fd2ef119e860a305368b800ec" => :mojave
sha256 "6e1bc1de5f3c36e6fcda7874b8fbd18938aedbdbce94039763302f9643964a0a" => :high_sierra
sha256 "3dc97bda2656e2b2ffccb50915f9a981513fff5a8f90af2a1c5521afe52568d0" => :sierra
end
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