mxcl/homebrew — pull request #12920 by brxfork (2012-06-19 13:04:48+00:00)
Title: Add '--with-perl' option to graphicsmagick. 

This is an update for the graphicsmagick.rb formula.
It pemits to install PerlMagick (aka Graphics::Magick Perl module) in standard perl lib directory when '--with-perl' is added as option.

Important things:
* Graphics::Magick module is *not* present on CPAN - build from source is the only way to get it
* this works fine with perlbrew because perl and libs are installed in $HOME (except with perl 5.16: fixed in GraphicsMagick 1.4 [SourceForge issue 3531512 "PerlMagick does not build with perl 5.16".])
* with native macosx perl, it should be necessary to deal with permissions

Because of this last point, it's perhaps (??) a good idea to create a separated formula for PerlMagick: that will permit to do 1) brew install graphicsmagick 2) *sudo* brew install graphicsmagickPerlMagick.