2 use warnings FATAL => 'all';
4 use ExtUtils::MakeMaker;
5 (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
9 'Test::Fatal' => 0.003,
13 'Class::Method::Modifiers' => 1.07,
14 'strictures' => 1.001001,
15 'Module::Runtime' => 0.013,
18 # have to do this since old EUMM dev releases miss the eval $VERSION line
19 my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 };
20 my $mymeta = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5702 };
24 VERSION_FROM => 'lib/Moo.pm',
27 ($] >= 5.010 ? () : ('MRO::Compat' => 0)),
28 ($mymeta_works ? () : (%BUILD_DEPS)),
31 ? ( # BUILD_REQUIRES makes MYMETA right, requires stops META being wrong
32 BUILD_REQUIRES => \%BUILD_DEPS,
33 META_ADD => { requires => \%RUN_DEPS }
35 : ( # META_ADD both to get META right - only Makefile written
37 requires => \%RUN_DEPS,
38 build_requires => \%BUILD_DEPS,
42 ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()),