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, |
c30be672 |
17 | 'HTTP::Body' => 0.5, |
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, |
fc04b845 |
39 | 'FCGI::ProcManager' => 0, |
40 | PAR => 0 |
0f895006 |
41 | }, |
fbcc39ad |
42 | create_makefile_pl => 'passthrough', |
43 | create_readme => 1, |
44 | script_files => [ glob('script/*') ], |
45 | test_files => [ |
46 | glob('t/*.t'), glob('t/*/*.t'), |
47 | glob('t/*/*/*.t'), glob('t/*/*/*/*.t'), |
48 | glob('t/*/*/*/*/*.t') |
49 | ] |
4f6748f1 |
50 | ); |
51 | $build->create_build_script; |
52 | |
53 | print( '*' x 80, "\n" ); |
497732c2 |
54 | my $banner = |
55 | (qw/andyg chansen draven fordmason mst naughton sri jester/)[ int( rand(8) ) ] |
56 | . " is the greatest and gabb is " |
57 | . ( (localtime)[2] > 12 ? "drunk" : "hung over" ) |
980812ff |
58 | . " again!"; |
59 | print " $banner \n"; |
60 | print( '*' x 80, "\n" ); |
497732c2 |
61 | |
62 | print <<'EOF'; |
63 | |
64 | ____ _ _ _ |
65 | / ___|__ _| |_ __ _| |_ _ ___| |_ |
66 | | | / _` | __/ _` | | | | / __| __| |
67 | | |__| (_| | || (_| | | |_| \__ \ |_ |
68 | \____\__ _|\__\__ _|_|\__ |___/\__| |
be23fe9f |
69 | |___/ carpe diem! |
497732c2 |
70 | |
71 | EOF |
4f6748f1 |
72 | |
4f6748f1 |
73 | eval "use FCGI"; |
5898abae |
74 | if ($@) { |
980812ff |
75 | print qq/ Install "FCGI" for FastCGI support.\n/; |
5898abae |
76 | } |
77 | else { |
78 | eval "use FCGI::ProcManager"; |
79 | print |
980812ff |
80 | qq/ Install "FCGI::ProcManager" for multiprocess FastCGI external support.\n/ |
5898abae |
81 | if ($@); |
82 | } |
fc04b845 |
83 | eval "use PAR ()"; |
84 | print qq/ Install "PAR" for PAR packaging support.\n/ if $@; |
fbcc39ad |
85 | |
497732c2 |
86 | print <<"EOF"; |
87 | |
980812ff |
88 | Important: |
89 | The Apache engines have been moved to a separate package in Catalyst 5.5. |
90 | Please install Catalyst::Engine::Apache if you need Apache support. |
497732c2 |
91 | EOF |