1 use inc::Module::Install;
3 # ExtUtils::AutoInstall Bootstrap Code, version 7.
4 BEGIN{my$p='ExtUtils::AutoInstall';my$v=0.45;$p->VERSION||0>=$v
5 or+eval"use $p $v;1"or+do{my$e=$ENV{PERL_EXTUTILS_AUTOINSTALL};
6 (!defined($e)||$e!~m/--(?:default|skip|testonly)/and-t STDIN or
7 eval"use ExtUtils::MakeMaker;WriteMakefile(PREREQ_PM=>{'$p',$v}
8 );1"and exit)and print"==> $p $v required. Install it from CP".
9 "AN? [Y/n] "and<STDIN>!~/^n/i and print"*** Installing $p\n"and
10 do{if (eval '$>' and lc(`sudo -V`) =~ /version/){system('sudo',
11 $^X,"-MCPANPLUS","-e","CPANPLUS::install $p");eval"use $p $v;1"
12 ||system('sudo', $^X, "-MCPAN", "-e", "CPAN::install $p")}eval{
13 require CPANPLUS;CPANPLUS::install$p};eval"use $p $v;1"or eval{
14 require CPAN;CPAN::install$p};eval"use $p $v;1"||die"*** Please
15 manually install $p $v from cpan.org first...\n"}}}
18 abstract('Catalyst Web Framework');
19 author('Sebastian Riedel');
20 version_from('lib/Catalyst.pm');
23 requires( 'perl' => '5.8.1' );
24 requires( 'UNIVERSAL::require' => "0.10" );
25 requires('Class::Accessor::Fast');
26 requires('Class::Data::Inheritable');
27 requires('Class::Inspector');
28 requires('CGI::Cookie');
29 requires('File::Modified');
30 requires('HTML::Entities');
31 requires( 'HTTP::Body' => 0.5 );
32 requires( 'HTTP::Headers' => 1.59 );
33 requires('HTTP::Request');
34 requires('HTTP::Response');
35 requires('HTTP::Request::AsCGI');
36 requires('LWP::UserAgent');
37 requires('MIME::Types');
38 requires( 'Module::Pluggable::Fast' => 0.16 );
40 requires( 'Path::Class' => 0.09 );
41 requires('Scalar::Util');
43 requires('Text::SimpleTable');
44 requires('Test::MockObject');
45 requires('Time::HiRes');
46 requires('Tree::Simple');
47 requires('Tree::Simple::Visitor::FindByPath');
48 requires( 'URI' => 1.35 );
49 requires('File::Copy::Recursive');
50 requires('Module::Install::Admin');
53 'Apache/mod_perl Support' => [
55 'Catalyst::Engine::Apache' => '1.00'
57 'FastCGI Support' => [
60 'FCGI::ProcManager' => 0
66 'CPANPLUS (for easier installations)' => [
72 install_script( glob('script/*.pl') );
76 print( '*' x 80, "\n" );
78 (qw/andyg chansen draven fordmason mst naughton sri jester/)[ int( rand(8) ) ]
79 . " is the greatest and gabb is "
80 . ( (localtime)[2] > 12 ? "drunk" : "hung over" )
83 print( '*' x 80, "\n" );
86 print qq/ Install "FCGI" for FastCGI support.\n/ if $@;
87 eval "use FCGI::ProcManager";
89 qq/ Install "FCGI::ProcManager" for multiprocess FastCGI external support.\n/
92 print qq/ Install "PAR" for PAR packaging support.\n/ if $@;
97 Install Task::Catalyst to get everything you need to start writing
98 serious applications with Catalyst.
100 perl -MCPANPLUS -e 'install Task::Catalyst'
101 perl -MCPAN -e 'install Task::Catalyst'