Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

jsbeautify inspired by http://www.sencha.com/blog/2010/10/21/make-a-j…

  • Loading branch information...
commit a10a73e0f54c21aa38329cdfe0f2f8e331aa3712 1 parent 681ac97
Jorge Falcão authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 Library/Formula/jsbeautify.rb
View
16 Library/Formula/jsbeautify.rb
@@ -0,0 +1,16 @@
+require 'formula'
+
+class Jsbeautify <Formula
+ url 'git://github.com/einars/js-beautify.git'
@adamv
adamv added a note

This should be specified as head, not url, since it isn't a stable release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ homepage 'http://github.com/einars/js-beautify'
+ version 'HEAD'
+
+ depends_on 'v8'
+
+ def install
+ v8path = "/usr/local/Cellar/v8/HEAD"
@adamv
adamv added a note

Can't assume installation to /usr/local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ system "cd v8 && g++ -o jsbeautify jsbeautify.cpp -I#{v8path}/include/ -lv8 -L#{v8path}/lib/ && ls"
@adamv
adamv added a note

Don't build out of the v8 cellar!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ system "ls v8"
@adamv
adamv added a note

What is this line for?

@jlbfalcao Owner

just test - sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ bin.install 'v8/jsbeautify'
+ end
+end
@adamv

Don't build out of the v8 cellar!

@adamv

Can't assume installation to /usr/local

@adamv

What is this line for?

@adamv

This should be specified as head, not url, since it isn't a stable release.

@jlbfalcao

just test - sorry

Please sign in to comment.
Something went wrong with that request. Please try again.