aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/dart.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/dart.rb')
-rw-r--r--Library/Formula/dart.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/Library/Formula/dart.rb b/Library/Formula/dart.rb
index 38a48b433..a470fed5c 100644
--- a/Library/Formula/dart.rb
+++ b/Library/Formula/dart.rb
@@ -9,16 +9,17 @@ class Dart < Formula
def shim_script target
<<-EOS.undent
#!/bin/bash
- exec "#{target}" "$@"
+ exec dart "#{target}" "$@"
EOS
end
def install
libexec.install Dir['*']
- (bin+'dart').write shim_script("#{libexec}/bin/dart")
- (bin+'dart2js').write shim_script("#{libexec}/bin/dart2js")
- (bin+'pub').write shim_script("#{libexec}/bin/pub")
+ bin.install_symlink libexec+'bin/dart'
+ (bin+'dart2js').write shim_script(libexec+'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
def test