X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=14a471e639d27288adca1250168364244407f026;hb=6787c0f70aa9075b6274b084f98c9e01a1dcbbd5;hp=e3b05bec87ce833d66b0c0d88b385212ffa94e44;hpb=727f14e9fa8282583d39b78df321f0db7f4e614d;p=catagits%2FCatalyst-Devel.git diff --git a/Makefile.PL b/Makefile.PL index e3b05be..14a471e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,11 +1,15 @@ use strict; use warnings; +use lib '.'; +use lib 'inc'; use inc::Module::Install 0.91; use Module::Install::AuthorRequires; use Module::Install::AuthorTests; +use Module::Install::Authority; name 'Catalyst-Devel'; all_from 'lib/Catalyst/Devel.pm'; +authority 'cpan:MSTROUT'; requires 'Moose'; requires 'MooseX::Emulate::Class::Accessor::Fast'; @@ -21,19 +25,23 @@ requires 'File::ChangeNotify' => '0.07'; requires 'File::Copy::Recursive'; requires 'Path::Class' => '0.09'; requires 'Template' => '2.14'; -requires 'MooseX::Daemonize'; # Optional in scripts -requires 'Starman'; # Optional in scripts + +if (!$Module::Install::AUTHOR && $^O ne 'MSWin32') { + requires 'MooseX::Daemonize'; # Optional in scripts + requires 'Starman'; # Optional in scripts +} # The Catalyst applications this module distribution have a Makefile.PL using # Module::Install as well as the Module::Install::Catalyst extension included in # this distribution. Therefore we really *depend* on Module::Install to be # installed, even though we also use it to build this distribution and include # it in its inc/ directory for releases. -requires 'Module::Install' => '0.91'; +requires 'Module::Install' => '1.02'; author_requires 'IPC::Run3'; -author_requires 'Module::Info'; -author_requires 'File::Find::Rule'; +author_requires 'Proc::Background'; +author_requires 'Test::Pod'; +author_requires 'Test::Pod::Coverage'; test_requires 'Test::More' => '0.94'; test_requires 'Test::Fatal' => '0.003'; @@ -42,20 +50,13 @@ install_share 'share'; author_tests 't/author'; -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; use File::Spec; - open NULL, '>', File::Spec->devnull; + open my $null, '>', File::Spec->devnull; my $err = gensym; - my $pid = open3(gensym, '&>NULL', $err, "$^X -It/lib -MUnknownError -e 1"); + my $pid = open3(gensym, $null, $err, qq{"$^X" -It/lib -MUnknownError -e 1}); my $unknown_error = 0;