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