Evil EU::MM hackery required

Ash Berlin 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
> yet.
>
> Devel::CheckOS and Devel::CheckLib both come with a little script to  
> let
> module authors easily bundle them with their code.
>  http://search.cpan.org/src/DCANTRELL/Devel-CheckOS-1.42/bin/use-devel-assertos
>
> 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'?

package #
   Devel::CheckOS;


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  
> correctly
> 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
> please!
>
> -- 
> David Cantrell | Reality Engineer, Ministry of Information
>
>         Nuke a disabled unborn gay baby whale for JESUS!



More information about the london.pm mailing list