Commit | Line | Data |
614f3ad6 |
1 | use inc::Module::Install; |
2 | |
3 | name('Catalyst'); |
4 | abstract('Catalyst Web Framework'); |
5 | author('Sebastian Riedel'); |
6 | version_from('lib/Catalyst.pm'); |
7 | license('perl'); |
8 | |
9624cd13 |
9 | include('ExtUtils::AutoInstall'); |
10 | |
614f3ad6 |
11 | requires( 'perl' => '5.8.1' ); |
12 | requires( 'UNIVERSAL::require' => "0.10" ); |
13 | requires('Class::Accessor::Fast'); |
14 | requires('Class::Data::Inheritable'); |
15 | requires('Class::Inspector'); |
16 | requires('CGI::Cookie'); |
17 | requires('File::Modified'); |
18 | requires('HTML::Entities'); |
19 | requires( 'HTTP::Body' => 0.5 ); |
20 | requires( 'HTTP::Headers' => 1.59 ); |
21 | requires('HTTP::Request'); |
22 | requires('HTTP::Response'); |
23 | requires('HTTP::Request::AsCGI'); |
24 | requires('LWP::UserAgent'); |
25 | requires('MIME::Types'); |
26 | requires( 'Module::Pluggable::Fast' => 0.16 ); |
27 | requires('NEXT'); |
28 | requires( 'Path::Class' => 0.09 ); |
29 | requires('Scalar::Util'); |
30 | requires('Template'); |
31 | requires('Text::SimpleTable'); |
32 | requires('Test::MockObject'); |
33 | requires('Time::HiRes'); |
34 | requires('Tree::Simple'); |
35 | requires('Tree::Simple::Visitor::FindByPath'); |
36 | requires( 'URI' => 1.35 ); |
bb722214 |
37 | requires('File::Copy::Recursive'); |
0afeb5f5 |
38 | requires('inc::Module::Install'); |
9624cd13 |
39 | requires('ExtUtils::AutoInstall'); |
614f3ad6 |
40 | |
9624cd13 |
41 | features( |
57c8e3b4 |
42 | 'Apache/mod_perl Support' => [ |
9624cd13 |
43 | -default => 0, |
44 | 'Catalyst::Engine::Apache' => '1.00' |
45 | ], |
46 | 'FastCGI Support' => [ |
47 | -default => 0, |
48 | 'FCGI' => 0, |
49 | 'FCGI::ProcManager' => 0 |
50 | ], |
51 | 'PAR Support' => [ |
52 | -default => 0, |
53 | 'PAR' => 0 |
54 | ], |
57c8e3b4 |
55 | 'CPANPLUS (for easier installations)' => [ |
56 | -default => 1, |
9624cd13 |
57 | 'CPANPLUS' => 0 |
58 | ], |
59 | ); |
614f3ad6 |
60 | |
61 | install_script( glob('script/*.pl') ); |
9624cd13 |
62 | auto_install(); |
614f3ad6 |
63 | &WriteAll; |
64 | |
65 | print( '*' x 80, "\n" ); |
66 | my $banner = |
67 | (qw/andyg chansen draven fordmason mst naughton sri jester/)[ int( rand(8) ) ] |
68 | . " is the greatest and gabb is " |
69 | . ( (localtime)[2] > 12 ? "drunk" : "hung over" ) |
70 | . " again!"; |
71 | print " $banner \n"; |
72 | print( '*' x 80, "\n" ); |
73 | |
614f3ad6 |
74 | eval "use FCGI"; |
75 | print qq/ Install "FCGI" for FastCGI support.\n/ if $@; |
76 | eval "use FCGI::ProcManager"; |
77 | print |
78 | qq/ Install "FCGI::ProcManager" for multiprocess FastCGI external support.\n/ |
79 | if ($@); |
80 | eval "use PAR ()"; |
81 | print qq/ Install "PAR" for PAR packaging support.\n/ if $@; |
82 | |
83 | print <<"EOF"; |
84 | |
85 | Important: |
d538823f |
86 | Install Task::Catalyst to get everything you need to start writing |
8878af8a |
87 | serious applications with Catalyst. |
a5b5152b |
88 | |
e7d20a58 |
89 | perl -MCPANPLUS -e 'install Task::Catalyst' |
d538823f |
90 | perl -MCPAN -e 'install Task::Catalyst' |
a5b5152b |
91 | |
a5b5152b |
92 | Have fun! |
614f3ad6 |
93 | EOF |