Fixed some bugs and improved logs
[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         'LWP::UserAgent'                    => 0,
22         'MIME::Types'                       => 0,
23         'Module::Pluggable::Fast'           => 0.16,
24         'NEXT'                              => 0,
25         'Path::Class'                       => 0.09,
26         'Scalar::Util'                      => 0,
27         'Template'                          => 0,
28         'Text::SimpleTable'                 => 0,
29         'Test::MockObject'                  => 0,
30         'Time::HiRes'                       => 0,
31         'Tree::Simple'                      => 0,
32         'Tree::Simple::Visitor::FindByPath' => 0,
33         'URI'                               => 1.35,
34     },
35     recommends =>
36       { 'Catalyst::Engine::Apache' => 0, FCGI => 0, 'FCGI::ProcManager' => 0 },
37     create_makefile_pl => 'passthrough',
38     create_readme      => 1,
39     script_files       => [ glob('script/*') ],
40     test_files         => [
41         glob('t/*.t'),     glob('t/*/*.t'),
42         glob('t/*/*/*.t'), glob('t/*/*/*/*.t'),
43         glob('t/*/*/*/*/*.t')
44     ]
45 );
46 $build->create_build_script;
47
48 print( '*' x 80, "\n" );
49 my $banner =
50   (qw/andyg chansen draven fordmason mst naughton sri jester/)[ int( rand(8) ) ]
51   . " is the greatest and gabb is "
52   . ( (localtime)[2] > 12 ? "drunk" : "hung over" )
53   . " again!";
54 print " $banner \n";
55 print( '*' x 80, "\n" );
56
57 print <<'EOF';
58
59                     ____      _        _           _
60                    / ___|__ _| |_ __ _| |_   _ ___| |_
61                   | |   / _` | __/ _` | | | | / __| __|
62                   | |__| (_| | || (_| | | |_| \__ \ |_
63                    \____\__ _|\__\__ _|_|\__  |___/\__|
64                                          |___/  carpe diem!
65
66 EOF
67
68 eval "use FCGI";
69 if ($@) {
70     print qq/ Install "FCGI" for FastCGI support.\n/;
71 }
72 else {
73     eval "use FCGI::ProcManager";
74     print
75 qq/ Install "FCGI::ProcManager" for multiprocess FastCGI external support.\n/
76       if ($@);
77 }
78
79 print <<"EOF";
80
81  Important:
82      The Apache engines have been moved to a separate package in Catalyst 5.5.
83      Please install Catalyst::Engine::Apache if you need Apache support.
84 EOF