Release commit for 5.9012
[catagits/Catalyst-Manual.git] / Makefile.PL
CommitLineData
b1a08fe1 1use strict;
30428011 2use warnings;
3use 5.006;
4
5my %META = (
6 name => 'Catalyst-Manual',
7 license => 'perl_5',
8 author => [
9 'Catalyst Contributors, see Catalyst.pm',
10 'Kieren Diment <zarquon@cpan.org>',
11 ],
12 dynamic_config => 0,
13 resources => {
14 repository => {
15 url => 'https://github.com/perl-catalyst/Catalyst-Manual.git',
16 web => 'https://github.com/perl-catalyst/Catalyst-Manual',
17 type => 'git',
18 },
19 bugtracker => {
20 mailto => 'bug-Catalyst-Manual@rt.cpan.org',
21 web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Catalyst-Manual',
840f08a4 22 },
30428011 23 x_IRC => 'irc://irc.perl.org/#catalyst',
24 x_MailingList => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst',
840f08a4 25 },
30428011 26 # perl -MData::Dumper -e'$Data::Dumper::Indent = $Data::Dumper::Terse = $Data::Dumper::Trailingcomma = 1; print Dumper([map /^\s*\d+\s+(.*)/, `git shortlog -e -s -n`]);'
27 x_contributors => [
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 'Graham Knop <haarg@haarg.org>',
33 'Jonathan Rockway <jon@jrock.us>',
34 'Jesse Sheidlower <jester@panix.com>',
35 'Brian Cassidy <bricas@cpan.org>',
36 'Caleb Cushing <xenoterracide@gmail.com>',
37 'Dan Dascalescu <bigbang7@gmail.com>',
38 'Rafael Kitover <rkitover@cpan.org>',
39 'Jason Felds <wolfman.ncsu2000@gmail.com>',
40 'Frederik Schwarzer <schwarzerf@gmail.com>',
41 'Jonathan Yu <jawnsy@cpan.org>',
42 'Breno G. de Oliveira <garu@cpan.org>',
43 'Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 <daxim@cpan.org>',
44 'Matt S Trout <mst@shadowcat.co.uk>',
45 'Florian Ragwitz <rafl@debian.org>',
46 'Jess Robinson <cpan@desert-island.me.uk>',
47 'Matthew Horsfall <wolfsage@gmail.com>',
48 'Andrew Rodland <andrew@cleverdomain.org>',
49 'Artem Konev <artem.konev@nginx.com>',
50 'Eden Cardim <edencardim@gmail.com>',
51 'Justin Hunter <justin.d.hunter@gmail.com>',
52 'Ricardo Signes <rjbs@semiotic.systems>',
53 'Robert \'phaylon\' Sedlacek <rs@474.at>',
54 'Shlomi Fish <shlomif@iglu.org.il>',
55 'antgel <no@se.com>',
56 'Alexander Hartmaier <abraxxa@cpan.org>',
57 'Andreas Marienborg <omega@palle.net>',
58 'Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>',
59 'Gerda Shank <gerda.shank@gmail.com>',
60 'Ian Wells <ijw@cack.org.uk>',
61 'Jay Hannah <jay@jays.net>',
62 'Jay Kuri <jayk@cpan.org>',
63 'Mark A. Stratman <stratman@gmail.com>',
64 'Mateu X. Hunter <hunter@missoula.org>',
65 'Nick Tonkin <1nickt@users.noreply.github.com>',
66 'Peter Karman <perl@peknet.com>',
67 'Wes Sheldahl <wes.sheldahl@gmail.com>',
68 'Alastair McGowan-Douglas <altreus@cpan.org>',
69 'Andy Grundman <andy@hybridized.org>',
70 'Ash Berlin <ash@cpan.org>',
71 'David Schmidt <mail@davidschmidt.at>',
72 'David Steinbrunner <dsteinbrunner@pobox.com>',
73 'Dominic Humphries <djh@thermeon.eu>',
74 'Edwin de Graaf <egraaf@egraaf.org>',
75 'Eisenberger Tamás <tamas@eisenberger.hu>',
76 'Eric A. Zarko <ezarko@cpan.org>',
77 'Iñigo Tejedor Arrondo <poisonbit@gmail.com>',
78 'Jonathan "Duke" Leto <jonathan@leto.net>',
79 'Jonathan Otsuka <djgoku@gmail.com>',
80 'Kartik Thakore <thakore.kartik@gmail.com>',
81 'Kostya Ten <kostya@cpan.org>',
82 'Lilly An <lilly@ziprecruiter.com>',
83 'Marcus Ramberg <marcus@nordaaker.com>',
84 'Matthias Dietrich <perl@rb.ly>',
85 'Paul Waring <paul@xk7.net>',
86 'Ronald J Kimball <rjk@tamias.net>',
87 'Tom Feist <shabble@metavore.org>',
88 'Ton Voon <ton.voon@opsera.com>',
89 'Zsolt Zemancsik <darwick@cyberground.hu>',
90 'kmx <kmx@cpan.org>',
91 ],
92 prereqs => {
93 configure => {
94 requires => {
95 'ExtUtils::MakeMaker' => '0',
840f08a4 96 },
30428011 97 },
98 runtime => {
99 requires => {
100 perl => '5.006',
840f08a4 101 },
30428011 102 },
103 test => {
104 requires => {
105 'Test::More' => '0.88',
840f08a4 106 },
30428011 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',
840f08a4 113 },
114 },
115 },
840f08a4 116);
8dbc5a5b 117
30428011 118my %MM_ARGS = ();
119
120## BOILERPLATE ###############################################################
121require ExtUtils::MakeMaker;
122(do './maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
123
124# have to do this since old EUMM dev releases miss the eval $VERSION line
840f08a4 125my $eumm_version = eval $ExtUtils::MakeMaker::VERSION;
30428011 126my $mymeta = $eumm_version >= 6.57_02;
127my $mymeta_broken = $mymeta && $eumm_version < 6.57_07;
128
129($MM_ARGS{NAME} = $META{name}) =~ s/-/::/g;
130($MM_ARGS{VERSION_FROM} = "lib/$MM_ARGS{NAME}.pm") =~ s{::}{/}g;
131$META{license} = [ $META{license} ]
132 if $META{license} && !ref $META{license};
133$MM_ARGS{LICENSE} = $META{license}[0]
134 if $META{license} && $eumm_version >= 6.30;
135$MM_ARGS{NO_MYMETA} = 1
136 if $mymeta_broken;
137$MM_ARGS{META_ADD} = { 'meta-spec' => { version => 2 }, %META }
138 unless -f 'META.yml';
139$MM_ARGS{PL_FILES} ||= {};
140$MM_ARGS{NORECURS} = 1
141 if not exists $MM_ARGS{NORECURS};
8a80e15e 142
840f08a4 143for (qw(configure build test runtime)) {
144 my $key = $_ eq 'runtime' ? 'PREREQ_PM' : uc $_.'_REQUIRES';
30428011 145 my $r = $MM_ARGS{$key} = {
146 %{$META{prereqs}{$_}{requires} || {}},
147 %{delete $MM_ARGS{$key} || {}},
840f08a4 148 };
149 defined $r->{$_} or delete $r->{$_} for keys %$r;
150}
151
30428011 152$MM_ARGS{MIN_PERL_VERSION} = delete $MM_ARGS{PREREQ_PM}{perl} || 0;
840f08a4 153
30428011 154delete $MM_ARGS{MIN_PERL_VERSION}
155 if $eumm_version < 6.47_01;
156$MM_ARGS{BUILD_REQUIRES} = {%{$MM_ARGS{BUILD_REQUIRES}}, %{delete $MM_ARGS{TEST_REQUIRES}}}
157 if $eumm_version < 6.63_03;
158$MM_ARGS{PREREQ_PM} = {%{$MM_ARGS{PREREQ_PM}}, %{delete $MM_ARGS{BUILD_REQUIRES}}}
159 if $eumm_version < 6.55_01;
160delete $MM_ARGS{CONFIGURE_REQUIRES}
840f08a4 161 if $eumm_version < 6.51_03;
162
30428011 163ExtUtils::MakeMaker::WriteMakefile(%MM_ARGS);
164## END BOILERPLATE ###########################################################