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, |
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, |
8c113188 |
28 | 'Text::SimpleTable' => 0, |
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 => |
89546294 |
36 | { 'Catalyst::Engine::Apache' => '1.00', 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 | |
48 | print( '*' x 80, "\n" ); |
497732c2 |
49 | my $banner = |
50 | (qw/andyg chansen draven fordmason mst naughton sri jester/)[ int( rand(8) ) ] |
51 | . " is the greatest and gabb is " |
52 | . ( (localtime)[2] > 12 ? "drunk" : "hung over" ) |
980812ff |
53 | . " again!"; |
54 | print " $banner \n"; |
55 | print( '*' x 80, "\n" ); |
497732c2 |
56 | |
57 | print <<'EOF'; |
58 | |
59 | ____ _ _ _ |
60 | / ___|__ _| |_ __ _| |_ _ ___| |_ |
61 | | | / _` | __/ _` | | | | / __| __| |
62 | | |__| (_| | || (_| | | |_| \__ \ |_ |
63 | \____\__ _|\__\__ _|_|\__ |___/\__| |
be23fe9f |
64 | |___/ carpe diem! |
497732c2 |
65 | |
66 | EOF |
4f6748f1 |
67 | |
4f6748f1 |
68 | eval "use FCGI"; |
5898abae |
69 | if ($@) { |
980812ff |
70 | print qq/ Install "FCGI" for FastCGI support.\n/; |
5898abae |
71 | } |
72 | else { |
73 | eval "use FCGI::ProcManager"; |
74 | print |
980812ff |
75 | qq/ Install "FCGI::ProcManager" for multiprocess FastCGI external support.\n/ |
5898abae |
76 | if ($@); |
77 | } |
fbcc39ad |
78 | |
497732c2 |
79 | print <<"EOF"; |
80 | |
980812ff |
81 | Important: |
82 | The Apache engines have been moved to a separate package in Catalyst 5.5. |
83 | Please install Catalyst::Engine::Apache if you need Apache support. |
497732c2 |
84 | EOF |