2 use warnings FATAL => 'all';
4 use ExtUtils::MakeMaker;
6 unless (-e 'META.yml') {
7 warn "MYMETA.yml is going to be completely wrong. Sorry.\n";
12 'Test::Fatal' => 0.003,
16 'Class::Method::Modifiers' => 1.05,
20 # have to do this since old EUMM dev releases miss the eval $VERSION line
21 my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 };
22 my $mymeta = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5702 };
26 VERSION_FROM => 'lib/Moo.pm',
27 ABSTRACT_FROM => 'lib/Moo.pm',
28 AUTHOR => 'Matt S Trout <mst@shadowcat.co.uk>',
31 ($] >= 5.010 ? () : ('MRO::Compat' => 0)),
32 ($mymeta_works ? () : (%BUILD_DEPS)),
35 ? ( # BUILD_REQUIRES makes MYMETA right, requires stops META being wrong
36 BUILD_REQUIRES => \%BUILD_DEPS,
37 META_ADD => { requires => \%RUN_DEPS }
39 : ( # META_ADD both to get META right - only Makefile written
41 requires => \%RUN_DEPS,
42 build_requires => \%BUILD_DEPS,
46 ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()),