On Sun, Nov 16, 2003 at 06:31:38PM -0400, Domizio Demichelis wrote:
> It seems that you point at the fact that the HTML-MagicTemplate distribution 
> contains the Text::MagicTemplate module. This is not true: in the 
> HTML-MagicTemplate distribution there is just the HTML/MagicTemplate.pm file, 
> however in the HTML/MagicTemplate.pm file there is also a package declaration of 
> Text::MagicTemplate, and I guess this is the real cause of the problem with 
> CPAN. 

Ahh.  The CPAN indexer can't tell the difference.  It just looks for
"package Foo::Bar" statements.

There's two ways to get around this.  There's the old standby hack to
trick the indexer.

        package
            Text::MagicTemplate;

I think that should be enough.  DBI uses this trick, so its pretty safe.


The cleaner, newer way is to use the 'no_index' field in your META.yml file.
You'd set "no_index: Text::MagicTemplate" in HTML::MagicTemplate's META.yml 
to let the indexer know it should ignore it.

Here's the META.yml spec.
http://module-build.sourceforge.net/META-spec.html

And the update to the spec that explains no_index.
http://nntp.x.perl.org/group/perl.module-authors/1411

The CPAN indexer will honor this, but it might not have been updated to
recognize it yet.  Your best bet is to ask [EMAIL PROTECTED]

The problem with this approach is MakeMaker doesn't have very good support
for allowing authors to edit their own META.yml.  Either you let MM
generate it for you or the whole responsibility is yours.  Module::Build
might be better about this, dunno.  So you might want to go with the former
trick for simplicity's sake instead of META.yml.


-- 
Michael G Schwern        [EMAIL PROTECTED]  http://www.pobox.com/~schwern/
I know you get this a lot, but you're breathtaking, like a vision of
simplicity

Reply via email to