471b1b65abc90d315dea2377ba6517a455a150c0
[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         'CGI::Cookie'                       => 0,
14         'HTML::Entities'                    => 0,
15         'HTTP::Body'                        => 0.03,
16         'HTTP::Headers'                     => 1.59,
17         'HTTP::Request'                     => 0,
18         'HTTP::Response'                    => 0,
19         'LWP::UserAgent'                    => 0,
20         'MIME::Types'                       => 0,
21         'Module::Pluggable::Fast'           => 0.16,
22         'NEXT'                              => 0,
23         'Path::Class'                       => 0.09,
24         'Scalar::Util'                      => 0,
25         'Template'                          => 0,
26         'Text::ASCIITable'                  => 0.17,
27         'Test::MockObject'                  => 0,
28         'Tree::Simple'                      => 0,
29         'Tree::Simple::Visitor::FindByPath' => 0,
30         'URI'                               => 1.35,
31     },
32     recommends =>
33       { 'Catalyst::Engine::Apache' => 0, FCGI => 0, 'FCGI::ProcManager' => 0 },
34     create_makefile_pl => 'passthrough',
35     create_readme      => 1,
36     script_files       => [ glob('script/*') ],
37     test_files         => [
38         glob('t/*.t'),     glob('t/*/*.t'),
39         glob('t/*/*/*.t'), glob('t/*/*/*/*.t'),
40         glob('t/*/*/*/*/*.t')
41     ]
42 );
43 $build->create_build_script;
44
45 print( '*' x 80, "\n" );
46 print(
47     (qw/andyg chansen draven fordmason mst naughton sri jester/)
48     [ int( rand(8) ) ],
49     " is the greatest and gabb is ",
50     ( (localtime)[2] > 12 ? "drunk" : "hung over" ),
51     " again!\n"
52 );
53 print( '*' x 80, "\n" );
54
55 eval "use FCGI";
56 if ($@) {
57     print qq/Install "FCGI" for FastCGI support.\n/;
58 }
59 else {
60     eval "use FCGI::ProcManager";
61     print
62 qq/Install "FCGI::ProcManager" for multiprocess FastCGI external support.\n/
63       if ($@);
64 }
65
66 print qq/
67 *** IMPORTANT NOTE: ***
68 The Apache engines have been moved to a separate package in Catalyst 5.5.
69 Please install Catalyst::Engine::Apache if you need Apache support.
70 /;