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