2012-11-01 21:51:41 +00:00
|
|
|
class Avian < Formula
|
2014-11-15 05:16:42 +00:00
|
|
|
homepage "http://oss.readytalk.com/avian/"
|
|
|
|
head "https://github.com/ReadyTalk/avian.git"
|
2015-03-19 00:54:43 +00:00
|
|
|
url "https://github.com/ReadyTalk/avian/archive/v1.2.0.tar.gz"
|
|
|
|
sha256 "e3639282962239ce09e4f79f327c679506d165810f08c92ce23e53e86e1d621c"
|
2012-11-01 21:51:41 +00:00
|
|
|
|
2015-02-24 07:31:54 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-03-19 01:05:15 +00:00
|
|
|
sha256 "cb1db13d2ff4de8fad414bf80da2e3ccae05823f88c45322f3cdcd64da29807c" => :yosemite
|
|
|
|
sha256 "9aadb173228eb335bd55f91bb10b1f1eed8c2722ce16fab2030c911c8fd5949f" => :mavericks
|
|
|
|
sha256 "9810eacfe200cf6e4a85cd06d915b70363514666c7b1e24f047288be56f5c362" => :mountain_lion
|
2015-02-24 07:31:54 +00:00
|
|
|
end
|
|
|
|
|
2013-06-14 19:09:06 +00:00
|
|
|
depends_on :macos => :lion
|
2015-03-19 00:54:43 +00:00
|
|
|
depends_on :java => "1.7+"
|
2012-11-01 21:51:41 +00:00
|
|
|
|
|
|
|
def install
|
2014-11-15 05:16:42 +00:00
|
|
|
system "make", "use-clang=true"
|
|
|
|
bin.install Dir["build/macosx-*/avian*"]
|
|
|
|
lib.install Dir["build/macosx-*/*.dylib", "build/macosx-*/*.a"]
|
2012-11-01 21:51:41 +00:00
|
|
|
end
|
|
|
|
|
2013-01-29 18:56:01 +00:00
|
|
|
test do
|
2014-11-15 05:16:42 +00:00
|
|
|
(testpath/"Test.java").write <<-EOS.undent
|
2013-01-29 18:56:01 +00:00
|
|
|
public class Test {
|
|
|
|
public static void main(String arg[]) {
|
|
|
|
System.out.print("OK");
|
2012-11-01 21:51:41 +00:00
|
|
|
}
|
2013-01-29 18:56:01 +00:00
|
|
|
}
|
|
|
|
EOS
|
2014-11-15 05:16:42 +00:00
|
|
|
system "javac", "Test.java"
|
|
|
|
assert_equal "OK", shell_output("#{bin}/avian Test")
|
2012-11-01 21:51:41 +00:00
|
|
|
end
|
|
|
|
end
|