homebrew-core/Formula/haxe.rb
BrewTestBot 23962af2b9 haxe: update 3.1.1 bottle.
Closes Homebrew/homebrew#27581.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-03-16 15:20:54 +00:00

37 lines
1,004 B
Ruby

require 'formula'
class Haxe < Formula
homepage 'http://haxe.org'
url 'https://github.com/HaxeFoundation/haxe.git', :tag => 'v3.1.1'
head 'https://github.com/HaxeFoundation/haxe.git', :branch => 'development'
bottle do
cellar :any
sha1 "f72374f99b18d65849ee654223b54e3f2b885ab5" => :mavericks
sha1 "33ed8cc473a4ad83fec93a9ef4d45992c263aa8c" => :mountain_lion
sha1 "4dc8205334988bfc5b0f522db410abd89ea5c13a" => :lion
end
depends_on 'neko'
depends_on 'objective-caml'
def install
# Build requires targets to be built in specific order
ENV.deparallelize
system "make"
bin.mkpath
system "make", "install", "INSTALL_BIN_DIR=#{bin}", "INSTALL_LIB_DIR=#{lib}/haxe"
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