only for authors
[catagits/Catalyst-Runtime.git] / Makefile.PL
1 use inc::Module::Install 0.64;
2
3 perl_version '5.8.1';
4
5 name 'Catalyst-Runtime';
6 all_from 'lib/Catalyst/Runtime.pm';
7
8 requires 'perl'               => '5.8.1';
9 requires 'Carp';
10 requires 'Class::Accessor::Fast';
11 requires 'Class::Data::Inheritable';
12 requires 'Class::Inspector' => '1.06';
13 requires 'CGI::Simple::Cookie';
14 requires 'Data::Dump';
15 requires 'File::Modified';
16 requires 'HTML::Entities';
17 requires 'HTTP::Body'    => '0.9';
18 requires 'HTTP::Headers' => '1.64';
19 requires 'HTTP::Request';
20 requires 'HTTP::Response';
21 requires 'HTTP::Request::AsCGI' => '0.5';
22 requires 'LWP::UserAgent';
23 requires 'Module::Pluggable' => '3.01';
24 requires 'NEXT';
25 requires 'Path::Class' => '0.09';
26 requires 'Scalar::Util';
27 requires 'Text::SimpleTable' => '0.03';
28 requires 'Time::HiRes';
29 requires 'Tree::Simple' => '1.15';
30 requires 'Tree::Simple::Visitor::FindByPath';
31 requires 'URI' => '1.35';
32 requires 'Text::Balanced'; # core in 5.8.x but mentioned for completeness
33
34
35 if (-e 'inc/.author') {
36   build_requires 'Test::Perl::Critic';
37
38   if ($^O eq 'darwin') { 
39       makemaker_args(dist => { PREOP => 'if [ "$$COPY_EXTENDED_ATTRIBUTES_DISABLE" != "true" ]; then'.
40                                         ' echo "you must set the ENV variable COPY_EXTENDED_ATTRIBUTES_DISABLE to true,"; '.
41                                         ' echo "to avoid getting resource forks in your dist."; exit 255; fi' }); 
42   }
43 }
44
45 install_script glob('script/*.pl');
46 auto_install;
47 WriteAll;
48
49 print( '*' x 74, "\n" );
50 my $banner =
51   (qw/andyg chansen draven fordmason mst naughton sri jester
52       jrockway ningu nothingmuch LTjake/)[ int( rand(12) ) ]
53   . " is the greatest and gabb is "
54   . ( (localtime)[2] > 12 ? "drunk" : "hung over" )
55   . " again!";
56 print " $banner \n";
57 print( '*' x 74, "\n" );
58
59 print <<"EOF";
60
61  Important:
62
63     This library is for running Catalyst applications.
64
65     For development and use of catalyst.pl and myapp_create.pl, make sure
66     you also install the development tools package Catalyst::Devel.
67
68         perl -MCPANPLUS -e 'install Catalyst::Devel' # or
69         perl -MCPAN -e 'install Catalyst::Devel'
70
71     To get some commonly used plugins, as well as the TT view and DBIC 
72     model, install Task::Catalyst in the same way.
73
74  Have fun!
75 EOF