Typo fixes. RT#87103
[catagits/Catalyst-Devel.git] / Makefile.PL
CommitLineData
18c940b8 1use strict;
2use warnings;
693e890f 3use inc::Module::Install 0.91;
18c940b8 4use Module::Install::AuthorRequires;
3260ae5d 5use Module::Install::AuthorTests;
511bf965 6use Module::Install::Authority;
54616d61 7
8name 'Catalyst-Devel';
c93c671b 9all_from 'lib/Catalyst/Devel.pm';
075cb840 10authority 'cpan:MSTROUT';
68ccb5e5 11
ee99bea5 12requires 'Moose';
dcc30470 13requires 'MooseX::Emulate::Class::Accessor::Fast';
5561a11e 14requires 'File::ShareDir';
4753780f 15requires 'namespace::clean';
cf042872 16requires 'namespace::autoclean';
727f14e9 17requires 'Catalyst' => '5.90001';
a2301033 18requires 'Catalyst::Action::RenderView' => '0.10';
13096aba 19requires 'Catalyst::Plugin::Static::Simple' => '0.28';
ac4a8fbe 20requires 'Catalyst::Plugin::ConfigLoader' => '0.30';
fa60b7ee 21requires 'Config::General' => '2.42'; # as of 1.07, we use .conf and not .yaml
396a43ae 22requires 'File::ChangeNotify' => '0.07';
fde6650e 23requires 'File::Copy::Recursive';
3d63fa09 24requires 'Path::Class' => '0.09';
25requires 'Template' => '2.14';
8527ca62 26
27if (!$Module::Install::AUTHOR && $^O ne 'MSWin32') {
28 requires 'MooseX::Daemonize'; # Optional in scripts
29 requires 'Starman'; # Optional in scripts
30}
54616d61 31
8955c676 32# The Catalyst applications this module distribution have a Makefile.PL using
33# Module::Install as well as the Module::Install::Catalyst extension included in
34# this distribution. Therefore we really *depend* on Module::Install to be
35# installed, even though we also use it to build this distribution and include
36# it in its inc/ directory for releases.
d1840405 37requires 'Module::Install' => '1.02';
8955c676 38
18c940b8 39author_requires 'IPC::Run3';
09c03d31 40author_requires 'Module::Info';
41author_requires 'File::Find::Rule';
35155ac6 42author_requires 'Test::Pod';
43author_requires 'Test::Pod::Coverage';
18c940b8 44
efc787e1 45test_requires 'Test::More' => '0.94';
bc750d3b 46test_requires 'Test::Fatal' => '0.003';
91497b69 47
afd739f1 48install_share 'share';
49
3260ae5d 50author_tests 't/author';
51
1cbc4fbe 52if (!$ENV{CATALYST_DEVEL_NO_510_CHECK}) {
53 use Symbol 'gensym';
54 use IPC::Open3;
55 use File::Spec;
56 open NULL, '>', File::Spec->devnull;
57 my $err = gensym;
58 my $pid = open3(gensym, '&>NULL', $err, "$^X -It/lib -MUnknownError -e 1");
ee99bea5 59
1cbc4fbe 60 my $unknown_error = 0;
61
62 while (<$err>) {
63 $unknown_error = 1 if /^Unknown error/;
64 }
65
66 waitpid $pid, 0;
67
68 if ($unknown_error) {
69 warn <<EOE;
70############################### WARNING #################################
71# #
72# You are using perl 5.10.0 with the "Unknown error" bug. This can make #
ee99bea5 73# developing Catalyst applications much more painful, as it will come #
1cbc4fbe 74# up with no details every time you have a syntax error in a Controller.#
75# #
76# For more information see: #
77# #
78# * http://rt.perl.org/rt3/Public/Bug/Display.html?id=49472 #
79# #
68217a55 80# It is highly recommended that you use a different version of perl or #
81# compile a patched version for Catalyst development. #
1cbc4fbe 82# #
83# To skip this check, set the CATALYST_DEVEL_NO_510_CHECK environment #
84# variable. #
85# #
86#########################################################################
87
88EOE
89 my $ans = prompt('Do you want to continue?', 'no');
90 exit 0 unless $ans =~ /^y(es)?\z/i;
91 }
92}
93
d6c4f9a7 94# kill warning from older versions of Class::C3
95if ($] >= 5.009_005 && can_use('Class::C3') && !can_use('Class::C3', 0.20)) {
96 requires 'Class::C3' => '0.20';
97}
98
5539814d 99auto_install;
100
54616d61 101WriteAll;
d6c4f9a7 102
103if ($Module::Install::AUTHOR) {
104 Meta->{values}{resources} = [
105 [ 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst' ],
106 [ 'IRC' => 'irc://irc.perl.org/#catalyst' ],
107 [ 'license', => 'http://dev.perl.org/licenses/' ],
108 [ 'homepage', => 'http://dev.catalyst.perl.org/'],
fbfcf6c6 109 [ 'repository', => 'git://git.shadowcat.co.uk/catagits/Catalyst-Devel.git' ],
d6c4f9a7 110 ];
111
112 Meta->{values}{requires} = [ grep {
113 $_->[0] ne 'Class::C3'
114 } @{ Meta->{values}{requires} } ];
115
116 Meta->write;
117}