fix metadata
[p5sagit/Import-Into.git] / Makefile.PL
CommitLineData
38a56c0f 1use strict;
2use warnings FATAL => 'all';
38a56c0f 3use ExtUtils::MakeMaker;
4(do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
5
f84a529e 6my %WriteMakefileArgs = (
88c433b3 7 NAME => 'Import::Into',
38a56c0f 8 VERSION_FROM => 'lib/Import/Into.pm',
9 PREREQ_PM => { },
10 LICENSE => 'perl',
bd5c78da 11
12 META_MERGE => {
2ca328a7 13 'meta-spec' => { version => 2 },
bd5c78da 14 dynamic_config => 0,
bd5c78da 15 resources => {
16 # r/w: p5sagit@git.shadowcat.co.uk:Import-Into.git
3db5d18e 17 repository => {
18 url => 'git://git.shadowcat.co.uk/p5sagit/Import-Into.git',
19 web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/Import-Into.git',
20 type => 'git',
21 },
22 bugtracker => {
23 mailto => 'bug-Import-Into@rt.cpan.org',
24 web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Import-Into',
25 },
bd5c78da 26 },
f84a529e 27 },
28
29 META_ADD => {
284910c6 30 'meta-spec' => { version => 2 },
3dd3d1b9 31 prereqs => {
cc906f81 32 configure => {
33 requires => {
284910c6 34 'ExtUtils::MakeMaker' => 0,
cc906f81 35 },
36 },
3dd3d1b9 37 runtime => {
38 requires => {
39 'strict' => '0',
40 'warnings' => '0',
cc087979 41 'Module::Runtime' => '0',
f84a529e 42 'perl' => '5.006',
3dd3d1b9 43 },
44 },
45 test => {
46 requires => {
47 'Exporter' => '0',
48 'base' => '0',
49 'Test::More' => '0',
50 },
51 },
52 },
bd5c78da 53 },
dcc104db 54
55 realclean => { FILES => [ 'Distar/', 'MANIFEST*' ] },
38a56c0f 56);
f84a529e 57
58my $eumm_version = eval $ExtUtils::MakeMaker::VERSION;
59
60for (qw(configure build test runtime)) {
61 my $key = $_ eq 'runtime' ? 'PREREQ_PM' : uc $_.'_REQUIRES';
62 next unless exists $WriteMakefileArgs{META_ADD}{prereqs}{$_}
63 or exists $WriteMakefileArgs{$key};
64 my $r = $WriteMakefileArgs{$key} = {
65 %{$WriteMakefileArgs{META_ADD}{prereqs}{$_}{requires} || {}},
66 %{delete $WriteMakefileArgs{$key} || {}},
67 };
68 defined $r->{$_} or delete $r->{$_} for keys %$r;
69}
70
71# dynamic prereqs get added here.
72
73$WriteMakefileArgs{MIN_PERL_VERSION} = delete $WriteMakefileArgs{PREREQ_PM}{perl} || 0;
74
75$WriteMakefileArgs{BUILD_REQUIRES} = {
76 %{$WriteMakefileArgs{BUILD_REQUIRES} || {}},
77 %{delete $WriteMakefileArgs{TEST_REQUIRES}}
78} if $eumm_version < 6.63_03;
79
80$WriteMakefileArgs{PREREQ_PM} = {
81 %{$WriteMakefileArgs{PREREQ_PM}},
82 %{delete $WriteMakefileArgs{BUILD_REQUIRES}}
83} if $eumm_version < 6.55_01;
84
85delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
86 if $eumm_version < 6.51_03;
87
88WriteMakefile(%WriteMakefileArgs);