2 use warnings FATAL => 'all';
3 use ExtUtils::MakeMaker;
5 (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
16 # have to do this since old EUMM dev releases miss the eval $VERSION line
17 my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 };
18 my $mymeta = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5702 };
21 NAME => 'JSON-Diffable',
22 VERSION_FROM => 'lib/JSON/Diffable.pm',
25 ($mymeta_works ? () : (%build_requires)),
28 ? ( # BUILD_REQUIRES makes MYMETA right, requires stops META being wrong
29 BUILD_REQUIRES => \%build_requires,
30 META_ADD => { requires => \%requires }
32 : ( # META_ADD both to get META right - only Makefile written
34 requires => \%requires,
35 build_requires => \%build_requires,
39 ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()),