DartEditor + homebrew

251 views
Skip to first unread message

Kevin Moore

unread,
Jun 8, 2012, 1:55:24 PM6/8/12
to General Dart Discussion
I like to keep up with the latest integration build of homebrew,
but...well...this is me

http://xkcd.com/974/

So I created a homebrew formula to install DartEditor. (FYI on
homebrew if you don't know - http://mxcl.github.com/homebrew/ )

The patch is submitted to the main repository (https://github.com/mxcl/
homebrew/pull/12678), but in the mean time:

brew install https://raw.github.com/kevmoo/homebrew/dart-editor/Library/Formula/dart-editor.rb

This formula links all binaries dart-sdk so you get 'dart', 'dart2js',
and 'pub'

I also shimmed dartdoc.dart as 'dartdoc' so you can just run that
command to create docs.

dartdoc my_cool_dart_code.dart

Regardless if it's accepted to the main homebrew set of formula, I'm
going to keep my copy updated (it WILL save me time across two
machines)

As always, feedback/suggestions/patches welcome. See the 'dart-editor'
branch on my fork of homebrew: https://github.com/kevmoo/homebrew/tree/dart-editor

Seth Ladd

unread,
Jun 8, 2012, 3:35:01 PM6/8/12
to Kevin Moore, General Dart Discussion
Wow, thanks Kevin! As a Homebrew user myself, this is awesome to see. Bonus points if you can install *and compile* Dart with Homebrew. :)

Kevin Moore

unread,
Jun 8, 2012, 3:37:03 PM6/8/12
to Seth Ladd, General Dart Discussion
Fix the bugs that have been plauging me in building dart on my Mac and I'm all there.

Drives me NUTS.

...and it's likely this will get rejected from #homebrew since I'm not building it and just copying the zipped build output.

Kevin Moore

unread,
Jun 8, 2012, 3:39:56 PM6/8/12
to General Dart Discussion
Let me be more specific:

Find me a Dart engineer in the Fremont office that understands
building the dart source and I'll buy him a steak dinner if he can
help me get a "real" (built from source) SDK + editor install for
Homebrew.

On Jun 8, 12:37 pm, Kevin Moore <kev...@j832.com> wrote:
> Fix the bugs that have been plauging me in building dart on my Mac and I'm
> all there.
>
> Drives me NUTS.
>
> ...and it's likely this will get rejected from #homebrew since I'm not
> building it and just copying the zipped build output.
>
>
>
>
>
>
>
> On Fri, Jun 8, 2012 at 12:35 PM, Seth Ladd <sethl...@google.com> wrote:
> > Wow, thanks Kevin! As a Homebrew user myself, this is awesome to see.
> > Bonus points if you can install *and compile* Dart with Homebrew. :)
>
> > On Fri, Jun 8, 2012 at 10:55 AM, Kevin Moore <kev...@j832.com> wrote:
>
> >> I like to keep up with the latest integration build of homebrew,
> >> but...well...this is me
>
> >>http://xkcd.com/974/
>
> >> So I created a homebrew formula to install DartEditor. (FYI on
> >> homebrew if you don't know -http://mxcl.github.com/homebrew/)
>
> >> The patch is submitted to the main repository (https://github.com/mxcl/
> >> homebrew/pull/12678 <https://github.com/mxcl/homebrew/pull/12678>), but
> >> in the mean time:
>
> >>  brew install
> >>https://raw.github.com/kevmoo/homebrew/dart-editor/Library/Formula/da...

Seth Ladd

unread,
Jun 8, 2012, 9:06:11 PM6/8/12
to Kevin Moore, Adam Smith, General Dart Discussion
+ Adam

Hi Kevin,

Are you on Mac 10.7 (and/or XCode 4) ?  If so, Adam has a tiny tweak to build Dart that hopefully he can dig out.

Sounds like we have a cool hackathon project on our hands. :)

Seth

financeCoding

unread,
Jun 8, 2012, 9:23:40 PM6/8/12
to mi...@dartlang.org
Hi Kevin,

For compiling dart with xcode 4 the GCC_VERSION needs to be changed to 'com.apple.compilers.llvmgcc42' in dart/tools/gyp/configurations_xcode.gypi. I've rarely have problems building the dart project on mac (Lately I noticed a bug with the document generation on part of the build, but need to verify its not something I introduced). It's been a very long time since  tried to build the actual DartEditor, so not sure what type of song and dance is needed for that. Dont know much about homebrew, feel free to ping me on G+ and we can hack it out. 

Kind Regards,
Adam 

Kevin Moore

unread,
Jun 9, 2012, 3:56:51 PM6/9/12
to General Dart Discussion
FYI: I've updated the script. I've fixed errors with dart2js and pub
and used the approved requirement system.

If you've already installed using the script and want to reinstall,
do:

'brew uninstall dart-editor'

Then

brew install \
https://raw.github.com/kevmoo/homebrew/dart-editor/Library/Formula/dart-editor.rb

On Jun 8, 10:55 am, Kevin Moore <kev...@j832.com> wrote:
> I like to keep up with the latest integration build of homebrew,
> but...well...this is me
>
> http://xkcd.com/974/
>
> So I created a homebrew formula to install DartEditor. (FYI on
> homebrew if you don't know -http://mxcl.github.com/homebrew/)
>
> The patch is submitted to the main repository (https://github.com/mxcl/
> homebrew/pull/12678), but in the mean time:
>
>   brew installhttps://raw.github.com/kevmoo/homebrew/dart-editor/Library/Formula/da...

Bob Nystrom

unread,
Jun 11, 2012, 4:17:08 PM6/11/12
to Kevin Moore, General Dart Discussion
On Fri, Jun 8, 2012 at 10:55 AM, Kevin Moore <kev...@j832.com> wrote:

I also shimmed dartdoc.dart as 'dartdoc' so you can just run that
command to create docs.

This is an oversight on my part. We should probably have a dartdoc shell script in bin/ in the SDK. Filed a bug so I don't forget this: http://code.google.com/p/dart/issues/detail?id=3533
 

 dartdoc my_cool_dart_code.dart

Regardless if it's accepted to the main homebrew set of formula, I'm
going to keep my copy updated (it WILL save me time across two
machines)

As always, feedback/suggestions/patches welcome.

This is awesome! Thanks for doing it! :)

- bob

Kevin Moore

unread,
Jun 11, 2012, 8:54:20 PM6/11/12
to mi...@dartlang.org, Kevin Moore
A note: I have to re-shim the dart scripts to assume 'dart' in the path because the shims in the SDK assume a relative path to the 'dart' executable, which breaks under symlinks.

I'd vote for the shell shims to assume dart is in the path to avoid breaking symlinks and the like.

On Monday, June 11, 2012 1:17:08 PM UTC-7, Bob Nystrom wrote:

Peter Ahé

unread,
Jun 22, 2012, 7:06:47 AM6/22/12
to Kevin Moore, mi...@dartlang.org
Hi Kevin,

If you file a bug, I'll put it on my list of things to clean up. Ideally, we would build a binary launcher. In the end, it is easier for the end user.

Cheers,
Peter
Reply all
Reply to author
Forward
0 new messages