dart 10994

- Allow 32- or 64-bit SDK installs.

Closes Homebrew/homebrew#14217.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Yehor Lvivski 2012-08-15 22:56:23 +03:00 committed by Jack Nagel
parent b6993f8160
commit e9cefdfc88

View file

@ -2,9 +2,16 @@ require 'formula'
class Dart < Formula
homepage 'http://www.dartlang.org/'
url 'https://gsdview.appspot.com/dart-editor-archive-integration/8370/dart-macos.zip'
version '8370'
sha1 '3012ee60ef3ecc082a9ce2cb780feffb488540f5'
if MacOS.prefer_64_bit?
url 'https://gsdview.appspot.com/dart-editor-archive-integration/10994/dartsdk-macos-64.zip'
sha1 '39af10bc1d2c9d33d7b6f485ce39db75e552d789'
else
url 'https://gsdview.appspot.com/dart-editor-archive-integration/10994/dartsdk-macos-32.zip'
sha1 '168bfac62bfd1f717d7b51568d5a7a0f726c493b'
end
version '10994'
def shim_script target
<<-EOS.undent
@ -17,7 +24,7 @@ class Dart < Formula
libexec.install Dir['*']
bin.install_symlink libexec+'bin/dart'
(bin+'dart2js').write shim_script(libexec+'lib/compiler/implementation/dart2js.dart')
(bin+'dart2js').write shim_script(libexec+'lib/dart2js/lib/compiler/implementation/dart2js.dart')
(bin+'dartdoc').write shim_script(libexec+'lib/dartdoc/dartdoc.dart')
(bin+'pub').write shim_script(libexec+'util/pub/pub.dart')
end