1 use inc::Module::Install 0.64;
3 perl_version '5.008001';
5 name 'Catalyst-Runtime';
6 all_from 'lib/Catalyst/Runtime.pm';
8 requires 'MooseX::Emulate::Class::Accessor::Fast' => '0.00300';
9 requires 'Moose' => '0.59';
11 requires 'Class::Data::Inheritable';
12 requires 'Class::Inspector' => '1.06';
13 requires 'CGI::Simple::Cookie';
14 requires 'Data::Dump';
15 requires 'File::Modified';
16 requires 'HTML::Entities';
17 requires 'HTTP::Body' => '1.04'; # makes uploadtmp work
18 requires 'HTTP::Headers' => '1.64';
19 requires 'HTTP::Request';
20 requires 'HTTP::Response';
21 requires 'HTTP::Request::AsCGI' => '0.5';
22 requires 'LWP::UserAgent';
23 requires 'Module::Pluggable' => '3.01';
25 requires 'Path::Class' => '0.09';
26 requires 'Scalar::Util';
27 requires 'Text::SimpleTable' => '0.03';
28 requires 'Time::HiRes';
29 requires 'Tree::Simple' => '1.15';
30 requires 'Tree::Simple::Visitor::FindByPath';
31 requires 'URI' => '1.35';
32 requires 'Text::Balanced'; # core in 5.8.x but mentioned for completeness
33 requires 'MRO::Compat';
35 if ( ( exists $ENV{AGGREGATE_TESTS} && !$ENV{AGGREGATE_TESTS})
36 || (!exists $ENV{AGGREGATE_TESTS} && !can_use('Test::Aggregate', '0.34_01'))) {
38 grep { $_ ne 't/aggregate.t' }
39 map { glob } qw[t/*.t t/aggregate/*.t];
42 if (-e 'inc/.author') {
43 build_requires 'Test::NoTabs';
44 build_requires 'Test::Pod' => 1.14;
45 build_requires 'Test::Pod::Coverage' => 1.04;
47 if ($^O eq 'darwin') {
48 my $osx_ver = `/usr/bin/sw_vers -productVersion`;
51 # TAR on 10.4 wants COPY_EXTENDED_ATTRIBUTES_DISABLE
52 # On 10.5 (Leopard) it wants COPYFILE_DISABLE
53 my $attr = $osx_ver eq '10.5' ? 'COPYFILE_DISABLE' : 'COPY_EXTENDED_ATTRIBUTES_DISABLE';
55 makemaker_args(dist => { PREOP => qq{\@if [ "\$\$$attr" != "true" ]; then}.
56 qq{ echo "You must set the ENV variable $attr to true,"; }.
57 ' echo "to avoid getting resource forks in your dist."; exit 255; fi' });
61 install_script glob('script/*.pl');
69 This library is for running Catalyst applications.
71 For development and use of catalyst.pl and myapp_create.pl, make sure
72 you also install the development tools package Catalyst::Devel.
74 perl -MCPANPLUS -e 'install Catalyst::Devel' # or
75 perl -MCPAN -e 'install Catalyst::Devel'
77 To get some commonly used plugins, as well as the TT view and DBIC
78 model, install Task::Catalyst in the same way.