34 lines
974 B
Ruby
34 lines
974 B
Ruby
class Avian < Formula
|
|
homepage "http://oss.readytalk.com/avian/"
|
|
head "https://github.com/ReadyTalk/avian.git"
|
|
url "https://github.com/ReadyTalk/avian/archive/v1.1.tar.gz"
|
|
sha1 "de51fb048b0b81a131ddbb3387adb229d3eddf2f"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "ec4bf9872744d3afd83131dd585b525fce19f898" => :yosemite
|
|
sha1 "3c8e3d20400aad2f5c5dc60f6b6b4ae3094eef6b" => :mavericks
|
|
sha1 "dfb49aaec4a22570127f72f503712aa4475e1742" => :mountain_lion
|
|
end
|
|
|
|
depends_on :macos => :lion
|
|
depends_on :java
|
|
|
|
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
|