4 use ExtUtils::MakeMaker;
6 my %build_requires => (
15 # have to do this since old EUMM dev releases miss the eval $VERSION line
16 my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 };
17 my $mymeta = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5702 };
20 NAME => 'JSON-Diffable',
21 VERSION_FROM => 'lib/JSON/Diffable.pm',
24 ($mymeta_works ? () : (%build_requires)),
27 ? ( # BUILD_REQUIRES makes MYMETA right, requires stops META being wrong
28 BUILD_REQUIRES => \%build_requires,
29 META_ADD => { requires => \%requires }
31 : ( # META_ADD both to get META right - only Makefile written
33 requires => \%requires,
34 build_requires => \%build_requires,
38 ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()),