3 use inc::Module::Install 0.91;
4 use Module::Install::AuthorRequires;
5 use Module::Install::AuthorTests;
8 all_from 'lib/Catalyst/Devel.pm';
11 requires 'MooseX::Emulate::Class::Accessor::Fast';
12 requires 'File::ShareDir';
13 requires 'namespace::clean';
14 requires 'namespace::autoclean';
15 requires 'Catalyst' => '5.90001';
16 requires 'Catalyst::Action::RenderView' => '0.10';
17 requires 'Catalyst::Plugin::Static::Simple' => '0.28';
18 requires 'Catalyst::Plugin::ConfigLoader' => '0.30';
19 requires 'Config::General' => '2.42'; # as of 1.07, we use .conf and not .yaml
20 requires 'File::ChangeNotify' => '0.07';
21 requires 'File::Copy::Recursive';
22 requires 'Path::Class' => '0.09';
23 requires 'Template' => '2.14';
25 if (!$Module::Install::AUTHOR && $^O ne 'MSWin32') {
26 requires 'MooseX::Daemonize'; # Optional in scripts
27 requires 'Starman'; # Optional in scripts
30 # The Catalyst applications this module distribution have a Makefile.PL using
31 # Module::Install as well as the Module::Install::Catalyst extension included in
32 # this distribution. Therefore we really *depend* on Module::Install to be
33 # installed, even though we also use it to build this distribution and include
34 # it in its inc/ directory for releases.
35 requires 'Module::Install' => '0.91';
37 author_requires 'IPC::Run3';
38 author_requires 'Module::Info';
39 author_requires 'File::Find::Rule';
41 test_requires 'Test::More' => '0.94';
42 test_requires 'Test::Fatal' => '0.003';
44 install_share 'share';
46 author_tests 't/author';
48 if (!$ENV{CATALYST_DEVEL_NO_510_CHECK}) {
52 open NULL, '>', File::Spec->devnull;
54 my $pid = open3(gensym, '&>NULL', $err, "$^X -It/lib -MUnknownError -e 1");
56 my $unknown_error = 0;
59 $unknown_error = 1 if /^Unknown error/;
66 ############################### WARNING #################################
68 # You are using perl 5.10.0 with the "Unknown error" bug. This can make #
69 # developing Catalyst applications much more painful, as it will come #
70 # up with no details every time you have a syntax error in a Controller.#
72 # For more information see: #
74 # * http://rt.perl.org/rt3/Public/Bug/Display.html?id=49472 #
76 # It is highly recommended that you use a different version of perl or #
77 # compile a patched version for Catalyst development. #
79 # To skip this check, set the CATALYST_DEVEL_NO_510_CHECK environment #
82 #########################################################################
85 my $ans = prompt('Do you want to continue?', 'no');
86 exit 0 unless $ans =~ /^y(es)?\z/i;
90 # kill warning from older versions of Class::C3
91 if ($] >= 5.009_005 && can_use('Class::C3') && !can_use('Class::C3', 0.20)) {
92 requires 'Class::C3' => '0.20';
99 if ($Module::Install::AUTHOR) {
100 Meta->{values}{resources} = [
101 [ 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst' ],
102 [ 'IRC' => 'irc://irc.perl.org/#catalyst' ],
103 [ 'license', => 'http://dev.perl.org/licenses/' ],
104 [ 'homepage', => 'http://dev.catalyst.perl.org/'],
105 [ 'repository', => 'git://git.shadowcat.co.uk/catagits/Catalyst-Devel.git' ],
108 Meta->{values}{requires} = [ grep {
109 $_->[0] ne 'Class::C3'
110 } @{ Meta->{values}{requires} } ];