Commit | Line | Data |
4f6748f1 |
1 | use strict; |
2 | use Module::Build; |
3 | |
4 | my $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, |
9c8bb4ff |
17 | 'HTTP::Body' => 0.4, |
badafcde |
18 | 'HTTP::Headers' => 1.59, |
4f6748f1 |
19 | 'HTTP::Request' => 0, |
20 | 'HTTP::Response' => 0, |
0f895006 |
21 | 'HTTP::Request::AsCGI' => 0, |
4f6748f1 |
22 | 'LWP::UserAgent' => 0, |
a9b78939 |
23 | 'MIME::Types' => 0, |
a268a011 |
24 | 'Module::Pluggable::Fast' => 0.16, |
fbcc39ad |
25 | 'NEXT' => 0, |
df020cf4 |
26 | 'Path::Class' => 0.09, |
fbcc39ad |
27 | 'Scalar::Util' => 0, |
4f6748f1 |
28 | 'Template' => 0, |
8c113188 |
29 | 'Text::SimpleTable' => 0, |
fbcc39ad |
30 | 'Test::MockObject' => 0, |
65586a18 |
31 | 'Time::HiRes' => 0, |
4f6748f1 |
32 | 'Tree::Simple' => 0, |
33 | 'Tree::Simple::Visitor::FindByPath' => 0, |
fbcc39ad |
34 | 'URI' => 1.35, |
4f6748f1 |
35 | }, |
0f895006 |
36 | recommends => { |
37 | 'Catalyst::Engine::Apache' => '1.00', |
38 | FCGI => 0, |
39 | 'FCGI::ProcManager' => 0 |
40 | }, |
fbcc39ad |
41 | create_makefile_pl => 'passthrough', |
42 | create_readme => 1, |
43 | script_files => [ glob('script/*') ], |
44 | test_files => [ |
45 | glob('t/*.t'), glob('t/*/*.t'), |
46 | glob('t/*/*/*.t'), glob('t/*/*/*/*.t'), |
47 | glob('t/*/*/*/*/*.t') |
48 | ] |
4f6748f1 |
49 | ); |
50 | $build->create_build_script; |
51 | |
52 | print( '*' x 80, "\n" ); |
497732c2 |
53 | my $banner = |
54 | (qw/andyg chansen draven fordmason mst naughton sri jester/)[ int( rand(8) ) ] |
55 | . " is the greatest and gabb is " |
56 | . ( (localtime)[2] > 12 ? "drunk" : "hung over" ) |
980812ff |
57 | . " again!"; |
58 | print " $banner \n"; |
59 | print( '*' x 80, "\n" ); |
497732c2 |
60 | |
61 | print <<'EOF'; |
62 | |
63 | ____ _ _ _ |
64 | / ___|__ _| |_ __ _| |_ _ ___| |_ |
65 | | | / _` | __/ _` | | | | / __| __| |
66 | | |__| (_| | || (_| | | |_| \__ \ |_ |
67 | \____\__ _|\__\__ _|_|\__ |___/\__| |
be23fe9f |
68 | |___/ carpe diem! |
497732c2 |
69 | |
70 | EOF |
4f6748f1 |
71 | |
4f6748f1 |
72 | eval "use FCGI"; |
5898abae |
73 | if ($@) { |
980812ff |
74 | print qq/ Install "FCGI" for FastCGI support.\n/; |
5898abae |
75 | } |
76 | else { |
77 | eval "use FCGI::ProcManager"; |
78 | print |
980812ff |
79 | qq/ Install "FCGI::ProcManager" for multiprocess FastCGI external support.\n/ |
5898abae |
80 | if ($@); |
81 | } |
fbcc39ad |
82 | |
497732c2 |
83 | print <<"EOF"; |
84 | |
980812ff |
85 | Important: |
86 | The Apache engines have been moved to a separate package in Catalyst 5.5. |
87 | Please install Catalyst::Engine::Apache if you need Apache support. |
497732c2 |
88 | EOF |