fix punctuation typo (thanks, punter!)
[catagits/Catalyst-Manual.git] / Makefile.PL
1 use strict;
2 use warnings FATAL => 'all';
3 use ExtUtils::MakeMaker;
4 (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
5
6 my %WriteMakefileArgs = (
7   NAME => 'Catalyst::Manual',
8   VERSION_FROM => 'lib/Catalyst/Manual.pm',
9   AUTHOR => [ 'Catalyst Contributors, see Catalyst.pm', 'Kieren Diment <zarquon@cpan.org>' ],
10
11   META_MERGE => {
12     'meta-spec' => { version => 2 },
13     dynamic_config => 0,
14     resources => {
15       repository => {
16         # r/w: catagits@git.shadowcat.co.uk:Catalyst-Manual.git
17         url => 'git://git.shadowcat.co.uk/catagits/Catalyst-Manual.git',
18         web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits/Catalyst-Manual.git',
19         type => 'git',
20       },
21       bugtracker => {
22         mailto => 'bug-Catalyst-Manual@rt.cpan.org',
23         web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Catalyst-Manual',
24       },
25     },
26     x_contributors => [ # manually added, from git shortlog -e -s -n
27       'Kennedy Clark <hkclark@gmail.com>',
28       'Tomas Doran <bobtfish@bobtfish.net>',
29       'Kieren Diment <diment@gmail.com>',
30       'Karen Etheridge <ether@cpan.org>',
31       'Jonathan Rockway <jon@jrock.us>',
32       'Jesse Sheidlower <jester@panix.com>',
33       'Brian Cassidy <bricas@cpan.org>',
34       'Caleb Cushing <xenoterracide@gmail.com>',
35       'Dan Dascalescu <bigbang7@gmail.com>',
36       'Rafael Kitover <rkitover@cpan.org>',
37       'Jason Felds <wolfman.ncsu2000@gmail.com>',
38       'Frederik Schwarzer <schwarzerf@gmail.com>',
39       'Jonathan Yu <jawnsy@cpan.org>',
40       'Breno G. de Oliveira <garu@cpan.org>',
41       'Matt S Trout <mst@shadowcat.co.uk>',
42       'Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 <daxim@cpan.org>',
43       'Jess Robinson <cpan@desert-island.me.uk>',
44       'Florian Ragwitz <rafl@debian.org>',
45       'Eden Cardim <e.cardim@shadowcat.co.uk>',
46       'Andrew Rodland <arodland@cpan.org>',
47       'Justin Hunter <justin.d.hunter@gmail.com>',
48       'Matthew Horsfall <wolfsage@gmail.com>',
49       'Ricardo SIGNES <rjbs@cpan.org>',
50       'Robert \'phaylon\' Sedlacek <rs@474.at>',
51       'Shlomi Fish <shlomif@iglu.org.il>',
52       'Jay Kuri <jayk@cpan.org>',
53       'u-foka <no@se.com>',
54       'Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>',
55       'Alexander Hartmaier <abraxxa@cpan.org>',
56       'Peter Karman <perl@peknet.com>',
57       'Andreas Marienborg <andreas.marienborg@gmail.com>',
58       'Gerda Shank <gshank@cpan.org>',
59       'Ian Wells <ijw@cack.org.uk>',
60       'Mark A. Stratman <stratman@gmail.com>',
61       'sockmonk <wes.sheldahl@gmail.com>',
62       'Mateu X. Hunter <hunter@missoula.org>',
63       'Ash Berlin <ash@cpan.org>',
64       'Marcus Ramberg <marcus@nordaaker.com>',
65       'Andy Grundman <andy@hybridized.org>',
66       'kostya <kostya@cpan.org>',
67       'Matthias Dietrich <perl@rb.ly>',
68       'Paul Waring <paul@xk7.net>',
69       'kthakore <thakore.kartik@gmail.com>',
70       'Ronald J Kimball <rjk@tamias.net>',
71       'Tom Feist <shabble@metavore.org>',
72       'Ton Voon <ton.voon@opsera.com>',
73       'Zsolt Zemancsik <darwick@cyberground.hu>',
74       'Iñigo Tejedor Arrondo <poisonbit@gmail.com>',
75       'Eric A. Zarko <ezarko@cpan.org>',
76       'Jay Hannah <jay@jays.net>',
77       'Eisenberger Tamás <tamas@eisenberger.hu>',
78       'Edwin de Graaf <egraaf@egraaf.org>',
79       'Jonathan "Duke" Leto <jonathan@leto.net>',
80       'Jonathan Otsuka <djgoku@gmail.com>',
81       'Alastair McGowan-Douglas <altreus@cpan.org>',
82       'Dominic Humphries <djh@thermeon.eu>',
83       'antgel <no@se.com>',
84       'KMX <kmx@cpan.org>',
85       'David Steinbrunner <dsteinbrunner@pobox.com>',
86       'David Schmidt <davewood@gmx.at>',
87     ],
88   },
89
90   META_ADD => {
91     prereqs => {
92       configure => {
93         requires => {
94           'ExtUtils::MakeMaker' => '0',
95         },
96       },
97       runtime => {
98         requires => {
99           perl => '5.006',
100         },
101       },
102       test => {
103         requires => {
104           'Test::More' => '0.88',
105         },
106       },
107       develop => {
108         requires => {
109           'Pod::Simple' => '3.11', # L<Foo|http://foo.com> support
110           'Test::Pod' => '1.14',
111           'Test::Pod::Coverage' => '1.04',
112         },
113       },
114     },
115   },
116
117   realclean => { FILES => [ 'Distar/', 'MANIFEST*' ] },
118 );
119
120 my $eumm_version  = eval $ExtUtils::MakeMaker::VERSION;
121
122 for (qw(configure build test runtime)) {
123   my $key = $_ eq 'runtime' ? 'PREREQ_PM' : uc $_.'_REQUIRES';
124   next unless exists $WriteMakefileArgs{META_ADD}{prereqs}{$_}
125            or exists $WriteMakefileArgs{$key};
126   my $r = $WriteMakefileArgs{$key} = {
127     %{$WriteMakefileArgs{META_ADD}{prereqs}{$_}{requires} || {}},
128     %{delete $WriteMakefileArgs{$key} || {}},
129   };
130   defined $r->{$_} or delete $r->{$_} for keys %$r;
131 }
132
133 # dynamic prereqs get added here.
134
135 $WriteMakefileArgs{MIN_PERL_VERSION} = delete $WriteMakefileArgs{PREREQ_PM}{perl} || 0;
136
137 $WriteMakefileArgs{BUILD_REQUIRES} = {
138     %{$WriteMakefileArgs{BUILD_REQUIRES} || {}},
139     %{delete $WriteMakefileArgs{TEST_REQUIRES}}
140 } if $eumm_version < 6.63_03;
141
142 $WriteMakefileArgs{PREREQ_PM} = {
143     %{$WriteMakefileArgs{PREREQ_PM}},
144     %{delete $WriteMakefileArgs{BUILD_REQUIRES}}
145 } if $eumm_version < 6.55_01;
146
147 delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
148   if $eumm_version < 6.51_03;
149
150 delete $WriteMakefileArgs{MIN_PERL_VERSION}
151   if $eumm_version < 6.48;
152
153 delete @WriteMakefileArgs{qw(META_ADD META_MERGE)}
154   if $eumm_version < 6.46;
155
156 delete $WriteMakefileArgs{LICENSE}
157   if $eumm_version < 6.31;
158
159 WriteMakefile(%WriteMakefileArgs);
160