X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=34527811958b184d567c382cbc85ba4206632145;hb=2d8f9d3d982d35a0294bca469b166717f31c25a5;hp=4adfd443afe3508517306cedb231f0c82d2d39be;hpb=1cbc4fbe82fdb01fed3323e89982e22b41c47d4b;p=catagits%2FCatalyst-Devel.git diff --git a/Makefile.PL b/Makefile.PL index 4adfd44..3452781 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,20 +1,40 @@ -use inc::Module::Install 0.64; +use strict; +use warnings; +use inc::Module::Install 0.91; +use Module::Install::AuthorRequires; name 'Catalyst-Devel'; all_from 'lib/Catalyst/Devel.pm'; -requires 'Catalyst' => '5.7000'; -requires 'Catalyst::Action::RenderView' => '0.04'; -requires 'Catalyst::Plugin::Static::Simple' => '0.16'; -requires 'Catalyst::Plugin::ConfigLoader'; -requires 'Class::Accessor::Fast'; -requires 'Config::General'; # as of 1.07, we use .conf and not .yaml +requires 'Moose'; +requires 'MooseX::Emulate::Class::Accessor::Fast'; +requires 'File::ShareDir'; +requires 'namespace::clean'; +requires 'namespace::autoclean'; +requires 'Catalyst' => '5.8001402'; +requires 'Catalyst::Action::RenderView' => '0.10'; +requires 'Catalyst::Plugin::Static::Simple' => '0.21'; +requires 'Catalyst::Plugin::ConfigLoader' => '0.23'; +requires 'Config::General' => '2.42'; # as of 1.07, we use .conf and not .yaml +requires 'File::ChangeNotify' => '0.07'; requires 'File::Copy::Recursive'; -requires 'Module::Install' => '0.64'; -requires 'parent'; # as of 1.04 +requires 'Module::Install' => '0.91'; requires 'Path::Class' => '0.09'; requires 'Template' => '2.14'; +author_requires 'IPC::Run3'; + +test_requires 'Test::More' => '0.94'; + +install_share 'share'; + +if ( $^O eq 'MSWin32' ) { + # Proc::Background needs this on Win32 but doesn't actually + # require it, if it's missing it just dies in the Makefile.PL. + requires 'Win32::Process' => '0.04'; + requires 'Proc::Background'; +} + if (!$ENV{CATALYST_DEVEL_NO_510_CHECK}) { use Symbol 'gensym'; use IPC::Open3; @@ -22,7 +42,7 @@ if (!$ENV{CATALYST_DEVEL_NO_510_CHECK}) { open NULL, '>', File::Spec->devnull; my $err = gensym; my $pid = open3(gensym, '&>NULL', $err, "$^X -It/lib -MUnknownError -e 1"); - + my $unknown_error = 0; while (<$err>) { @@ -36,15 +56,15 @@ if (!$ENV{CATALYST_DEVEL_NO_510_CHECK}) { ############################### WARNING ################################# # # # You are using perl 5.10.0 with the "Unknown error" bug. This can make # -# developing Catalyst applications much more painful, as it will come # +# developing Catalyst applications much more painful, as it will come # # up with no details every time you have a syntax error in a Controller.# # # # For more information see: # # # # * http://rt.perl.org/rt3/Public/Bug/Display.html?id=49472 # # # -# It is highly recommended that you patch your perl, or use a different # -# version for Catalyst development. # +# It is highly recommended that you use a different version of perl or # +# compile a patched version for Catalyst development. # # # # To skip this check, set the CATALYST_DEVEL_NO_510_CHECK environment # # variable. # @@ -57,6 +77,27 @@ EOE } } +# kill warning from older versions of Class::C3 +if ($] >= 5.009_005 && can_use('Class::C3') && !can_use('Class::C3', 0.20)) { + requires 'Class::C3' => '0.20'; +} + auto_install; WriteAll; + +if ($Module::Install::AUTHOR) { + Meta->{values}{resources} = [ + [ 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst' ], + [ 'IRC' => 'irc://irc.perl.org/#catalyst' ], + [ 'license', => 'http://dev.perl.org/licenses/' ], + [ 'homepage', => 'http://dev.catalyst.perl.org/'], + [ 'repository', => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Devel/' ], + ]; + + Meta->{values}{requires} = [ grep { + $_->[0] ne 'Class::C3' + } @{ Meta->{values}{requires} } ]; + + Meta->write; +}