homebrew-core/Formula/avian.rb

37 lines
1.1 KiB
Ruby
Raw Normal View History

class Avian < Formula
desc "Lightweight VM and class library for a subset of Java features"
homepage "https://readytalk.github.io/avian/"
url "https://github.com/ReadyTalk/avian/archive/v1.2.0.tar.gz"
sha256 "e3639282962239ce09e4f79f327c679506d165810f08c92ce23e53e86e1d621c"
head "https://github.com/ReadyTalk/avian.git"
2015-02-24 07:31:54 +00:00
bottle do
cellar :any
2015-10-05 17:35:10 +00:00
revision 1
sha256 "d2719509725f4c1fad3a53c32de18aff5d45685fb35ae352f1d51fc61e566f4a" => :el_capitan
sha256 "d002876c03742fc7ec4157fff598e7c11ed1e62f97ce1b217f8b089db87e43ed" => :yosemite
sha256 "20dd7125d138e05021b473d026190d8f4652e807afcfe057614e5c2e66ce0ed1" => :mavericks
2015-02-24 07:31:54 +00:00
end
2013-06-14 19:09:06 +00:00
depends_on :macos => :lion
depends_on :java => "1.7+"
def install
system "make", "use-clang=true"
bin.install Dir["build/macosx-*/avian*"]
lib.install Dir["build/macosx-*/*.dylib", "build/macosx-*/*.a"]
end
test do
(testpath/"Test.java").write <<-EOS.undent
public class Test {
public static void main(String arg[]) {
System.out.print("OK");
}
}
EOS
system "javac", "Test.java"
assert_equal "OK", shell_output("#{bin}/avian Test")
end
end