3 use inc::Module::Install 0.91;
4 use Module::Install::AuthorRequires;
7 all_from 'lib/Catalyst/Devel.pm';
10 requires 'MooseX::Emulate::Class::Accessor::Fast';
11 requires 'File::ShareDir';
12 requires 'namespace::clean';
13 requires 'namespace::autoclean';
14 requires 'Catalyst' => '5.80015';
15 requires 'Catalyst::Action::RenderView' => '0.10';
16 requires 'Catalyst::Plugin::Static::Simple' => '0.28';
17 requires 'Catalyst::Plugin::ConfigLoader' => '0.30';
18 requires 'Config::General' => '2.42'; # as of 1.07, we use .conf and not .yaml
19 requires 'File::ChangeNotify' => '0.07';
20 requires 'File::Copy::Recursive';
21 requires 'Module::Install' => '0.91';
22 requires 'Path::Class' => '0.09';
23 requires 'Template' => '2.14';
25 author_requires 'IPC::Run3';
26 author_requires 'Module::Info';
27 author_requires 'File::Find::Rule';
29 test_requires 'Test::More' => '0.94';
31 install_share 'share';
33 if ( $^O eq 'MSWin32' ) {
34 # Proc::Background needs this on Win32 but doesn't actually
35 # require it, if it's missing it just dies in the Makefile.PL.
36 requires 'Win32::Process' => '0.04';
37 requires 'Proc::Background';
40 if (!$ENV{CATALYST_DEVEL_NO_510_CHECK}) {
44 open NULL, '>', File::Spec->devnull;
46 my $pid = open3(gensym, '&>NULL', $err, "$^X -It/lib -MUnknownError -e 1");
48 my $unknown_error = 0;
51 $unknown_error = 1 if /^Unknown error/;
58 ############################### WARNING #################################
60 # You are using perl 5.10.0 with the "Unknown error" bug. This can make #
61 # developing Catalyst applications much more painful, as it will come #
62 # up with no details every time you have a syntax error in a Controller.#
64 # For more information see: #
66 # * http://rt.perl.org/rt3/Public/Bug/Display.html?id=49472 #
68 # It is highly recommended that you use a different version of perl or #
69 # compile a patched version for Catalyst development. #
71 # To skip this check, set the CATALYST_DEVEL_NO_510_CHECK environment #
74 #########################################################################
77 my $ans = prompt('Do you want to continue?', 'no');
78 exit 0 unless $ans =~ /^y(es)?\z/i;
82 # kill warning from older versions of Class::C3
83 if ($] >= 5.009_005 && can_use('Class::C3') && !can_use('Class::C3', 0.20)) {
84 requires 'Class::C3' => '0.20';
91 if ($Module::Install::AUTHOR) {
92 Meta->{values}{resources} = [
93 [ 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst' ],
94 [ 'IRC' => 'irc://irc.perl.org/#catalyst' ],
95 [ 'license', => 'http://dev.perl.org/licenses/' ],
96 [ 'homepage', => 'http://dev.catalyst.perl.org/'],
97 [ 'repository', => 'git://git.shadowcat.co.uk/catagits/Catalyst-Devel.git' ],
100 Meta->{values}{requires} = [ grep {
101 $_->[0] ne 'Class::C3'
102 } @{ Meta->{values}{requires} } ];