Perlito icon indicating copy to clipboard operation
Perlito copied to clipboard

Add Homebrew formula for Perlito executables

Open Alhadis opened this issue 8 years ago • 4 comments

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.

Alhadis avatar Nov 15 '15 13:11 Alhadis

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 [email protected]:

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.

fglock avatar Nov 15 '15 16:11 fglock

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:

  • http://apple.stackexchange.com/questions/97065/how-do-i-write-a-homebrew-recipe
  • https://github.com/Homebrew/homebrew/tree/master/share/doc/homebrew#contributing

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.

Alhadis avatar Nov 15 '15 16:11 Alhadis

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_in_the"node.js"_Javascript_compiler

2015-11-15 17:00 GMT+01:00 Flavio S. Glock [email protected]:

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 [email protected]:

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.

fglock avatar Nov 15 '15 16:11 fglock

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 :( )

Alhadis avatar Nov 15 '15 16:11 Alhadis