4 use ExtUtils::MakeMaker;
6 my %build_requires => (
13 'File::Basename' => 0,
14 'Module::Runtime' => 0,
15 'Data::YAML::Writer' => 0,
16 'Object::Remote' => 0,
17 'Object::Remote::Future' => 0,
18 'Config::General' => 0,
26 # have to do this since old EUMM dev releases miss the eval $VERSION line
27 my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 };
28 my $mymeta = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5702 };
31 NAME => 'File-Tree-Snapshot',
32 VERSION_FROM => 'lib/System/Introspector.pm',
35 ($mymeta_works ? () : (%build_requires)),
38 ? ( # BUILD_REQUIRES makes MYMETA right, requires stops META being wrong
39 BUILD_REQUIRES => \%build_requires,
40 META_ADD => { requires => \%requires }
42 : ( # META_ADD both to get META right - only Makefile written
44 requires => \%requires,
45 build_requires => \%build_requires,
49 ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()),