X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=c23491f1099bee972107b4d2961c9d296c118dce;hb=f0839c2d096c473048cdb0cb9807c58d6f3669a3;hp=f280ad81c1b1c85f1da31dbff85419e88203477d;hpb=5661e08cacc1082ed598e775257438dff9453d97;p=p5sagit%2FModule-Metadata.git diff --git a/Makefile.PL b/Makefile.PL index f280ad8..c23491f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -3,6 +3,8 @@ use warnings FATAL => 'all'; use ExtUtils::MakeMaker; use 5.006; +# TODO: convert to dzil and use [OnlyCorePrereqs], and possibly [DualLife] + (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml'; WriteMakefile( @@ -10,6 +12,7 @@ WriteMakefile( VERSION_FROM => 'lib/Module/Metadata.pm', ABSTRACT_FROM => 'lib/Module/Metadata.pm', LICENSE => 'perl', + MIN_PERL_VERSION => '5.006', PREREQ_PM => { 'Carp' => 0, 'File::Find' => 0, @@ -25,6 +28,7 @@ WriteMakefile( : () , }, + -f 'META.yml' ? () : ( META_MERGE => { 'meta-spec' => { version => 2 }, dynamic_config => 0, @@ -40,5 +44,23 @@ WriteMakefile( web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Module-Metadata', }, }, - }, + prereqs => { + test => { + requires => { + 'Test::More' => 0, + 'Carp' => 0, + 'Config' => 0, + 'Cwd' => 0, + 'Data::Dumper' => 0, + 'Exporter' => 0, + 'File::Basename' => 0, + 'File::Find' => 0, + 'File::Path' => 0, + 'File::Spec' => 0, + 'File::Temp' => 0, + 'IO::File' => 0, + }, + }, + }, + } ), );