diff options
Diffstat (limited to 'Library')
| -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 |
