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