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