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