dart 15699

Closes Homebrew/homebrew#16458.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Yehor Lvivski 2012-12-07 14:14:40 +02:00 committed by Adam Vandenberg
parent f1b4feb9dd
commit 8cc126160c
1 changed files with 7 additions and 17 deletions

View File

@ -4,29 +4,19 @@ class Dart < Formula
homepage 'http://www.dartlang.org/'
if MacOS.prefer_64_bit?
url 'https://gsdview.appspot.com/dart-editor-archive-integration/13679/dartsdk-macos-64.zip'
sha1 'b6f4902cbc48e59799980b2830108ccb2fe8d2b7'
url 'https://gsdview.appspot.com/dart-editor-archive-integration/15699/dartsdk-macos-64.zip'
sha1 '7ecee694bf6d454bdce73ab55ce83799447d701e'
else
url 'https://gsdview.appspot.com/dart-editor-archive-integration/13679/dartsdk-macos-32.zip'
sha1 'aa92ba954aa730e58216520f9ddd7c0489d7ae06'
url 'https://gsdview.appspot.com/dart-editor-archive-integration/15699/dartsdk-macos-32.zip'
sha1 '1606706fe74ecc095ef0e25de12a92bbf07c063a'
end
version '13679'
def shim_script target
<<-EOS.undent
#!/bin/bash
exec dart "#{target}" "$@"
EOS
end
version '15699'
def install
libexec.install Dir['*']
bin.install_symlink libexec+'bin/dart'
(bin+'dart2js').write shim_script(libexec+'pkg/compiler/implementation/dart2js.dart')
(bin+'dartdoc').write shim_script(libexec+'pkg/dartdoc/bin/dartdoc.dart')
(bin+'pub').write shim_script(libexec+'util/pub/pub.dart')
bin.install_symlink "#{libexec}/bin/dart"
bin.write_exec_script Dir["#{libexec}/bin/{pub,dart?*}"]
end
def test