2011-03-10 05:11:03 +00:00
|
|
|
class Afsctool < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Utility for manipulating HFS+ compressed files"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://brkirch.wordpress.com/afsctool/"
|
|
|
|
url "https://docs.google.com/uc?export=download&id=0BwQlnXqL939ZQjBQNEhRQUo0aUk"
|
|
|
|
version "1.6.4"
|
|
|
|
sha256 "bb6a84370526af6ec1cee2c1a7199134806e691d1093f4aef060df080cd3866d"
|
2010-07-28 12:22:41 +00:00
|
|
|
|
2015-10-08 02:47:08 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "f53e528302f21b5232f0cf0ba85107c9881059aab97dd6db0c8e3b4338dd6f13" => :el_capitan
|
|
|
|
sha256 "b00e2da9028fbbd4fc1c1e5db0bcec7612f66ec7bd0799a3368efd2f6c9b6a60" => :yosemite
|
|
|
|
sha256 "166e38496d45481d0031930b19c33b853f3a48816b12acafd66620d0e707412f" => :mavericks
|
|
|
|
end
|
|
|
|
|
2010-07-28 12:22:41 +00:00
|
|
|
def install
|
2012-02-21 06:04:21 +00:00
|
|
|
cd "afsctool_34" do
|
2015-10-05 04:37:03 +00:00
|
|
|
system ENV.cc, ENV.cflags, "-lz",
|
|
|
|
"-framework", "CoreServices", "-o", "afsctool", "afsctool.c"
|
2014-12-14 22:48:17 +00:00
|
|
|
bin.install "afsctool"
|
2010-07-28 12:22:41 +00:00
|
|
|
end
|
|
|
|
end
|
2014-12-14 22:48:17 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
path = testpath/"foo"
|
|
|
|
path.write "some text here."
|
|
|
|
system "#{bin}/afsctool", "-c", path
|
|
|
|
system "#{bin}/afsctool", "-v", path
|
|
|
|
end
|
2010-07-28 12:22:41 +00:00
|
|
|
end
|