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