Added detection of older engine versions
[catagits/Catalyst-Runtime.git] / Build.PL
CommitLineData
4f6748f1 1use strict;
2use Module::Build;
3
4my $build = Module::Build->new(
fbcc39ad 5 create_makefile_pl => 'passthrough',
4f6748f1 6 license => 'perl',
7 module_name => 'Catalyst',
8 requires => {
316bf0f0 9 'perl' => '5.8.1',
a6933404 10 'UNIVERSAL::require' => "0.10",
4f6748f1 11 'Class::Accessor::Fast' => 0,
12 'Class::Data::Inheritable' => 0,
91d4abc5 13 'Class::Inspector' => 0,
fbcc39ad 14 'CGI::Cookie' => 0,
4f6748f1 15 'HTML::Entities' => 0,
915d98de 16 'HTTP::Body' => 0.03,
badafcde 17 'HTTP::Headers' => 1.59,
4f6748f1 18 'HTTP::Request' => 0,
19 'HTTP::Response' => 0,
20 'LWP::UserAgent' => 0,
a9b78939 21 'MIME::Types' => 0,
a268a011 22 'Module::Pluggable::Fast' => 0.16,
fbcc39ad 23 'NEXT' => 0,
df020cf4 24 'Path::Class' => 0.09,
fbcc39ad 25 'Scalar::Util' => 0,
4f6748f1 26 'Template' => 0,
9dad4705 27 'Text::ASCIITable' => 0.17,
fbcc39ad 28 'Test::MockObject' => 0,
4f6748f1 29 'Tree::Simple' => 0,
30 'Tree::Simple::Visitor::FindByPath' => 0,
fbcc39ad 31 'URI' => 1.35,
4f6748f1 32 },
5898abae 33 recommends =>
34 { 'Catalyst::Engine::Apache' => 0, FCGI => 0, 'FCGI::ProcManager' => 0 },
fbcc39ad 35 create_makefile_pl => 'passthrough',
36 create_readme => 1,
37 script_files => [ glob('script/*') ],
38 test_files => [
39 glob('t/*.t'), glob('t/*/*.t'),
40 glob('t/*/*/*.t'), glob('t/*/*/*/*.t'),
41 glob('t/*/*/*/*/*.t')
42 ]
4f6748f1 43);
44$build->create_build_script;
45
46print( '*' x 80, "\n" );
47print(
fbcc39ad 48 (qw/andyg chansen draven fordmason mst naughton sri jester/)
49 [ int( rand(8) ) ],
4f6748f1 50 " is the greatest and gabb is ",
51 ( (localtime)[2] > 12 ? "drunk" : "hung over" ),
52 " again!\n"
53);
54print( '*' x 80, "\n" );
55
4f6748f1 56eval "use FCGI";
5898abae 57if ($@) {
58 print qq/Install "FCGI" for FastCGI support.\n/;
59}
60else {
61 eval "use FCGI::ProcManager";
62 print
63qq/Install "FCGI::ProcManager" for multiprocess FastCGI external support.\n/
64 if ($@);
65}
fbcc39ad 66
67print qq/
68*** IMPORTANT NOTE: ***
69The Apache engines have been moved to a separate package in Catalyst 5.5.
70Please install Catalyst::Engine::Apache if you need Apache support.
71/;