diff options
| author | Devon Carew | 2011-12-17 20:19:38 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-03-07 21:34:25 -0800 |
| commit | 9eb424fae7ff2fcfa35fc482f25572b24cddeda3 (patch) | |
| tree | e5cf7abc9cf6f39b814b0c56253e8e0a1c1c41db /Library/Formula/dart.rb | |
| parent | 4732eb8d91fda20901a6177bb737ea4e5aba6535 (diff) | |
| download | homebrew-9eb424fae7ff2fcfa35fc482f25572b24cddeda3.tar.bz2 | |
Dart 2559
http://www.dartlang.org/
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/dart.rb')
| -rw-r--r-- | Library/Formula/dart.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/dart.rb b/Library/Formula/dart.rb new file mode 100644 index 000000000..7f8e50d37 --- /dev/null +++ b/Library/Formula/dart.rb @@ -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 |
