X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=Makefile.PL;h=53c87f9b5e4d90b075ea61592bd1b69afbdba4ff;hp=09919da430cb50abbb8dd029b15b63a029d26ffd;hb=8878af8a111eaed7a6ae43f46f76c1a6177cd503;hpb=0f7ecc537d7a258023b1a58311f197ad5dca24c7 diff --git a/Makefile.PL b/Makefile.PL index 09919da..53c87f9 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,33 +1,87 @@ -use ExtUtils::MakeMaker; - -WriteMakefile( - NAME => 'Catalyst', - VERSION_FROM => 'lib/Catalyst.pm', - EXE_FILES => ['script/catalyst.pl'], - PREREQ_PM => { - UNIVERSAL::require => 0, - CGI::Simple => 0, - Class::Accessor::Fast => 0, - Class::Data::Inheritable => 0, - HTTP::Daemon => 0, - HTML::Entities => 0, - HTTP::Headers => 0, - HTTP::Request => 0, - HTTP::Response => 0, - LWP::UserAgent => 0, - Module::Pluggable::Fast => 0, - Text::ASCIITable => 0, - Tree::Simple => 0, - Tree::Simple::Visitor::FindByPath => 0, - URI => 0, - } -); - -print( (qw/chansen draven fordmason naughton sri the_jester/)[ int( rand(6) ) ], - " is the greatest and gabb is drunk again!\n" ); - -eval "use mod_perl; use Apache::Request"; -print qq/Install "mod_perl" and "Apache::Request" for Apache support.\n/ if $@; +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 ); + +recommends( 'Catalyst::Engine::Apache' => '1.00' ); +recommends('FCGI'); +recommends('FCGI::ProcManager'); +recommends('PAR'); + +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" ); + +print <<'EOF'; + + ____ _ _ _ + / ___|__ _| |_ __ _| |_ _ ___| |_ + | | / _` | __/ _` | | | | / __| __| + | |__| (_| | || (_| | | |_| \__ \ |_ + \____\__ _|\__\__ _|_|\__ |___/\__| + |___/ carpe diem! + +EOF eval "use FCGI"; -print qq/Install "FCGI" for FastCGI support.\n/ if $@; +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 Bundle::Catalyst to get everything you need to start writing + serious applications with Catalyst. + + perl -MCPAN -e 'install Bundle::Catalyst' + + + Have fun! +EOF