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