1 use inc::Module::Install 0.87;
4 all_from 'lib/Catalyst/Devel.pm';
7 requires 'File::ShareDir';
8 requires 'namespace::autoclean';
9 requires 'Catalyst' => '5.8000';
10 requires 'Catalyst::Action::RenderView' => '0.04';
11 requires 'Catalyst::Plugin::Static::Simple' => '0.16';
12 requires 'Catalyst::Plugin::ConfigLoader';
13 requires 'Config::General' => '2.42'; # as of 1.07, we use .conf and not .yaml
14 requires 'File::ChangeNotify' => '0.03';
15 requires 'File::Copy::Recursive';
16 requires 'Module::Install' => '0.64';
17 requires 'parent'; # as of 1.04
18 requires 'Path::Class' => '0.09';
19 requires 'Template' => '2.14';
21 install_share 'share';
23 if ( $^O eq 'MSWin32' ) {
24 # Proc::Background needs this on Win32 but doesn't actually
25 # require it, if it's missing it just dies in the Makefile.PL.
26 requires 'Win32::Process' => '0.04';
27 requires 'Proc::Background';
30 if (!$ENV{CATALYST_DEVEL_NO_510_CHECK}) {
34 open NULL, '>', File::Spec->devnull;
36 my $pid = open3(gensym, '&>NULL', $err, "$^X -It/lib -MUnknownError -e 1");
38 my $unknown_error = 0;
41 $unknown_error = 1 if /^Unknown error/;
48 ############################### WARNING #################################
50 # You are using perl 5.10.0 with the "Unknown error" bug. This can make #
51 # developing Catalyst applications much more painful, as it will come #
52 # up with no details every time you have a syntax error in a Controller.#
54 # For more information see: #
56 # * http://rt.perl.org/rt3/Public/Bug/Display.html?id=49472 #
58 # It is highly recommended that you use a different version of perl or #
59 # compile a patched version for Catalyst development. #
61 # To skip this check, set the CATALYST_DEVEL_NO_510_CHECK environment #
64 #########################################################################
67 my $ans = prompt('Do you want to continue?', 'no');
68 exit 0 unless $ans =~ /^y(es)?\z/i;
72 # kill warning from older versions of Class::C3
73 if ($] >= 5.009_005 && can_use('Class::C3') && !can_use('Class::C3', 0.20)) {
74 requires 'Class::C3' => '0.20';
81 if ($Module::Install::AUTHOR) {
82 Meta->{values}{resources} = [
83 [ 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst' ],
84 [ 'IRC' => 'irc://irc.perl.org/#catalyst' ],
85 [ 'license', => 'http://dev.perl.org/licenses/' ],
86 [ 'homepage', => 'http://dev.catalyst.perl.org/'],
87 [ 'repository', => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Devel/' ],
90 Meta->{values}{requires} = [ grep {
91 $_->[0] ne 'Class::C3'
92 } @{ Meta->{values}{requires} } ];