fglock / Perlito

"Perlito" Perl programming language compiler
http://fglock.github.io/Perlito/
Other
414 stars 47 forks source link

Add Homebrew formula for Perlito executables #34

Open Alhadis opened 8 years ago

Alhadis commented 8 years ago

It'd be awesome to have Perlito installable on Mac OS with Homebrew.

That's pretty much it. Reason I'm filing an issue for this instead of adding it myself is because formula submissions need to come from official sources - simply having a "yeah, it's probably okay" or "the submitter said go ahead" isn't good enough.

fglock commented 8 years ago

I didn't find much information on how to submit formulas to Homebrew, can you help getting started with that?

I did find a couple of things - this is the formula for "ack": https://github.com/Homebrew/homebrew/blob/master/Library/Formula/ack.rb

And this site distributes formulas: http://brewformulas.org/

I also looked and I couldn't find a formula for "perltidy".

2015-11-15 14:43 GMT+01:00 John Gardner notifications@github.com:

It'd be awesome to have Perlito installable on Mac OS with Homebrew http://brew.sh/.

That's pretty much it. Reason I'm filing an issue for this instead of adding it myself is because formula submissions need to come from official sources - simply having a "yeah, it's probably okay" or "the submitter said go ahead" isn't good enough.

— Reply to this email directly or view it on GitHub https://github.com/fglock/Perlito/issues/34.

Alhadis commented 8 years ago

I know, perltidy isn't in the formulae repository either. :\ I'm guessing there just wasn't any demand, or nobody thought to submit it.

I've actually never submitted a formula, to be honest (the other reason I'm filling an issue, heh), but I'm told that the Homebrew team's gone out of their way to make it as easy and seamless as possible.

There's more info here:

The docs mention having Homebrew installed, but if you're on Windows, you can easily just treat it as a regular pull request. The Brew commands are just there to make your life a bit easier. For instance, look at this pull request to see all that's been changed/added to submit a formula.

fglock commented 8 years ago

This Homebrew documentation seems to suggest that you install Perl modules using "cpan" instead of Homebrew: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Gems,-Eggs-and-Perl-Modules.md

If this works for you, then you can install "Perlito5" from cpan directly. This will install the "perlito5" command line and the compiler libraries.

Once you have the Perl module installed, you can also create the "perlito5.js" script using the instructions here: http://search.cpan.org/dist/Perlito5/lib/Perlito5.pm#Obtaining_a_ "perlito5.js"_script_that_executes_inthe"node.js"_Javascript_compiler

2015-11-15 17:00 GMT+01:00 Flavio S. Glock fglock@gmail.com:

I didn't find much information on how to submit formulas to Homebrew, can you help getting started with that?

I did find a couple of things - this is the formula for "ack": https://github.com/Homebrew/homebrew/blob/master/Library/Formula/ack.rb

And this site distributes formulas: http://brewformulas.org/

I also looked and I couldn't find a formula for "perltidy".

2015-11-15 14:43 GMT+01:00 John Gardner notifications@github.com:

It'd be awesome to have Perlito installable on Mac OS with Homebrew http://brew.sh/.

That's pretty much it. Reason I'm filing an issue for this instead of adding it myself is because formula submissions need to come from official sources - simply having a "yeah, it's probably okay" or "the submitter said go ahead" isn't good enough.

— Reply to this email directly or view it on GitHub https://github.com/fglock/Perlito/issues/34.

Alhadis commented 8 years ago

Well, I thought of that, but wondered if it might be nice if it pops up in Homebrew search results as well. :) I'd say it's not uncommon for CPAN modules to have their executables available from Homebrew as well, if this is anything to go by.

The creation/installation of the perlito5.js script could also be done from Homebrew's install script.

(I'm wondering if this might be more trouble than it's worth for you... eh :( )