X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=49d1ac2717e56332fe0921904dcd50dc790ac3ea;hb=40c86119f930217d0db856c6a056957cf07f3d97;hp=7628592bbd5cbd9f6d85830a4862546c957f6d28;hpb=5daa18daa1983e19ea34458444ed8a56bd8ef030;p=gitmo%2FRole-Tiny.git diff --git a/Makefile.PL b/Makefile.PL index 7628592..49d1ac2 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,6 +1,6 @@ use strict; use warnings FATAL => 'all'; -use 5.008001; +use 5.006; use ExtUtils::MakeMaker; (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml'; @@ -10,22 +10,36 @@ my %BUILD_DEPS = ( ); # have to do this since old EUMM dev releases miss the eval $VERSION line -my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 }; +my $mymeta = eval($ExtUtils::MakeMaker::VERSION) >= 6.57_02; +my $mymeta_works = eval($ExtUtils::MakeMaker::VERSION) >= 6.57_07; WriteMakefile( NAME => 'Role::Tiny', VERSION_FROM => 'lib/Role/Tiny.pm', PREREQ_PM => { + Exporter => '5.57', ($] >= 5.010 ? () : ('MRO::Compat' => 0)), ($mymeta_works ? () : (%BUILD_DEPS)), }, $mymeta_works ? (BUILD_REQUIRES => \%BUILD_DEPS) : (), + ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()), - META_ADD => { + -f 'META.yml' ? () : (META_MERGE => { + 'meta-spec' => { version => 2 }, + no_index => { + directory => [ 'xt' ] + }, resources => { # r/w: gitmo@git.shadowcat.co.uk:Role-Tiny.git - repository => 'git://git.shadowcat.co.uk/Role-Tiny.git', + repository => { + url => 'git://git.shadowcat.co.uk/gitmo/Role-Tiny.git', + web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo/Role-Tiny.git', + type => 'git', + }, + bugtracker => { + mailto => 'bug-Role-Tiny@rt.cpan.org', + web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Role-Tiny', + }, }, - }, - + }), );