Added -scripts option to catalyst.pl for script updating
[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.03,
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::ASCIITable'                  => 0.17,
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 print(
50     (qw/andyg chansen draven fordmason mst naughton sri jester/)
51     [ int( rand(8) ) ],
52     " is the greatest and gabb is ",
53     ( (localtime)[2] > 12 ? "drunk" : "hung over" ),
54     " again!\n"
55 );
56 print( '*' x 80, "\n" );
57
58 eval "use FCGI";
59 if ($@) {
60     print qq/Install "FCGI" for FastCGI support.\n/;
61 }
62 else {
63     eval "use FCGI::ProcManager";
64     print
65 qq/Install "FCGI::ProcManager" for multiprocess FastCGI external support.\n/
66       if ($@);
67 }
68
69 print qq/
70 *** IMPORTANT NOTE: ***
71 The Apache engines have been moved to a separate package in Catalyst 5.5.
72 Please install Catalyst::Engine::Apache if you need Apache support.
73 /;