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