homebrew-core/Formula/dart.rb
Devon Carew 055ab54fd6 Dart 2559
http://www.dartlang.org/

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-03-07 21:34:25 -08:00

25 lines
533 B
Ruby

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