Fix: Make sure you have newest Module::Build so cat dies on syntax error
[catagits/Catalyst-Runtime.git] / Build.PL
CommitLineData
4f6748f1 1use strict;
2use Module::Build;
3
4my $build = Module::Build->new(
5 create_makefile_pl => 'passthrough',
6 license => 'perl',
7 module_name => 'Catalyst',
8 requires => {
9 'UNIVERSAL::require' => 0,
10 'CGI::Simple' => 0,
11 'Class::Accessor::Fast' => 0,
12 'Class::Data::Inheritable' => 0,
13 'HTTP::Daemon' => 0,
14 'HTML::Entities' => 0,
15 'HTTP::Headers' => 0,
16 'HTTP::Request' => 0,
17 'HTTP::Response' => 0,
18 'LWP::UserAgent' => 0,
765db419 19 'Module::Pluggable::Fast' => 0.14.14,
4f6748f1 20 'Path::Class' => 0,
21 'Template' => 0,
22 'Text::ASCIITable' => 0,
23 'Tree::Simple' => 0,
24 'Tree::Simple::Visitor::FindByPath' => 0,
25 'URI' => 0,
26 },
27 script_files => [ glob('script/*') ],
28 test_files => [
29 glob('t/*.t'), glob('t/*/*.t'), glob('t/*/*/*.t'), glob('t/*/*/*/*.t')
30 ]
31);
32$build->create_build_script;
33
34print( '*' x 80, "\n" );
35print(
36 (qw/chansen draven fordmason naughton sri the_jester/)[ int( rand(6) ) ],
37 " is the greatest and gabb is ",
38 ( (localtime)[2] > 12 ? "drunk" : "hung over" ),
39 " again!\n"
40);
41print( '*' x 80, "\n" );
42
43eval "use mod_perl; use Apache::Request";
44print qq/Install "mod_perl" and "Apache::Request" for Apache support.\n/ if $@;
45
46eval "use FCGI";
47print qq/Install "FCGI" for FastCGI support.\n/ if $@;