X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=6be1ce8535aa5d816c2ef73b4890217b502f70c9;hb=790c0f177613a7e2c53b6f1f3b7aa4bb27bfda22;hp=a2a7465f86c0564b0b469ac12e7d382f39c23236;hpb=253d7c999a98368a6ecbdd7b1cc914d65e3bce65;p=gitmo%2FRole-Tiny.git diff --git a/Makefile.PL b/Makefile.PL index a2a7465..6be1ce8 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,47 +1,23 @@ use strict; use warnings FATAL => 'all'; -use 5.008003; +use 5.008001; use ExtUtils::MakeMaker; (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml'; -unless (-e 'META.yml') { - warn "MYMETA.yml is going to be completely wrong. Sorry.\n"; -} - my %BUILD_DEPS = ( 'Test::More' => 0.96, 'Test::Fatal' => 0.003, ); -my %RUN_DEPS = ( - 'Class::Method::Modifiers' => 1.05, - 'strictures' => 1, -); - # 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 = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5702 }; WriteMakefile( - NAME => 'Moo', - VERSION_FROM => 'lib/Moo.pm', + NAME => 'Role-Tiny', + VERSION_FROM => 'lib/Role/Tiny.pm', PREREQ_PM => { - %RUN_DEPS, ($] >= 5.010 ? () : ('MRO::Compat' => 0)), ($mymeta_works ? () : (%BUILD_DEPS)), }, - ($mymeta_works - ? ( # BUILD_REQUIRES makes MYMETA right, requires stops META being wrong - BUILD_REQUIRES => \%BUILD_DEPS, - META_ADD => { requires => \%RUN_DEPS } - ) - : ( # META_ADD both to get META right - only Makefile written - META_ADD => { - requires => \%RUN_DEPS, - build_requires => \%BUILD_DEPS, - } - ) - ), - ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()), - LICENSE => 'perl', + $mymeta_works ? (BUILD_REQUIRES => \%BUILD_DEPS) : (), );