in reply to PAUSE is too clever (a minor matter)

In Build.PL, you can include something like this:
no_index => { directory => 'demos', },
(as arguments for Module::Build->new). This results into this code in META.yml:
no_index: directory: demos

Update: Now that petdance mentioned it (see below), I noticed that search.cpan.org shows the modules whether or not they are in no_index. Anyway I think it's a good thing to put example modules in no_index so they aren't included in the modules index.

Replies are listed 'Best First'.
Re^2: PAUSE is too clever (a minor matter)
by syphilis (Archbishop) on May 22, 2007 at 14:05 UTC
    Oh ... interesting.

    I don't provide a Build.PL. Is there a MakeMaker equivalent ? I had a quick look through 'perldoc ExtUtils::MakeMaker' but didn't spot anything. (That doesn't mean it's not there, however :-)

    I don't even provide a META.yml, but I believe that file can be created by running 'make dist'. I guess I could create that file and insert by hand (if necessary) the appropriate 'no_index' entry that you provided ? (I take it that it's the MEYA.yml contents and not the Build.PL contents that's the defining element ?)

    Thanks, betterworld.

    Cheers,
    Rob
      guess I could create that file and insert by hand (if necessary) the appropriate 'no_index' entry that you provided ?
      I think so, according to PAUSE About page:
      The PAUSE indexer honours the contents of the no_index and the provides fields. All other fields are currently ignored.

      Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

        The PAUSE indexer honours the contents of the no_index and the provides fields. All other fields are currently ignored

        Thanks, naikonta - that seems quite definitive.

        I'm still wondering whether there's a way to get MakeMaker to generate a META.yml that contains the 'no_index' entry - or do I have to edit by hand ? (This, of course, is purely academic - there's no reason that I can't manually insert the 'no_index' entry.)

        Cheers,
        Rob