2013-06-11 05:00:52 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Haxe < Formula
|
|
|
|
homepage 'http://haxe.org'
|
2014-03-15 16:13:37 +00:00
|
|
|
url 'https://github.com/HaxeFoundation/haxe.git', :tag => 'v3.1.1'
|
2013-06-11 05:00:52 +00:00
|
|
|
|
2013-11-06 23:22:11 +00:00
|
|
|
head 'https://github.com/HaxeFoundation/haxe.git', :branch => 'development'
|
2013-06-11 05:00:52 +00:00
|
|
|
|
2014-03-04 17:38:18 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-03-15 16:22:38 +00:00
|
|
|
sha1 "f72374f99b18d65849ee654223b54e3f2b885ab5" => :mavericks
|
|
|
|
sha1 "33ed8cc473a4ad83fec93a9ef4d45992c263aa8c" => :mountain_lion
|
|
|
|
sha1 "4dc8205334988bfc5b0f522db410abd89ea5c13a" => :lion
|
2014-03-04 17:38:18 +00:00
|
|
|
end
|
|
|
|
|
2013-06-11 05:00:52 +00:00
|
|
|
depends_on 'neko'
|
|
|
|
depends_on 'objective-caml'
|
|
|
|
|
|
|
|
def install
|
|
|
|
# Build requires targets to be built in specific order
|
|
|
|
ENV.deparallelize
|
2014-03-03 08:23:10 +00:00
|
|
|
system "make"
|
|
|
|
bin.mkpath
|
|
|
|
system "make", "install", "INSTALL_BIN_DIR=#{bin}", "INSTALL_LIB_DIR=#{lib}/haxe"
|
2013-06-11 05:00:52 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
ENV["HAXE_STD_PATH"] = "#{HOMEBREW_PREFIX}/lib/haxe/std"
|
|
|
|
system "#{bin}/haxe", "-v", "Std"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Add the following line to your .bashrc or equivalent:
|
|
|
|
export HAXE_STD_PATH="#{HOMEBREW_PREFIX}/lib/haxe/std"
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|