updated deps
[scpubgit/System-Introspector.git] / Makefile.PL
1 use strict;
2 use warnings;
3
4 use ExtUtils::MakeMaker;
5
6 my %build_requires => (
7     'Test::More'        => 0,
8 );
9
10 my %requires = (
11     'Moo'                       => 0.009013,
12     'File::Path'                => 0,
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,
19     'Pod::Usage'                => 0,
20     'Getopt::Long'              => 0,
21     'Digest::SHA'               => 0,
22     'strictures'                => 1,
23     'IPC::Run'                  => 0,
24     'Capture::Tiny'             => 0,
25     'File::Tree::Snapshot'      => 0,
26     'Object::Remote'            => 0,
27 );
28
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 };
32
33 WriteMakefile(
34   NAME => 'File-Tree-Snapshot',
35   VERSION_FROM => 'lib/System/Introspector.pm',
36   PREREQ_PM => {
37     %requires,
38     ($mymeta_works ? () : (%build_requires)),
39   },
40   ($mymeta_works
41     ? ( # BUILD_REQUIRES makes MYMETA right, requires stops META being wrong
42         BUILD_REQUIRES => \%build_requires,
43         META_ADD => { requires => \%requires }
44       )
45     : ( # META_ADD both to get META right - only Makefile written
46         META_ADD => {
47           requires => \%requires,
48           build_requires => \%build_requires,
49         }
50       )
51   ),
52   ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()),
53   LICENSE => 'perl',
54 );;