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>
This commit is contained in:
parent
877e20430c
commit
80cc89b0f3
1 changed files with 12 additions and 17 deletions
|
@ -1,34 +1,29 @@
|
|||
require 'formula'
|
||||
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/v0.7.1.1.tar.gz'
|
||||
sha1 '326f127f146f46a5b35567b1717ea4a5b13833fd'
|
||||
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
|
||||
|
||||
# Fix build with clang; already upstream
|
||||
patch do
|
||||
url "https://github.com/ReadyTalk/avian/commit/69ea1f57219e0ec1b113f1fcadaa3dae6b93f358.diff"
|
||||
sha1 "fc357efdd179c2511e76181dbf735e4a9e19e8b5"
|
||||
end
|
||||
|
||||
def install
|
||||
system 'make', 'JAVA_HOME=/Library/Java/Home'
|
||||
bin.install Dir['build/darwin-*/avian*']
|
||||
lib.install Dir['build/darwin-*/*.dylib', 'build/darwin-*/*.a']
|
||||
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
|
||||
(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")
|
||||
system "javac", "Test.java"
|
||||
assert_equal "OK", shell_output("#{bin}/avian Test")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue