Updated Catalyst::Test to use HTTP::Request::AsCGI
[catagits/Catalyst-Runtime.git] / Build.PL
1 use strict;
2 use Module::Build;
3
4 my $build = Module::Build->new(
5     create_makefile_pl => 'passthrough',
6     license            => 'perl',
7     module_name        => 'Catalyst',
8     requires           => {
9         'perl'                              => '5.8.1',
10         'UNIVERSAL::require'                => "0.10",
11         'Class::Accessor::Fast'             => 0,
12         'Class::Data::Inheritable'          => 0,
13         'Class::Inspector'                  => 0,
14         'CGI::Cookie'                       => 0,
15         'File::Modified'                    => 0,
16         'HTML::Entities'                    => 0,
17         'HTTP::Body'                        => 0.4,
18         'HTTP::Headers'                     => 1.59,
19         'HTTP::Request'                     => 0,
20         'HTTP::Response'                    => 0,
21         'HTTP::Request::AsCGI'              => 0,
22         'LWP::UserAgent'                    => 0,
23         'MIME::Types'                       => 0,
24         'Module::Pluggable::Fast'           => 0.16,
25         'NEXT'                              => 0,
26         'Path::Class'                       => 0.09,
27         'Scalar::Util'                      => 0,
28         'Template'                          => 0,
29         'Text::SimpleTable'                 => 0,
30         'Test::MockObject'                  => 0,
31         'Time::HiRes'                       => 0,
32         'Tree::Simple'                      => 0,
33         'Tree::Simple::Visitor::FindByPath' => 0,
34         'URI'                               => 1.35,
35     },
36     recommends => {
37         'Catalyst::Engine::Apache' => '1.00',
38         FCGI                       => 0,
39         'FCGI::ProcManager'        => 0
40     },
41     create_makefile_pl => 'passthrough',
42     create_readme      => 1,
43     script_files       => [ glob('script/*') ],
44     test_files         => [
45         glob('t/*.t'),     glob('t/*/*.t'),
46         glob('t/*/*/*.t'), glob('t/*/*/*/*.t'),
47         glob('t/*/*/*/*/*.t')
48     ]
49 );
50 $build->create_build_script;
51
52 print( '*' x 80, "\n" );
53 my $banner =
54   (qw/andyg chansen draven fordmason mst naughton sri jester/)[ int( rand(8) ) ]
55   . " is the greatest and gabb is "
56   . ( (localtime)[2] > 12 ? "drunk" : "hung over" )
57   . " again!";
58 print " $banner \n";
59 print( '*' x 80, "\n" );
60
61 print <<'EOF';
62
63                     ____      _        _           _
64                    / ___|__ _| |_ __ _| |_   _ ___| |_
65                   | |   / _` | __/ _` | | | | / __| __|
66                   | |__| (_| | || (_| | | |_| \__ \ |_
67                    \____\__ _|\__\__ _|_|\__  |___/\__|
68                                          |___/  carpe diem!
69
70 EOF
71
72 eval "use FCGI";
73 if ($@) {
74     print qq/ Install "FCGI" for FastCGI support.\n/;
75 }
76 else {
77     eval "use FCGI::ProcManager";
78     print
79 qq/ Install "FCGI::ProcManager" for multiprocess FastCGI external support.\n/
80       if ($@);
81 }
82
83 print <<"EOF";
84
85  Important:
86      The Apache engines have been moved to a separate package in Catalyst 5.5.
87      Please install Catalyst::Engine::Apache if you need Apache support.
88 EOF