make Makefile.PL detect author-ness and require Test::Perl::Critic
[catagits/Catalyst-Runtime.git] / Makefile.PL
CommitLineData
c55f01aa 1use inc::Module::Install 0.64;
022d1311 2
0ba80bce 3perl_version '5.8.1';
4
341d40d1 5name 'Catalyst-Runtime';
6all_from 'lib/Catalyst/Runtime.pm';
24b3262a 7
8requires 'perl' => '5.8.1';
9ce44430 9requires 'Carp';
24b3262a 10requires 'Class::Accessor::Fast';
11requires 'Class::Data::Inheritable';
f63c03e4 12requires 'Class::Inspector' => '1.06';
fa32ac82 13requires 'CGI::Simple::Cookie';
f63c03e4 14requires 'Data::Dump';
24b3262a 15requires 'File::Modified';
16requires 'HTML::Entities';
5c2c224d 17requires 'HTTP::Body' => '0.9';
1e514a51 18requires 'HTTP::Headers' => '1.64';
24b3262a 19requires 'HTTP::Request';
20requires 'HTTP::Response';
ee3c41e3 21requires 'HTTP::Request::AsCGI' => '0.5';
24b3262a 22requires 'LWP::UserAgent';
d8e0de58 23requires 'Module::Pluggable' => '3.01';
24b3262a 24requires 'NEXT';
1e514a51 25requires 'Path::Class' => '0.09';
24b3262a 26requires 'Scalar::Util';
1e514a51 27requires 'Text::SimpleTable' => '0.03';
24b3262a 28requires 'Time::HiRes';
1e514a51 29requires 'Tree::Simple' => '1.15';
24b3262a 30requires 'Tree::Simple::Visitor::FindByPath';
1e514a51 31requires 'URI' => '1.35';
ea0e58d9 32requires 'Text::Balanced'; # core in 5.8.x but mentioned for completeness
24b3262a 33
de925c79 34if (-e 'inc/.author') {
35 build_requires 'Test::Perl::Critic';
36}
37
24b3262a 38install_script glob('script/*.pl');
b6395bce 39auto_install;
24b3262a 40WriteAll;
614f3ad6 41
3c0a4b54 42print( '*' x 74, "\n" );
614f3ad6 43my $banner =
8c4733de 44 (qw/andyg chansen draven fordmason mst naughton sri jester
28346385 45 jrockway ningu nothingmuch LTjake/)[ int( rand(12) ) ]
614f3ad6 46 . " is the greatest and gabb is "
47 . ( (localtime)[2] > 12 ? "drunk" : "hung over" )
48 . " again!";
49print " $banner \n";
3c0a4b54 50print( '*' x 74, "\n" );
614f3ad6 51
614f3ad6 52print <<"EOF";
53
54 Important:
a5b5152b 55
0187a79d 56 This library is for running Catalyst applications.
57
341d40d1 58 For development and use of catalyst.pl and myapp_create.pl, make sure
59 you also install the development tools package Catalyst::Devel.
f63c03e4 60
6bc14aef 61 perl -MCPANPLUS -e 'install Catalyst::Devel' # or
62 perl -MCPAN -e 'install Catalyst::Devel'
63
64 To get some commonly used plugins, as well as the TT view and DBIC
65 model, install Task::Catalyst in the same way.
a5b5152b 66
a5b5152b 67 Have fun!
614f3ad6 68EOF