blob: ac547f66e18a2ec71f89c9ea300c8fa3eb94a098 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
require 'formula'
class Afsctool < Formula
homepage 'http://brkirch.wordpress.com/afsctool/'
url 'https://docs.google.com/uc?export=download&id=0BwQlnXqL939ZQjBQNEhRQUo0aUk'
version '1.6.4'
sha1 '216d7ff54bad947781d9b49f9754c5d3c07349be'
def install
cd "afsctool_34" do
system "#{ENV.cc} #{ENV.cflags} -lz -framework CoreServices -o afsctool afsctool.c"
bin.install "afsctool"
end
end
test do
path = testpath/"foo"
path.write "some text here."
system "#{bin}/afsctool", "-c", path
system "#{bin}/afsctool", "-v", path
end
end
|