Dart 2559

http://www.dartlang.org/

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Devon Carew authored and Adam Vandenberg committed 2012-03-07 21:34:25 -08:00
1 parent 4732eb8d91
commit 9eb424fae7
1 file changed
+25
+25
View File
@@ -0,0 +1,25 @@
require 'formula'
class Dart < Formula
homepage 'http://www.dartlang.org/'
url 'http://commondatastorage.googleapis.com/dart-dump-render-tree/sdk/dart-macos-2559.zip'
md5 '0569646b92aa059f1ca024f9504b32eb'
def shim_script target
<<-EOS.undent
#!/bin/bash
exec "#{target}" "$@"
EOS
end
def install
libexec.install Dir['*']
(bin+'dart').write shim_script("#{libexec}/bin/dart")
(bin+'frogc').write shim_script("#{libexec}/bin/frogc")
end
def test
system "#{bin}/dart"
end
end