add sponsored by notice
[scpubgit/System-Introspector.git] / Makefile.PL
CommitLineData
9d42b191 1use strict;
2use warnings;
3
4use ExtUtils::MakeMaker;
5
6my %build_requires => (
7 'Test::More' => 0,
8);
9
10my %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,
cf02394f 24);
9d42b191 25
26# have to do this since old EUMM dev releases miss the eval $VERSION line
27my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 };
28my $mymeta = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5702 };
29
30WriteMakefile(
31 NAME => 'File-Tree-Snapshot',
cf02394f 32 VERSION_FROM => 'lib/System/Introspector.pm',
9d42b191 33 PREREQ_PM => {
34 %requires,
9d42b191 35 ($mymeta_works ? () : (%build_requires)),
36 },
37 ($mymeta_works
38 ? ( # BUILD_REQUIRES makes MYMETA right, requires stops META being wrong
39 BUILD_REQUIRES => \%build_requires,
40 META_ADD => { requires => \%requires }
41 )
42 : ( # META_ADD both to get META right - only Makefile written
43 META_ADD => {
44 requires => \%requires,
45 build_requires => \%build_requires,
46 }
47 )
48 ),
49 ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()),
50 LICENSE => 'perl',
51);;