Evil EU::MM hackery required
ash_cpan at firemirror.com
Tue Mar 4 15:27:00 GMT 2008
On 4 Mar 2008, at 15:05, David Cantrell wrote:
> And possibly some evil Module::Build hackery too, not sure about that
> Devel::CheckOS and Devel::CheckLib both come with a little script to
> module authors easily bundle them with their code.
> What the scripts do is:
> * create an inc directory in the distribution;
> * fill it with Devel::blah modules
> * add 'use lib inc;use Devel::...' to the start of Makefile.PL
> * add stuff to MANIFEST
> and it all works. However, PAUSE is indexing the inc directory, and
> then doesn't like the distribution because the author is uploading a
> file containing one of my modules.
Can you not use the standard 'hide form pause trick'?
Simply splitting the package keyword and package name on other lines
seems to fool the PAUSE indexer.
> The solution is to add no_index to META.yml. This needs to be done at
> 'make dist' time. EU::MM provides no convenient hooks for this - just
> a currently undocumented EXTRA_META variable. And to set that
> I'd have to parse and re-write the entire Makefile.PL. Yuck.
> So I need to hook into make dist to shim some of my code in to read
> and then write a new META.yml between EU::MM creating it and the
> tarball being created. Buggered if I can figure out how though. Help
> David Cantrell | Reality Engineer, Ministry of Information
> Nuke a disabled unborn gay baby whale for JESUS!
More information about the london.pm