3 use inc::Module::Install 0.91;
4 # Ensure that these get used - yes, M::I loads them for us, but if you're
5 # in author mode and don't have them installed, then the error is tres
7 use Module::Install::AuthorRequires;
8 use Module::Install::CheckConflicts;
9 use Module::Install::AuthorTests;
11 perl_version '5.008003';
13 name 'Catalyst-Runtime';
14 all_from 'lib/Catalyst/Runtime.pm';
16 requires 'List::MoreUtils';
17 requires 'namespace::autoclean' => '0.09';
18 requires 'namespace::clean' => '0.13';
19 requires 'B::Hooks::EndOfScope' => '0.10';
20 requires 'MooseX::Emulate::Class::Accessor::Fast' => '0.00903';
21 requires 'Class::Load' => '0.12';
22 requires 'Class::MOP' => '0.95';
23 requires 'Data::OptList';
24 requires 'Moose' => '1.03';
25 requires 'MooseX::MethodAttributes::Inheritable' => '0.24';
26 requires 'MooseX::Role::WithOverloading' => '0.09';
27 requires 'MooseX::Types::LoadableClass' => '0.003';
29 requires 'Class::C3::Adopt::NEXT' => '0.07';
30 requires 'CGI::Simple::Cookie' => '1.109';
31 requires 'Data::Dump';
32 requires 'Data::OptList';
33 requires 'HTML::Entities';
34 requires 'HTML::HeadParser';
35 requires 'HTTP::Body' => '1.06'; # ->cleanup(1)
36 requires 'HTTP::Headers' => '1.64';
37 requires 'HTTP::Request' => '5.814';
38 requires 'HTTP::Response' => '5.813';
39 requires 'HTTP::Request::AsCGI' => '1.0';
40 requires 'LWP::UserAgent';
41 requires 'Module::Pluggable' => '3.9';
42 requires 'Path::Class' => '0.09';
43 requires 'Scalar::Util';
44 requires 'Sub::Exporter';
45 requires 'Text::SimpleTable' => '0.03';
46 requires 'Time::HiRes';
47 requires 'Tree::Simple' => '1.15';
48 requires 'Tree::Simple::Visitor::FindByPath';
50 requires 'URI' => '1.35';
51 requires 'Task::Weaken';
52 requires 'Text::Balanced'; # core in 5.8.x but mentioned for completeness
53 requires 'MRO::Compat';
54 requires 'MooseX::Getopt' => '0.30';
55 requires 'MooseX::Types';
56 requires 'MooseX::Types::Common::Numeric';
57 requires 'String::RewritePrefix' => '0.004'; # Catalyst::Utils::resolve_namespace
58 requires 'Plack' => '0.9974'; # IIS6 fix middleware
59 requires 'Plack::Middleware::ReverseProxy' => '0.04';
60 requires 'Plack::Test::ExternalServer';
62 test_requires 'Class::Data::Inheritable';
63 test_requires 'Test::Exception';
64 test_requires 'Test::More' => '0.88';
65 test_requires 'Data::Dump';
66 test_requires 'HTTP::Request::Common';
68 # aggregate tests if AGGREGATE_TESTS is set and a recent Test::Aggregate and a Test::Simple it works with is available
69 if ($ENV{AGGREGATE_TESTS} && can_use('Test::Simple', '0.88') && can_use('Test::Aggregate', '0.364')) {
70 author_requires('Test::Aggregate', '0.364');
71 author_requires('Test::Simple', '0.88');
72 open my $fh, '>', '.aggregating';
75 unlink '.aggregating';
76 tests 't/*.t t/aggregate/*.t';
79 author_requires 'CatalystX::LeakChecker', '0.05';
80 author_requires 'File::Copy::Recursive'; # For http server test
81 author_requires 'Catalyst::Devel', '1.0'; # For http server test
82 author_requires 'Catalyst::Engine::PSGI';
83 author_requires 'Test::Without::Module';
84 author_requires 'Starman';
85 author_requires 'MooseX::Daemonize';
87 author_tests 't/author';
88 author_requires(map {; $_ => 0 } qw(
93 Pod::Coverage::TrustPod
96 if ($Module::Install::AUTHOR) {
97 darwin_check_no_resource_forks();
101 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst',
102 'IRC' => 'irc://irc.perl.org/#catalyst',
103 'license', => 'http://dev.perl.org/licenses/',
104 'homepage', => 'http://dev.catalyst.perl.org/',
105 'repository', => 'git://git.shadowcat.co.uk/catagits/Catalyst-Runtime.git',
108 install_script glob('script/*.pl');
116 This library is for running Catalyst applications.
118 For development and use of catalyst.pl and myapp_create.pl, make sure
119 you also install the development tools package Catalyst::Devel.
121 perl -MCPANPLUS -e 'install Catalyst::Devel' # or
122 perl -MCPAN -e 'install Catalyst::Devel' # or
123 cpanm Catalyst::Devel
125 To get some commonly used plugins, as well as the TT view and DBIC
126 model, install Task::Catalyst in the same way.
131 # NOTE - This is the version number of the _incompatible_ code,
132 # not the version number of the fixed version.
134 'Catalyst::Plugin::SubRequest' => '0.14',
135 'Catalyst::Model::Akismet' => '0.02',
136 'Catalyst::Component::ACCEPT_CONTEXT' => '0.06',
137 'Catalyst::Plugin::ENV' => '9999', # This plugin is just stupid, full stop
138 # should have been a core fix.
139 'Catalyst::Plugin::Unicode::Encoding' => '0.2',
140 'Catalyst::Plugin::Authentication' => '0.10010', # _config accessor in ::Credential::Password
141 'Catalyst::Authentication::Credential::HTTP' => '1.009',
142 'Catalyst::Plugin::Session::Store::File' => '0.16',
143 'Catalyst::Plugin::Session' => '0.21',
144 'Catalyst::Plugin::Session::State::Cookie' => '0.10',
145 'Catalyst::Plugin::Session::Store::FastMmap' => '0.09',
146 'Catalyst::Controller::AllowDisable' => '0.03',
147 'Reaction' => '0.001999',
148 'Catalyst::Plugin::Upload::Image::Magick' => '0.03',
149 'Catalyst::Plugin::ConfigLoader' => '0.22', # Older versions work but
150 # throw Data::Visitor warns
151 'Catalyst::Devel' => '1.19',
152 'Catalyst::Plugin::SmartURI' => '0.032',
153 'CatalystX::CRUD' => '0.37',
154 'Catalyst::Action::RenderView' => '0.07',
155 'Catalyst::Plugin::DebugCookie' => '0.999002',
156 'Catalyst::Plugin::Authentication' => '0.100091',
157 'CatalystX::Imports' => '0.03',
158 'Catalyst::Plugin::HashedCookies' => '1.03',
159 'Catalyst::Action::REST' => '0.67',
160 'CatalystX::CRUD' => '0.42',
161 'CatalystX::CRUD::Model::RDBO' => '0.20',
162 'Catalyst::View::Mason' => '0.17',
163 # Note these are not actually needed - they fail tests against the
164 # new version, but still work fine..
165 # 'Catalyst::ActionRole::ACL' => '0.05',
166 # 'Catalyst::Plugin::Session::Store::DBIC' => '0.11',
167 'Test::WWW::Mechanize::Catalyst' => '0.53', # Dep warnings unless upgraded.
169 check_conflicts(%conflicts);
171 # End of script, helper functions below.
173 sub darwin_check_no_resource_forks {
174 if ($^O eq 'darwin') {
175 my $osx_ver = `/usr/bin/sw_vers -productVersion`;
178 # TAR on 10.4 wants COPY_EXTENDED_ATTRIBUTES_DISABLE
179 # On 10.5 (Leopard) it wants COPYFILE_DISABLE
180 die("Oh, you got Ceiling Cat, snazzy. Please read the man page for tar or Google to find out if Apple renamed COPYFILE_DISABLE (it was COPY_EXTENDED_ATTRIBUTES_DISABLE originally) again and fix this Makefile.PL please?\n") if $osx_ver =~ /^10.8/;
181 my $attr = $osx_ver =~ /^10.(5|6|7)/ ? 'COPYFILE_DISABLE' : 'COPY_EXTENDED_ATTRIBUTES_DISABLE';
183 makemaker_args(dist => { PREOP => qq{\@if [ "\$\$$attr" != "true" ]; then}.
184 qq{ echo "You must set the ENV variable $attr to 'true',"; }.
185 ' echo "to avoid getting resource forks in your dist."; exit 255; fi' });