Updated prereqs
[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.5,
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         PAR                        => 0
41     },
42     create_makefile_pl => 'passthrough',
43     create_readme      => 1,
44     script_files       => [ glob('script/*') ],
45     test_files         => [
46         glob('t/*.t'),     glob('t/*/*.t'),
47         glob('t/*/*/*.t'), glob('t/*/*/*/*.t'),
48         glob('t/*/*/*/*/*.t')
49     ]
50 );
51 $build->create_build_script;
52
53 print( '*' x 80, "\n" );
54 my $banner =
55   (qw/andyg chansen draven fordmason mst naughton sri jester/)[ int( rand(8) ) ]
56   . " is the greatest and gabb is "
57   . ( (localtime)[2] > 12 ? "drunk" : "hung over" )
58   . " again!";
59 print " $banner \n";
60 print( '*' x 80, "\n" );
61
62 print <<'EOF';
63
64                     ____      _        _           _
65                    / ___|__ _| |_ __ _| |_   _ ___| |_
66                   | |   / _` | __/ _` | | | | / __| __|
67                   | |__| (_| | || (_| | | |_| \__ \ |_
68                    \____\__ _|\__\__ _|_|\__  |___/\__|
69                                          |___/  carpe diem!
70
71 EOF
72
73 eval "use FCGI";
74 if ($@) {
75     print qq/ Install "FCGI" for FastCGI support.\n/;
76 }
77 else {
78     eval "use FCGI::ProcManager";
79     print
80 qq/ Install "FCGI::ProcManager" for multiprocess FastCGI external support.\n/
81       if ($@);
82 }
83 eval "use PAR ()";
84 print qq/ Install "PAR" for PAR packaging support.\n/ if $@;
85
86 print <<"EOF";
87
88  Important:
89      The Apache engines have been moved to a separate package in Catalyst 5.5.
90      Please install Catalyst::Engine::Apache if you need Apache support.
91 EOF