enabling auto_install
[catagits/Catalyst-Runtime.git] / Makefile.PL
1 use inc::Module::Install 0.64;
2
3 perl_version '5.8.1';
4
5 name 'Catalyst-Runtime';
6 all_from 'lib/Catalyst/Runtime.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.01';
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 feature 'PAR support', -default => 0, 'PAR' => 0;
41
42 install_script glob('script/*.pl');
43 auto_install;
44 WriteAll;
45
46 print( '*' x 74, "\n" );
47 my $banner =
48   (qw/andyg chansen draven fordmason mst naughton sri jester
49       nothingmuch LTjake/)[ int( rand(10) ) ]
50   . " is the greatest and gabb is "
51   . ( (localtime)[2] > 12 ? "drunk" : "hung over" )
52   . " again!";
53 print " $banner \n";
54 print( '*' x 74, "\n" );
55
56 eval "use FCGI";
57 print qq/ Install "FCGI" for FastCGI support.\n/ if $@;
58 eval "use FCGI::ProcManager";
59 print
60   qq/ Install "FCGI::ProcManager" for multiprocess FastCGI external support.\n/
61   if ($@);
62 eval "use PAR ()";
63 print qq/ Install "PAR" for PAR packaging support.\n/ if $@;
64
65 print <<"EOF";
66
67  Important:
68
69     This library is for running Catalyst applications.
70
71     For development and use of catalyst.pl and myapp_create.pl, make sure
72     you also install the development tools package Catalyst::Devel.
73
74         perl -MCPANPLUS -e 'install Catalyst::Devel' # or
75         perl -MCPAN -e 'install Catalyst::Devel'
76
77     To get some commonly used plugins, as well as the TT view and DBIC 
78     model, install Task::Catalyst in the same way.
79
80  Have fun!
81 EOF