Added -scripts option to catalyst.pl for script updating
[catagits/Catalyst-Runtime.git] / Build.PL
CommitLineData
4f6748f1 1use strict;
2use Module::Build;
3
4my $build = Module::Build->new(
fbcc39ad 5 create_makefile_pl => 'passthrough',
4f6748f1 6 license => 'perl',
7 module_name => 'Catalyst',
8 requires => {
316bf0f0 9 'perl' => '5.8.1',
a6933404 10 'UNIVERSAL::require' => "0.10",
4f6748f1 11 'Class::Accessor::Fast' => 0,
12 'Class::Data::Inheritable' => 0,
91d4abc5 13 'Class::Inspector' => 0,
fbcc39ad 14 'CGI::Cookie' => 0,
65586a18 15 'File::Modified' => 0,
4f6748f1 16 'HTML::Entities' => 0,
915d98de 17 'HTTP::Body' => 0.03,
badafcde 18 'HTTP::Headers' => 1.59,
4f6748f1 19 'HTTP::Request' => 0,
20 'HTTP::Response' => 0,
21 'LWP::UserAgent' => 0,
a9b78939 22 'MIME::Types' => 0,
a268a011 23 'Module::Pluggable::Fast' => 0.16,
fbcc39ad 24 'NEXT' => 0,
df020cf4 25 'Path::Class' => 0.09,
fbcc39ad 26 'Scalar::Util' => 0,
4f6748f1 27 'Template' => 0,
9dad4705 28 'Text::ASCIITable' => 0.17,
fbcc39ad 29 'Test::MockObject' => 0,
65586a18 30 'Time::HiRes' => 0,
4f6748f1 31 'Tree::Simple' => 0,
32 'Tree::Simple::Visitor::FindByPath' => 0,
fbcc39ad 33 'URI' => 1.35,
4f6748f1 34 },
5898abae 35 recommends =>
36 { 'Catalyst::Engine::Apache' => 0, FCGI => 0, 'FCGI::ProcManager' => 0 },
fbcc39ad 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 ]
4f6748f1 45);
46$build->create_build_script;
47
48print( '*' x 80, "\n" );
49print(
fbcc39ad 50 (qw/andyg chansen draven fordmason mst naughton sri jester/)
51 [ int( rand(8) ) ],
4f6748f1 52 " is the greatest and gabb is ",
53 ( (localtime)[2] > 12 ? "drunk" : "hung over" ),
54 " again!\n"
55);
56print( '*' x 80, "\n" );
57
4f6748f1 58eval "use FCGI";
5898abae 59if ($@) {
60 print qq/Install "FCGI" for FastCGI support.\n/;
61}
62else {
63 eval "use FCGI::ProcManager";
64 print
65qq/Install "FCGI::ProcManager" for multiprocess FastCGI external support.\n/
66 if ($@);
67}
fbcc39ad 68
69print qq/
70*** IMPORTANT NOTE: ***
71The Apache engines have been moved to a separate package in Catalyst 5.5.
72Please install Catalyst::Engine::Apache if you need Apache support.
73/;