aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDavid Peek2013-06-11 15:00:52 +1000
committerMisty De Meo2013-08-28 18:45:12 -0700
commitf8a3b1b4361ba4f5b5c8ddb3d8f681fddf929767 (patch)
tree7b5f61a142568e930d503c31e6fc0e7fdf9b1c08 /Library
parent72ee11d988eff7e4af82eec813381f3f82950b08 (diff)
downloadhomebrew-f8a3b1b4361ba4f5b5c8ddb3d8f681fddf929767.tar.bz2
haxe 3.0.0
Closes #20399. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/haxe.rb33
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/haxe.rb b/Library/Formula/haxe.rb
new file mode 100644
index 000000000..59da36634
--- /dev/null
+++ b/Library/Formula/haxe.rb
@@ -0,0 +1,33 @@
+require 'formula'
+
+class Haxe < Formula
+ homepage 'http://haxe.org'
+ # v3-00 was tagged before project moved to git, so doesn't include submodules
+ url 'https://github.com/HaxeFoundation/haxe.git', :revision => '40451b41b09b9155682dad2f2f9db020c1f23678'
+ version '3.0.0-40451b4'
+
+ head 'https://github.com/HaxeFoundation/haxe.git'
+
+ depends_on 'neko'
+ depends_on 'objective-caml'
+
+ def install
+ # Build requires targets to be built in specific order
+ ENV.deparallelize
+ system 'make'
+ bin.install 'haxe'
+ bin.install 'std/tools/haxelib/haxelib.sh' => 'haxelib'
+ (lib/'haxe').install 'std'
+ 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