Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homebrew formulae for JavaScript engines #17

Closed
1 of 5 tasks
mathiasbynens opened this issue Jan 27, 2017 · 14 comments
Closed
1 of 5 tasks

Homebrew formulae for JavaScript engines #17

mathiasbynens opened this issue Jan 27, 2017 · 14 comments

Comments

@mathiasbynens
Copy link
Owner

mathiasbynens commented Jan 27, 2017

Being able to install stable versions of major ECMAScript engines through Homebrew would make it much easier to set up eshost on macOS, and to just test them out in general. The easier it is to install these engines, the more likely developers are to play around with them and file bugs.

Let’s create Homebrew formulae for each of them!

Please leave a comment if you want to work on any of these.

@ariya
Copy link

ariya commented Jan 27, 2017

Is Nashorn necessary in this case? Installing JDK already gives jrunscript, a JS shell utilizing Nashorn.

Example: http://esprima.readthedocs.io/en/3.1/getting-started.html#using-esprima-with-rhino-or-nashorn.

@oaleynik
Copy link

@mathiasbynens thanks for this! Question: currently it installs version 5.1.281.47. Is there any way to install the latest V8?

@mathiasbynens
Copy link
Owner Author

@oaleynik Someone needs to update the formula for V8. The process is fairly straight-forward — are you up for it? https://github.com/Homebrew/homebrew-core/blob/master/CONTRIBUTING.md#submit-a-version-upgrade-for-the-foo-formula

@oaleynik
Copy link

@mathiasbynens I see someone have submitted PR for 5.4: Homebrew/homebrew-core#7168

Also there is a formula for 5.7:
https://github.com/pinepain/homebrew-devtools/blob/master/Formula/v8%405.7.rb

@oaleynik
Copy link

@mathiasbynens working on PR now. Will update to 5.8.57

@mathiasbynens
Copy link
Owner Author

@oaleynik Please post a link to the PR here once it’s ready!

@oaleynik
Copy link

@mathiasbynens will do! I don't have the fast network link here so fetching v8 takes a lot of time :)
I'm actually making formula to build 5.8.48 as default and build latest with --HEAD option

@oaleynik
Copy link

@oaleynik
Copy link

I'm not sure is it ok to export d8 executable only though

@mathiasbynens
Copy link
Owner Author

ChakraCore can now be installed with Homebrew! OP updated.

@mathiasbynens
Copy link
Owner Author

I’ve started to file requests to host each engine’s pre-built binaries for each OS/arch somewhere official.

This would simplify the Homebrew formulae and would drastically improve brew install $engine performance since we‘d then no longer have to build from source.

@pinepain
Copy link

pinepain commented Feb 3, 2017

Thank you very much! It would be great if they help us, packaging should cost nothing to them after binaries are actually built.

@mathiasbynens
Copy link
Owner Author

Since binary formulae aren’t welcome in homebrew-core, I’ve created a tap where such formulae can be hosted: https://github.com/mathiasbynens/homebrew-ecmascript

@mathiasbynens
Copy link
Owner Author

…and jsvu now solves this problem in a much better way. 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants