Fixed Makefile.PL
[catagits/Catalyst-Runtime.git] / Makefile.PL
CommitLineData
614f3ad6 1use inc::Module::Install;
2
3name('Catalyst');
4abstract('Catalyst Web Framework');
5author('Sebastian Riedel');
6version_from('lib/Catalyst.pm');
7license('perl');
8
9624cd13 9include('ExtUtils::AutoInstall');
10
614f3ad6 11requires( 'perl' => '5.8.1' );
12requires( 'UNIVERSAL::require' => "0.10" );
13requires('Class::Accessor::Fast');
14requires('Class::Data::Inheritable');
15requires('Class::Inspector');
16requires('CGI::Cookie');
17requires('File::Modified');
18requires('HTML::Entities');
19requires( 'HTTP::Body' => 0.5 );
20requires( 'HTTP::Headers' => 1.59 );
21requires('HTTP::Request');
22requires('HTTP::Response');
23requires('HTTP::Request::AsCGI');
24requires('LWP::UserAgent');
25requires('MIME::Types');
26requires( 'Module::Pluggable::Fast' => 0.16 );
27requires('NEXT');
28requires( 'Path::Class' => 0.09 );
29requires('Scalar::Util');
30requires('Template');
31requires('Text::SimpleTable');
32requires('Test::MockObject');
33requires('Time::HiRes');
34requires('Tree::Simple');
35requires('Tree::Simple::Visitor::FindByPath');
36requires( 'URI' => 1.35 );
bb722214 37requires('File::Copy::Recursive');
490c482c 38requires('Module::Install::Admin');
9624cd13 39requires('ExtUtils::AutoInstall');
614f3ad6 40
9624cd13 41features(
57c8e3b4 42 'Apache/mod_perl Support' => [
9624cd13 43 -default => 0,
44 'Catalyst::Engine::Apache' => '1.00'
45 ],
46 'FastCGI Support' => [
47 -default => 0,
48 'FCGI' => 0,
49 'FCGI::ProcManager' => 0
50 ],
51 'PAR Support' => [
52 -default => 0,
53 'PAR' => 0
54 ],
57c8e3b4 55 'CPANPLUS (for easier installations)' => [
56 -default => 1,
9624cd13 57 'CPANPLUS' => 0
58 ],
59);
614f3ad6 60
61install_script( glob('script/*.pl') );
9624cd13 62auto_install();
614f3ad6 63&WriteAll;
64
65print( '*' x 80, "\n" );
66my $banner =
67 (qw/andyg chansen draven fordmason mst naughton sri jester/)[ int( rand(8) ) ]
68 . " is the greatest and gabb is "
69 . ( (localtime)[2] > 12 ? "drunk" : "hung over" )
70 . " again!";
71print " $banner \n";
72print( '*' x 80, "\n" );
73
614f3ad6 74eval "use FCGI";
75print qq/ Install "FCGI" for FastCGI support.\n/ if $@;
76eval "use FCGI::ProcManager";
77print
78 qq/ Install "FCGI::ProcManager" for multiprocess FastCGI external support.\n/
79 if ($@);
80eval "use PAR ()";
81print qq/ Install "PAR" for PAR packaging support.\n/ if $@;
82
83print <<"EOF";
84
85 Important:
d538823f 86 Install Task::Catalyst to get everything you need to start writing
8878af8a 87 serious applications with Catalyst.
a5b5152b 88
e7d20a58 89 perl -MCPANPLUS -e 'install Task::Catalyst'
d538823f 90 perl -MCPAN -e 'install Task::Catalyst'
a5b5152b 91
a5b5152b 92 Have fun!
614f3ad6 93EOF