d1ee89f827258e22185c656fbb374a725a80f459
[catagits/Catalyst-Runtime.git] / Makefile.PL
1
2 use inc::Module::Install;
3
4 perl_version '5.8.1';
5
6 name 'Catalyst';
7 all_from 'lib/Catalyst.pm';
8
9 requires 'perl'               => '5.8.1';
10 requires 'UNIVERSAL::require' => "0.10";
11 requires 'Carp';
12 requires 'Class::Accessor::Fast';
13 requires 'Class::Data::Inheritable';
14 requires 'Class::Inspector';
15 requires 'CGI::Cookie';
16 requires 'File::Modified';
17 requires 'HTML::Entities';
18 requires 'HTTP::Body'    => 0.5;
19 requires 'HTTP::Headers' => 1.64;
20 requires 'HTTP::Request';
21 requires 'HTTP::Response';
22 requires 'HTTP::Request::AsCGI' => '0.5';
23 requires 'LWP::UserAgent';
24 requires 'MIME::Types';
25 requires 'Module::Pluggable::Fast' => 0.16;
26 requires 'NEXT';
27 requires 'Path::Class' => 0.09;
28 requires 'Scalar::Util';
29 requires 'Template';
30 requires 'Text::SimpleTable' => 0.03;
31 requires 'Test::MockObject';
32 requires 'Test::NoWarnings' => 0.082;
33 requires 'Time::HiRes';
34 requires 'Tree::Simple' => 1.15;
35 requires 'Tree::Simple::Visitor::FindByPath';
36 requires 'URI' => 1.35;
37 requires 'File::Copy::Recursive';
38 requires 'Module::Install::Admin' => '0.54';
39 requires 'Module::Install'        => '0.54';
40 requires 'YAML'                   => '0.55';
41 requires 'Data::Visitor'          => '0.02';
42
43 feature 'Apache/mod_perl Support',
44   -default                   => 0,
45   'Catalyst::Engine::Apache' => '1.05';
46
47 feature 'FastCGI Support', -default => 0, 'FCGI' => 0, 'FCGI::ProcManager' => 0;
48
49 feature 'Test::WWW::Mechanize::Catalyst Support',
50   -default                         => 0,
51   'Test::WWW::Mechanize::Catalyst' => 0;
52
53 feature 'PAR Support',
54   -default => 0,
55   'PAR'    => 0;
56
57 feature 'CPANPLUS (for easier installations)',
58   -default   => 0,
59   'CPANPLUS' => 0;
60
61 install_script glob('script/*.pl');
62 auto_install;
63 WriteAll;
64
65 print( '*' x 80, "\n" );
66 my $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!";
71 print " $banner \n";
72 print( '*' x 80, "\n" );
73
74 eval "use FCGI";
75 print qq/ Install "FCGI" for FastCGI support.\n/ if $@;
76 eval "use FCGI::ProcManager";
77 print
78   qq/ Install "FCGI::ProcManager" for multiprocess FastCGI external support.\n/
79   if ($@);
80 eval "use PAR ()";
81 print qq/ Install "PAR" for PAR packaging support.\n/ if $@;
82
83 print <<"EOF";
84
85  Important:
86     Install Task::Catalyst to get everything you need to start writing
87     serious applications with Catalyst.
88
89         perl -MCPANPLUS -e 'install Task::Catalyst'
90         perl -MCPAN -e 'install Task::Catalyst'
91
92  Have fun!
93 EOF