Commit | Line | Data |
9d42b191 |
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, |
b750da5f |
24 | 'Capture::Tiny' => 0, |
25 | 'File::Tree::Snapshot' => 0, |
26 | 'Object::Remote' => 0, |
8f6edb58 |
27 | 'JSON::Diffable' => 0, |
cf02394f |
28 | ); |
9d42b191 |
29 | |
30 | # have to do this since old EUMM dev releases miss the eval $VERSION line |
31 | my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 }; |
32 | my $mymeta = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5702 }; |
33 | |
34 | WriteMakefile( |
35 | NAME => 'File-Tree-Snapshot', |
cf02394f |
36 | VERSION_FROM => 'lib/System/Introspector.pm', |
9d42b191 |
37 | PREREQ_PM => { |
38 | %requires, |
9d42b191 |
39 | ($mymeta_works ? () : (%build_requires)), |
40 | }, |
41 | ($mymeta_works |
42 | ? ( # BUILD_REQUIRES makes MYMETA right, requires stops META being wrong |
43 | BUILD_REQUIRES => \%build_requires, |
44 | META_ADD => { requires => \%requires } |
45 | ) |
46 | : ( # META_ADD both to get META right - only Makefile written |
47 | META_ADD => { |
48 | requires => \%requires, |
49 | build_requires => \%build_requires, |
50 | } |
51 | ) |
52 | ), |
53 | ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()), |
54 | LICENSE => 'perl', |
55 | );; |