X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=93299641576354b5357032995a862b9065cd0cf8;hb=e6454d7f17b0f2b4d1892c8ad4e008e7f340a1e0;hp=561a699bdfaa8382664fac13b987b0a1d707712c;hpb=9c10afaa72f62a5431830580919fd6ad0ee02f64;p=p5sagit%2FModule-Metadata.git diff --git a/Makefile.PL b/Makefile.PL index 561a699..9329964 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,11 +12,11 @@ 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, 'File::Spec' => 0, - 'IO::File' => 0, 'strict' => 0, 'warnings' => 0, 'vars' => 0, @@ -23,8 +26,8 @@ WriteMakefile( ? ( 'IO::Scalar' => 0 ) : () , - 'perl' => '5.006', }, + -f 'META.yml' ? () : ( META_MERGE => { 'meta-spec' => { version => 2 }, dynamic_config => 0, @@ -40,5 +43,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, + }, + }, + }, + } ), );