Attached patch makes Module::Build generate META.yml conforming to the latest spec, v1.3. The only difference from v1.2 is that in the no_index item the second-level key "dir" has changed to "directory", so this patch just does a translation if a v1.2-style no_index setting was supplied. This makes CPANTS happier.
-zefram
--- Module-Build-0.2808_01.orig/lib/Module/Build/Base.pm 2007-10-24 17:48:08.000000000 +0100 +++ Module-Build-0.2808_01.mod0/lib/Module/Build/Base.pm 2007-10-25 19:22:56.264034077 +0100 @@ -3424,14 +3424,19 @@ } ; if (exists $p->{no_index}) { - $add_node->('no_index', $p->{no_index}); + my $no_index = $p->{no_index}; + if(exists($no_index->{dir}) && !exists($no_index->{directory})) { + $no_index = { %$no_index }; + $no_index->{directory} = delete($no_index->{dir}); + } + $add_node->('no_index', $no_index); } $add_node->('generated_by', "Module::Build version $Module::Build::VERSION"); $add_node->('meta-spec', - {version => '1.2', - url => 'http://module-build.sourceforge.net/META-spec-v1.2.html', + {version => '1.3', + url => 'http://module-build.sourceforge.net/META-spec-v1.3.html', }); while (my($k, $v) = each %{$self->meta_add}) {