X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=c23491f1099bee972107b4d2961c9d296c118dce;hb=ff5475325a5d499e010afeea7315fe1d0bd58ba3;hp=561a699bdfaa8382664fac13b987b0a1d707712c;hpb=9c10afaa72f62a5431830580919fd6ad0ee02f64;p=p5sagit%2FModule-Metadata.git diff --git a/Makefile.PL b/Makefile.PL index 561a699..c23491f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,6 +1,9 @@ use strict; 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'; @@ -9,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, @@ -23,8 +27,8 @@ WriteMakefile( ? ( 'IO::Scalar' => 0 ) : () , - 'perl' => '5.006', }, + -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, + }, + }, + }, + } ), );