X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=Makefile.PL;h=bd568f8af2189eca3f9d05b6bf87be40a033f7d0;hp=4ff562521320ea0a8919bed2df891cebdcf69242;hb=e7d20a58cafa085173cedca883890008a9c37430;hpb=fc7ec1d96ee55d1bf42af3abce155ecb717b9e2b diff --git a/Makefile.PL b/Makefile.PL index 4ff5625..bd568f8 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,22 +1,80 @@ -use ExtUtils::MakeMaker; - -WriteMakefile( - NAME => 'Catalyst', - VERSION_FROM => 'lib/Catalyst.pm', - EXE_FILES => ['bin/catalyst'], - PREREQ_PM => { - UNIVERSAL::require => 0, - CGI::Simple => 0, - Class::Accessor::Fast => 0, - Class::Data::Inheritable => 0, - HTML::Entities => 0, - HTTP::Headers => 0, - Module::Pluggable::Fast => 0 - } -); - -my $gabb = - int( rand(2) ) == 1 - ? "Gabbana is the greatest!" - : "Gabbana is drunk again!"; -print "$gabb\n"; +use inc::Module::Install; + +name('Catalyst'); +abstract('Catalyst Web Framework'); +author('Sebastian Riedel'); +version_from('lib/Catalyst.pm'); +license('perl'); + +requires( 'perl' => '5.8.1' ); +requires( 'UNIVERSAL::require' => "0.10" ); +requires('Class::Accessor::Fast'); +requires('Class::Data::Inheritable'); +requires('Class::Inspector'); +requires('CGI::Cookie'); +requires('File::Modified'); +requires('HTML::Entities'); +requires( 'HTTP::Body' => 0.5 ); +requires( 'HTTP::Headers' => 1.59 ); +requires('HTTP::Request'); +requires('HTTP::Response'); +requires('HTTP::Request::AsCGI'); +requires('LWP::UserAgent'); +requires('MIME::Types'); +requires( 'Module::Pluggable::Fast' => 0.16 ); +requires('NEXT'); +requires( 'Path::Class' => 0.09 ); +requires('Scalar::Util'); +requires('Template'); +requires('Text::SimpleTable'); +requires('Test::MockObject'); +requires('Time::HiRes'); +requires('Tree::Simple'); +requires('Tree::Simple::Visitor::FindByPath'); +requires( 'URI' => 1.35 ); +requires('File::Copy::Recursive'); +requires('inc::Module::Install'); + +recommends( 'Catalyst::Engine::Apache' => '1.00' ); +recommends('FCGI'); +recommends('FCGI::ProcManager'); +recommends('PAR'); +recommends('CPANPLUS'); + +install_script( glob('script/*.pl') ); + +&WriteAll; + +print( '*' x 80, "\n" ); +my $banner = + (qw/andyg chansen draven fordmason mst naughton sri jester/)[ int( rand(8) ) ] + . " is the greatest and gabb is " + . ( (localtime)[2] > 12 ? "drunk" : "hung over" ) + . " again!"; +print " $banner \n"; +print( '*' x 80, "\n" ); + +eval "use FCGI"; +print qq/ Install "FCGI" for FastCGI support.\n/ if $@; +eval "use FCGI::ProcManager"; +print + qq/ Install "FCGI::ProcManager" for multiprocess FastCGI external support.\n/ + if ($@); +eval "use PAR ()"; +print qq/ Install "PAR" for PAR packaging support.\n/ if $@; + +print <<"EOF"; + + Important: + The Apache engines have been moved to a separate package in Catalyst 5.5. + Please install Catalyst::Engine::Apache if you need Apache support. + + Install Task::Catalyst to get everything you need to start writing + serious applications with Catalyst. + + perl -MCPANPLUS -e 'install Task::Catalyst' + perl -MCPAN -e 'install Task::Catalyst' + + + Have fun! +EOF