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 if ($Module::Install::AUTHOR) { # We could just use them, but telling
8 my @fail; # people the set of things they need nicer
9 foreach my $module (qw/
10 Module::Install::AuthorRequires
11 Module::Install::CheckConflicts
12 Module::Install::AuthorTests
13 Module::Install::Authority
16 unless eval qq{require $module; 1;};
18 die("Module::Install extensions failed, not installed? \n"
19 . join("\n", map { " $_" } @fail) . "\n") if @fail;
22 perl_version '5.008003';
24 name 'Catalyst-Runtime';
25 author 'Sebastian Riedel <sri@cpan.org>';
27 all_from 'lib/Catalyst/Runtime.pm';
29 requires 'Bread::Board';
30 requires 'List::MoreUtils';
31 requires 'namespace::autoclean' => '0.09';
32 requires 'namespace::clean' => '0.23';
33 requires 'MooseX::Emulate::Class::Accessor::Fast' => '0.00903';
34 requires 'Class::Load' => '0.12';
35 requires 'Class::MOP' => '0.95';
36 requires 'Data::OptList';
37 requires 'Moose' => '1.03';
38 requires 'MooseX::MethodAttributes::Inheritable' => '0.24';
39 requires 'MooseX::Role::WithOverloading' => '0.09';
40 requires 'MooseX::Types::LoadableClass' => '0.003';
42 requires 'Class::C3::Adopt::NEXT' => '0.07';
43 requires 'CGI::Simple::Cookie' => '1.109';
44 requires 'Data::Dump';
45 requires 'Data::OptList';
46 requires 'HTML::Entities';
47 requires 'HTML::HeadParser';
48 requires 'HTTP::Body' => '1.06'; # ->cleanup(1)
49 requires 'HTTP::Headers' => '1.64';
50 requires 'HTTP::Request' => '5.814';
51 requires 'HTTP::Response' => '5.813';
52 requires 'HTTP::Request::AsCGI' => '1.0';
53 requires 'LWP::UserAgent';
54 requires 'Module::Pluggable' => '3.9';
55 requires 'Path::Class' => '0.09';
56 requires 'Scalar::Util';
57 requires 'Sub::Exporter';
58 requires 'Text::SimpleTable' => '0.03';
59 requires 'Time::HiRes';
60 requires 'Tree::Simple' => '1.15';
61 requires 'Tree::Simple::Visitor::FindByPath';
64 requires 'URI' => '1.35';
65 requires 'Task::Weaken';
66 requires 'Text::Balanced'; # core in 5.8.x but mentioned for completeness
67 requires 'MRO::Compat';
68 requires 'MooseX::Getopt' => '0.30';
69 requires 'MooseX::Types';
70 requires 'MooseX::Types::Common::Numeric';
71 requires 'MooseX::Types::LoadableClass';
72 requires 'String::RewritePrefix' => '0.004'; # Catalyst::Utils::resolve_namespace
73 requires 'Plack' => '0.9991'; # IIS6+7 fix middleware
74 requires 'Plack::Middleware::ReverseProxy' => '0.04';
75 requires 'Plack::Test::ExternalServer';
77 test_requires 'Class::Data::Inheritable';
78 test_requires 'Test::Exception';
79 test_requires 'Test::More' => '0.88';
80 test_requires 'Data::Dump';
81 test_requires 'HTTP::Request::Common';
83 # aggregate tests if AGGREGATE_TESTS is set and a recent Test::Aggregate and a Test::Simple it works with is available
85 if ($ENV{AGGREGATE_TESTS} && can_use('Test::Simple', '0.88') && can_use('Test::Aggregate', '0.364')) {
86 push(@author_requires, 'Test::Aggregate', '0.364');
87 push(@author_requires, 'Test::Simple', '0.88');
88 open my $fh, '>', '.aggregating';
91 unlink '.aggregating';
92 tests 't/*.t t/aggregate/*.t';
95 push(@author_requires, 'CatalystX::LeakChecker', '0.05');
96 push(@author_requires, 'Catalyst::Devel', '1.0'); # For http server test
98 author_tests('t/author');
102 File::Copy::Recursive
103 Catalyst::Engine::PSGI
104 Test::Without::Module
111 Pod::Coverage::TrustPod
114 if ($Module::Install::AUTHOR) {
115 darwin_check_no_resource_forks();
119 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst',
120 'IRC' => 'irc://irc.perl.org/#catalyst',
121 'license', => 'http://dev.perl.org/licenses/',
122 'homepage', => 'http://dev.catalyst.perl.org/',
123 'repository', => 'git://git.shadowcat.co.uk/catagits/Catalyst-Runtime.git',
126 install_script glob('script/*.pl');
134 This library is for running Catalyst applications.
136 For development and use of catalyst.pl and myapp_create.pl, make sure
137 you also install the development tools package Catalyst::Devel.
139 perl -MCPANPLUS -e 'install Catalyst::Devel' # or
140 perl -MCPAN -e 'install Catalyst::Devel' # or
141 cpanm Catalyst::Devel
143 To get some commonly used plugins, as well as the TT view and DBIC
144 model, install Task::Catalyst in the same way.
149 # NOTE - This is the version number of the _incompatible_ code,
150 # not the version number of the fixed version.
152 'Catalyst::Plugin::SubRequest' => '0.14',
153 'Catalyst::Model::Akismet' => '0.02',
154 'Catalyst::Component::ACCEPT_CONTEXT' => '0.06',
155 'Catalyst::Plugin::ENV' => '9999', # This plugin is just stupid, full stop
156 # should have been a core fix.
157 'Catalyst::Plugin::Unicode::Encoding' => '0.2',
158 'Catalyst::Plugin::Authentication' => '0.10010', # _config accessor in ::Credential::Password
159 'Catalyst::Authentication::Credential::HTTP' => '1.009',
160 'Catalyst::Plugin::Session::Store::File' => '0.16',
161 'Catalyst::Plugin::Session' => '0.21',
162 'Catalyst::Plugin::Session::State::Cookie' => '0.10',
163 'Catalyst::Plugin::Session::Store::FastMmap' => '0.09',
164 'Catalyst::Controller::AllowDisable' => '0.03',
165 'Reaction' => '0.001999',
166 'Catalyst::Plugin::Upload::Image::Magick' => '0.03',
167 'Catalyst::Plugin::ConfigLoader' => '0.22', # Older versions work but
168 # throw Data::Visitor warns
169 'Catalyst::Devel' => '1.19',
170 'Catalyst::Plugin::SmartURI' => '0.032',
171 'CatalystX::CRUD' => '0.37',
172 'Catalyst::Action::RenderView' => '0.07',
173 'Catalyst::Plugin::DebugCookie' => '0.999002',
174 'Catalyst::Plugin::Authentication' => '0.100091',
175 'CatalystX::Imports' => '0.03',
176 'Catalyst::Plugin::HashedCookies' => '1.03',
177 'Catalyst::Action::REST' => '0.67',
178 'CatalystX::CRUD' => '0.42',
179 'CatalystX::CRUD::Model::RDBO' => '0.20',
180 'Catalyst::View::Mason' => '0.17',
181 # Note these are not actually needed - they fail tests against the
182 # new version, but still work fine..
183 # 'Catalyst::ActionRole::ACL' => '0.05',
184 # 'Catalyst::Plugin::Session::Store::DBIC' => '0.11',
185 'Test::WWW::Mechanize::Catalyst' => '0.53', # Dep warnings unless upgraded.
187 check_conflicts(%conflicts);
189 # End of script, helper functions below.
191 sub darwin_check_no_resource_forks {
192 if ($^O eq 'darwin') {
193 my $osx_ver = `/usr/bin/sw_vers -productVersion`;
196 # TAR on 10.4 wants COPY_EXTENDED_ATTRIBUTES_DISABLE
197 # On 10.5 (Leopard) it wants COPYFILE_DISABLE
198 my $attr = $osx_ver =~ /^10.(5|6|7|8)/ ? 'COPYFILE_DISABLE' : 'COPY_EXTENDED_ATTRIBUTES_DISABLE';
200 makemaker_args(dist => { PREOP => qq{\@if [ "\$\$$attr" != "true" ]; then}.
201 qq{ echo "You must set the ENV variable $attr to 'true',"; }.
202 ' echo "to avoid getting resource forks in your dist."; exit 255; fi' });