Commit | Line | Data |
4f6748f1 |
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 | '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, |
bb5ef9d7 |
19 | 'Module::Pluggable::Fast' => 0.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 | }, |
adfe7ead |
27 | create_makefile_pl => 'passthrough', |
4f6748f1 |
28 | script_files => [ glob('script/*') ], |
29 | test_files => [ |
30 | glob('t/*.t'), glob('t/*/*.t'), glob('t/*/*/*.t'), glob('t/*/*/*/*.t') |
31 | ] |
32 | ); |
33 | $build->create_build_script; |
34 | |
35 | print( '*' x 80, "\n" ); |
36 | print( |
37 | (qw/chansen draven fordmason naughton sri the_jester/)[ int( rand(6) ) ], |
38 | " is the greatest and gabb is ", |
39 | ( (localtime)[2] > 12 ? "drunk" : "hung over" ), |
40 | " again!\n" |
41 | ); |
42 | print( '*' x 80, "\n" ); |
43 | |
44 | eval "use mod_perl; use Apache::Request"; |
45 | print qq/Install "mod_perl" and "Apache::Request" for Apache support.\n/ if $@; |
46 | |
47 | eval "use FCGI"; |
48 | print qq/Install "FCGI" for FastCGI support.\n/ if $@; |