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