4 use ExtUtils::MakeMaker;
6 (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
15 'File::Basename' => 0,
16 'Module::Metadata' => 0,
17 'Module::Runtime' => 0,
18 'Data::YAML::Writer' => 0,
19 'Object::Remote' => 0,
20 'Object::Remote::Future' => 0,
21 'Config::General' => 0,
27 'Capture::Tiny' => 0.12, # capture_stderr
28 'File::Tree::Snapshot' => 0,
29 'Object::Remote' => 0,
30 'JSON::Diffable' => 0,
33 # have to do this since old EUMM dev releases miss the eval $VERSION line
34 my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 };
35 my $mymeta = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5702 };
38 NAME => 'System-Introspector',
39 VERSION_FROM => 'lib/System/Introspector.pm',
42 ($mymeta_works ? () : (%build_requires)),
45 ? ( # BUILD_REQUIRES makes MYMETA right, requires stops META being wrong
46 BUILD_REQUIRES => \%build_requires,
47 META_ADD => { requires => \%requires }
49 : ( # META_ADD both to get META right - only Makefile written
51 requires => \%requires,
52 build_requires => \%build_requires,
56 ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()),
58 EXE_FILES => ['bin/system-introspector'],