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,
25 'File::Tree::Snapshot' => 0,
26 'Object::Remote' => 0,
29 # have to do this since old EUMM dev releases miss the eval $VERSION line
30 my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 };
31 my $mymeta = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5702 };
34 NAME => 'File-Tree-Snapshot',
35 VERSION_FROM => 'lib/System/Introspector.pm',
38 ($mymeta_works ? () : (%build_requires)),
41 ? ( # BUILD_REQUIRES makes MYMETA right, requires stops META being wrong
42 BUILD_REQUIRES => \%build_requires,
43 META_ADD => { requires => \%requires }
45 : ( # META_ADD both to get META right - only Makefile written
47 requires => \%requires,
48 build_requires => \%build_requires,
52 ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()),