initial Module::Pluggable work
[catagits/Catalyst-Runtime.git] / Makefile.PL
1 use inc::Module::Install 0.62;
2
3 perl_version '5.8.1';
4
5 name 'Catalyst';
6 all_from 'lib/Catalyst.pm';
7
8 requires 'perl'               => '5.8.1';
9 requires 'Carp';
10 requires 'Class::Accessor::Fast';
11 requires 'Class::Data::Inheritable';
12 requires 'Class::Inspector' => '1.06';
13 requires 'CGI::Simple::Cookie';
14 requires 'Data::Dump';
15 requires 'File::Modified';
16 requires 'HTML::Entities';
17 requires 'HTTP::Body'    => '0.5';
18 requires 'HTTP::Headers' => '1.64';
19 requires 'HTTP::Request';
20 requires 'HTTP::Response';
21 requires 'HTTP::Request::AsCGI' => '0.5';
22 requires 'LWP::UserAgent';
23 requires 'Module::Pluggable' => '3.0';
24 requires 'NEXT';
25 requires 'Path::Class' => '0.09';
26 requires 'Scalar::Util';
27 requires 'Text::SimpleTable' => '0.03';
28 requires 'Time::HiRes';
29 requires 'Tree::Simple' => '1.15';
30 requires 'Tree::Simple::Visitor::FindByPath';
31 requires 'URI' => '1.35';
32 requires 'Text::Balanced'; # core in 5.8.x but mentioned for completeness
33
34 feature 'Apache/mod_perl Support',
35   -default                   => 0,
36   'Catalyst::Engine::Apache' => '1.05';
37
38 feature 'FastCGI Support', -default => 0, 'FCGI' => 0, 'FCGI::ProcManager' => 0;
39
40 install_script glob('script/*.pl');
41 WriteAll;
42
43 print( '*' x 80, "\n" );
44 my $banner =
45   (qw/andyg chansen draven fordmason mst naughton sri jester
46       nothingmuch LTjake/)[ int( rand(10) ) ]
47   . " is the greatest and gabb is "
48   . ( (localtime)[2] > 12 ? "drunk" : "hung over" )
49   . " again!";
50 print " $banner \n";
51 print( '*' x 80, "\n" );
52
53 eval "use FCGI";
54 print qq/ Install "FCGI" for FastCGI support.\n/ if $@;
55 eval "use FCGI::ProcManager";
56 print
57   qq/ Install "FCGI::ProcManager" for multiprocess FastCGI external support.\n/
58   if ($@);
59 eval "use PAR ()";
60 print qq/ Install "PAR" for PAR packaging support.\n/ if $@;
61
62 print <<"EOF";
63
64  Important:
65     Install Task::Catalyst to get everything you need to start writing
66     serious applications with Catalyst.
67
68     Note that Catalyst::Helper has been split into a separate distribution,
69     and is required for using catalyst.pl to make new distributions. It is
70     included with Task::Catalyst
71
72         perl -MCPANPLUS -e 'install Task::Catalyst'
73         perl -MCPAN -e 'install Task::Catalyst'
74
75  Have fun!
76 EOF