homebrew-core/Formula/avian.rb
Dominyk Tiller 80cc89b0f3 avian 1.1
Fairly huge version bump. The HEAD has been broken for ages as well due
to the build changes upstream.

Closes Homebrew/homebrew#34210.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-11-16 22:13:04 +00:00

29 lines
792 B
Ruby

require "formula"
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"
depends_on :macos => :lion
def install
ENV["JAVA_HOME"] = `/usr/libexec/java_home`.chomp
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