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 no warnings 'redefine';
8 use Module::Install::AuthorRequires;
9 use Module::Install::CheckConflicts;
10 use Module::Install::AuthorTests;
13 perl_version '5.008004';
15 name 'Catalyst-Runtime';
16 all_from 'lib/Catalyst/Runtime.pm';
18 requires 'List::MoreUtils';
19 requires 'namespace::autoclean' => '0.09';
20 requires 'namespace::clean';
21 requires 'namespace::autoclean';
22 requires 'B::Hooks::EndOfScope' => '0.08';
23 requires 'MooseX::Emulate::Class::Accessor::Fast' => '0.00903';
24 requires 'Class::MOP' => '0.95';
25 requires 'Moose' => '0.93';
26 requires 'MooseX::MethodAttributes::Inheritable' => '0.17';
27 requires 'MooseX::Role::WithOverloading' => '0.03';
29 requires 'Class::C3::Adopt::NEXT' => '0.07';
30 requires 'CGI::Simple::Cookie';
31 requires 'Data::Dump';
32 requires 'HTML::Entities';
33 requires 'HTTP::Body' => '1.04'; # makes uploadtmp work
34 requires 'HTTP::Headers' => '1.64';
35 requires 'HTTP::Request' => '5.814';
36 requires 'HTTP::Response' => '5.813';
37 requires 'HTTP::Request::AsCGI' => '1.0';
38 requires 'LWP::UserAgent';
39 requires 'Module::Pluggable' => '3.9';
40 requires 'Path::Class' => '0.09';
41 requires 'Scalar::Util';
42 requires 'Sub::Exporter';
43 requires 'Text::SimpleTable' => '0.03';
44 requires 'Time::HiRes';
45 requires 'Tree::Simple' => '1.15';
46 requires 'Tree::Simple::Visitor::FindByPath';
47 requires 'URI' => '1.35';
48 requires 'Task::Weaken';
49 requires 'Text::Balanced'; # core in 5.8.x but mentioned for completeness
50 requires 'MRO::Compat';
51 requires 'MooseX::Getopt' => '0.25';
52 requires 'MooseX::Types';
53 requires 'MooseX::Types::Common::Numeric';
54 requires 'String::RewritePrefix' => '0.004'; # Catalyst::Utils::resolve_namespace
56 test_requires 'Class::Data::Inheritable';
57 test_requires 'Test::Exception';
58 test_requires 'Test::More' => '0.88';
60 # aggregate tests if AGGREGATE_TESTS is set and a recent Test::Aggregate and a Test::Simple it works with is available
61 if ($ENV{AGGREGATE_TESTS} && can_use('Test::Simple', '0.88') && can_use('Test::Aggregate', '0.35_05')) {
62 author_requires('Test::Aggregate', '0.35_05');
63 author_requires('Test::Simple', '0.88');
67 grep { $_ ne 't/aggregate.t' }
68 map { glob } qw[t/*.t t/aggregate/*.t];
70 author_requires 'CatalystX::LeakChecker', '0.05'; # Skipped if this isn't installed
71 author_requires 'File::Copy::Recursive'; # For http server test
73 author_tests 't/author';
74 author_requires(map {; $_ => 0 } qw(
81 if ($Module::Install::AUTHOR) {
82 darwin_check_no_resource_forks();
86 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst',
87 'IRC' => 'irc://irc.perl.org/#catalyst',
88 'license', => 'http://dev.perl.org/licenses/',
89 'homepage', => 'http://dev.catalyst.perl.org/',
90 'repository', => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Runtime/',
93 install_script glob('script/*.pl');
101 This library is for running Catalyst applications.
103 For development and use of catalyst.pl and myapp_create.pl, make sure
104 you also install the development tools package Catalyst::Devel.
106 perl -MCPANPLUS -e 'install Catalyst::Devel' # or
107 perl -MCPAN -e 'install Catalyst::Devel'
109 To get some commonly used plugins, as well as the TT view and DBIC
110 model, install Task::Catalyst in the same way.
115 # NOTE - This is the version number of the _incompatible_ code,
116 # not the version number of the fixed version.
118 'Catalyst::Plugin::SubRequest' => '0.14',
119 'Catalyst::Model::Akismet' => '0.02',
120 'Catalyst::Component::ACCEPT_CONTEXT' => '0.06',
121 'Catalyst::Plugin::ENV' => '9999', # This plugin is just stupid, full stop
122 # should have been a core fix.
123 'Catalyst::Plugin::Unicode::Encoding' => '0.2',
124 'Catalyst::Authentication::Credential::HTTP' => '1.009',
125 'Catalyst::Plugin::Session::Store::File' => '0.16',
126 'Catalyst::Plugin::Session' => '0.21',
127 'Catalyst::Plugin::Session::State::Cookie' => '0.10',
128 'Catalyst::Plugin::Session::Store::FastMmap' => '0.09',
129 'Catalyst::Controller::AllowDisable' => '0.03',
130 'Reaction' => '0.001999',
131 'Catalyst::Plugin::Upload::Image::Magick' => '0.03',
132 'Catalyst::Plugin::ConfigLoader' => '0.22', # Older versions work but
133 # throw Data::Visitor warns
134 'Catalyst::Devel' => '1.19',
135 'Catalyst::Plugin::SmartURI' => '0.032',
136 'CatalystX::CRUD' => '0.37',
137 'Catalyst::Action::RenderView' => '0.07',
138 'Catalyst::Plugin::DebugCookie' => '0.999002',
139 'Catalyst::Plugin::Authentication' => '0.100091',
140 'CatalystX::Imports' => '0.03',
141 'Catalyst::Plugin::HashedCookies' => '1.03',
142 'Catalyst::Action::REST' => '0.67',
143 'CatalystX::CRUD' => '0.42',
144 'CatalystX::CRUD::Model::RDBO' => '0.20',
145 'Catalyst::View::Mason' => '0.17',
147 check_conflicts(%conflicts);
149 # End of script, helper functions below.
151 sub darwin_check_no_resource_forks {
152 if ($^O eq 'darwin') {
153 my $osx_ver = `/usr/bin/sw_vers -productVersion`;
156 # TAR on 10.4 wants COPY_EXTENDED_ATTRIBUTES_DISABLE
157 # On 10.5 (Leopard) it wants COPYFILE_DISABLE
158 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.7/;
159 my $attr = $osx_ver =~ /^10.(5|6)/ ? 'COPYFILE_DISABLE' : 'COPY_EXTENDED_ATTRIBUTES_DISABLE';
161 makemaker_args(dist => { PREOP => qq{\@if [ "\$\$$attr" != "true" ]; then}.
162 qq{ echo "You must set the ENV variable $attr to 'true',"; }.
163 ' echo "to avoid getting resource forks in your dist."; exit 255; fi' });