Remove dep on B::H::EOS, for RT#76437
[catagits/Catalyst-Runtime.git] / Makefile.PL
CommitLineData
9a2055d7 1use strict;
2use warnings;
bf32c83f 3use inc::Module::Install 0.91;
abc0ac29 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
6# cryptic.
7use Module::Install::AuthorRequires;
8use Module::Install::CheckConflicts;
9use Module::Install::AuthorTests;
57746b80 10use Module::Install::Authority;
212ba4ee 11
0f6be50c 12perl_version '5.008003';
0ba80bce 13
341d40d1 14name 'Catalyst-Runtime';
57746b80 15author 'Sebastian Riedel <sri@cpan.org>';
16authority 'MSTROUT';
341d40d1 17all_from 'lib/Catalyst/Runtime.pm';
24b3262a 18
196f06d1 19requires 'List::MoreUtils';
29d32d06 20requires 'namespace::autoclean' => '0.09';
be21bc19 21requires 'namespace::clean' => '0.23';
29d32d06 22requires 'MooseX::Emulate::Class::Accessor::Fast' => '0.00903';
f53c5c12 23requires 'Class::Load' => '0.12';
6e0bebdc 24requires 'Class::MOP' => '0.95';
6640e166 25requires 'Data::OptList';
135e449a 26requires 'Moose' => '1.03';
9c74923d 27requires 'MooseX::MethodAttributes::Inheritable' => '0.24';
718e6314 28requires 'MooseX::Role::WithOverloading' => '0.09';
532f0516 29requires 'MooseX::Types::LoadableClass' => '0.003';
9ce44430 30requires 'Carp';
269408a4 31requires 'Class::C3::Adopt::NEXT' => '0.07';
0319ec68 32requires 'CGI::Simple::Cookie' => '1.109';
f63c03e4 33requires 'Data::Dump';
62b6b631 34requires 'Data::OptList';
24b3262a 35requires 'HTML::Entities';
9c74923d 36requires 'HTML::HeadParser';
671123ba 37requires 'HTTP::Body' => '1.06'; # ->cleanup(1)
1e514a51 38requires 'HTTP::Headers' => '1.64';
582cd214 39requires 'HTTP::Request' => '5.814';
40requires 'HTTP::Response' => '5.813';
6cc3be54 41requires 'HTTP::Request::AsCGI' => '1.0';
24b3262a 42requires 'LWP::UserAgent';
a134d05c 43requires 'Module::Pluggable' => '3.9';
1e514a51 44requires 'Path::Class' => '0.09';
24b3262a 45requires 'Scalar::Util';
64edd785 46requires 'Sub::Exporter';
1e514a51 47requires 'Text::SimpleTable' => '0.03';
24b3262a 48requires 'Time::HiRes';
1e514a51 49requires 'Tree::Simple' => '1.15';
24b3262a 50requires 'Tree::Simple::Visitor::FindByPath';
3640641e 51requires 'Try::Tiny';
1e514a51 52requires 'URI' => '1.35';
5ad8be8c 53requires 'Task::Weaken';
ea0e58d9 54requires 'Text::Balanced'; # core in 5.8.x but mentioned for completeness
6f1f968a 55requires 'MRO::Compat';
9c74923d 56requires 'MooseX::Getopt' => '0.30';
bd60aaeb 57requires 'MooseX::Types';
883c37ef 58requires 'MooseX::Types::Common::Numeric';
17b3d800 59requires 'String::RewritePrefix' => '0.004'; # Catalyst::Utils::resolve_namespace
fb99321f 60requires 'Plack' => '0.9974'; # IIS6 fix middleware
6db8aa1d 61requires 'Plack::Middleware::ReverseProxy' => '0.04';
555c9ff7 62requires 'Plack::Test::ExternalServer';
65b708a6 63
1a667b7c 64test_requires 'Class::Data::Inheritable';
cdc96667 65test_requires 'Test::Exception';
36c67dc1 66test_requires 'Test::More' => '0.88';
df1fa879 67test_requires 'Data::Dump';
da054c21 68test_requires 'HTTP::Request::Common';
1a667b7c 69
05b3a152 70# aggregate tests if AGGREGATE_TESTS is set and a recent Test::Aggregate and a Test::Simple it works with is available
e8e8895a 71if ($ENV{AGGREGATE_TESTS} && can_use('Test::Simple', '0.88') && can_use('Test::Aggregate', '0.364')) {
72 author_requires('Test::Aggregate', '0.364');
a85294b6 73 author_requires('Test::Simple', '0.88');
e8e8895a 74 open my $fh, '>', '.aggregating';
e262f38e 75}
76else {
e8e8895a 77 unlink '.aggregating';
a06394ac 78 tests 't/*.t t/aggregate/*.t';
bf6d41be 79}
a06394ac 80
9c74923d 81author_requires 'CatalystX::LeakChecker', '0.05';
3c9a702f 82author_requires 'File::Copy::Recursive'; # For http server test
7cd1e5e0 83author_requires 'Catalyst::Devel', '1.0'; # For http server test
a7536db7 84author_requires 'Catalyst::Engine::PSGI';
1a3dd976 85author_requires 'Test::Without::Module';
f0bb153b 86author_requires 'Starman';
87author_requires 'MooseX::Daemonize';
e262f38e 88
cabf5caa 89author_tests 't/author';
64e88417 90author_requires(map {; $_ => 0 } qw(
0a0c74aa 91 Test::NoTabs
92 Test::Pod
93 Test::Pod::Coverage
576de106 94 Test::Spelling
2a2c99c6 95 Pod::Coverage::TrustPod
64e88417 96));
621f279b 97
98if ($Module::Install::AUTHOR) {
c102399c 99 darwin_check_no_resource_forks();
de925c79 100}
101
697a1b1a 102resources(
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/',
82e80cb1 107 'repository', => 'git://git.shadowcat.co.uk/catagits/Catalyst-Runtime.git',
697a1b1a 108);
109
24b3262a 110install_script glob('script/*.pl');
b6395bce 111auto_install;
24b3262a 112WriteAll;
614f3ad6 113
614f3ad6 114print <<"EOF";
115
116 Important:
a5b5152b 117
0187a79d 118 This library is for running Catalyst applications.
119
341d40d1 120 For development and use of catalyst.pl and myapp_create.pl, make sure
121 you also install the development tools package Catalyst::Devel.
f63c03e4 122
6bc14aef 123 perl -MCPANPLUS -e 'install Catalyst::Devel' # or
ec0939b9 124 perl -MCPAN -e 'install Catalyst::Devel' # or
125 cpanm Catalyst::Devel
6bc14aef 126
f4c1afd4 127 To get some commonly used plugins, as well as the TT view and DBIC
6bc14aef 128 model, install Task::Catalyst in the same way.
a5b5152b 129
a5b5152b 130 Have fun!
614f3ad6 131EOF
64d96919 132
d31581c6 133# NOTE - This is the version number of the _incompatible_ code,
134# not the version number of the fixed version.
135my %conflicts = (
69db240e 136 'Catalyst::Plugin::SubRequest' => '0.14',
68c660b5 137 'Catalyst::Model::Akismet' => '0.02',
33632a44 138 'Catalyst::Component::ACCEPT_CONTEXT' => '0.06',
d75b106e 139 'Catalyst::Plugin::ENV' => '9999', # This plugin is just stupid, full stop
140 # should have been a core fix.
71b46798 141 'Catalyst::Plugin::Unicode::Encoding' => '0.2',
d877f868 142 'Catalyst::Plugin::Authentication' => '0.10010', # _config accessor in ::Credential::Password
c49128b1 143 'Catalyst::Authentication::Credential::HTTP' => '1.009',
3d387aea 144 'Catalyst::Plugin::Session::Store::File' => '0.16',
145 'Catalyst::Plugin::Session' => '0.21',
146 'Catalyst::Plugin::Session::State::Cookie' => '0.10',
3db3a59f 147 'Catalyst::Plugin::Session::Store::FastMmap' => '0.09',
3d387aea 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
d31581c6 152 # throw Data::Visitor warns
3d387aea 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',
b9f72120 169 'Test::WWW::Mechanize::Catalyst' => '0.53', # Dep warnings unless upgraded.
d31581c6 170);
171check_conflicts(%conflicts);
172
c102399c 173# End of script, helper functions below.
174
175sub darwin_check_no_resource_forks {
176 if ($^O eq 'darwin') {
177 my $osx_ver = `/usr/bin/sw_vers -productVersion`;
178 chomp $osx_ver;
179
180 # TAR on 10.4 wants COPY_EXTENDED_ATTRIBUTES_DISABLE
181 # On 10.5 (Leopard) it wants COPYFILE_DISABLE
d109165a 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';
c102399c 184
185 makemaker_args(dist => { PREOP => qq{\@if [ "\$\$$attr" != "true" ]; then}.
2373117d 186 qq{ echo "You must set the ENV variable $attr to 'true',"; }.
c102399c 187 ' echo "to avoid getting resource forks in your dist."; exit 255; fi' });
64d96919 188 }
64d96919 189}