2010-07-28 12:22:41 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Afsctool < Formula
|
2012-07-26 14:12:37 +00:00
|
|
|
homepage 'http://brkirch.wordpress.com/afsctool/'
|
|
|
|
url 'https://docs.google.com/uc?export=download&id=0BwQlnXqL939ZQjBQNEhRQUo0aUk'
|
2010-07-28 12:22:41 +00:00
|
|
|
version '1.6.4'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '216d7ff54bad947781d9b49f9754c5d3c07349be'
|
2010-07-28 12:22:41 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-21 06:04:21 +00:00
|
|
|
cd "afsctool_34" do
|
2010-08-10 15:05:31 +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
|