2010-02-16 01:41:02 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Haxe < Formula
|
2011-12-01 18:00:59 +00:00
|
|
|
url 'http://haxe.org/file/haxe-2.08-osx.tar.gz'
|
|
|
|
version '2.08'
|
2010-02-16 01:41:02 +00:00
|
|
|
homepage 'http://haxe.org/'
|
2011-12-01 18:00:59 +00:00
|
|
|
sha1 'e8758ea9155bf27606348d02240c2af1fecee67b'
|
2010-02-16 01:41:02 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
bin.install %w(haxe haxedoc haxelib)
|
|
|
|
(share+"haxe").install "std"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
HaXe needs to know how to find its standard library so add this to your
|
|
|
|
shell profile:
|
2011-12-01 18:00:59 +00:00
|
|
|
export HAXE_LIBRARY_PATH="$(brew --prefix)/share/haxe/std"
|
2010-02-16 01:41:02 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|