Up Module install dep, update timestamp
[catagits/Catalyst-Runtime.git] / Makefile.PL
CommitLineData
fad95a5b 1use inc::Module::Install 0.77;
022d1311 2
551846d1 3perl_version '5.008001';
0ba80bce 4
341d40d1 5name 'Catalyst-Runtime';
6all_from 'lib/Catalyst/Runtime.pm';
24b3262a 7
9ce44430 8requires 'Carp';
24b3262a 9requires 'Class::Accessor::Fast';
10requires 'Class::Data::Inheritable';
f63c03e4 11requires 'Class::Inspector' => '1.06';
fa32ac82 12requires 'CGI::Simple::Cookie';
f63c03e4 13requires 'Data::Dump';
24b3262a 14requires 'File::Modified';
15requires 'HTML::Entities';
3c402610 16requires 'HTTP::Body' => '1.04'; # makes uploadtmp work
1e514a51 17requires 'HTTP::Headers' => '1.64';
24b3262a 18requires 'HTTP::Request';
19requires 'HTTP::Response';
ee3c41e3 20requires 'HTTP::Request::AsCGI' => '0.5';
24b3262a 21requires 'LWP::UserAgent';
d8e0de58 22requires 'Module::Pluggable' => '3.01';
24b3262a 23requires 'NEXT';
1e514a51 24requires 'Path::Class' => '0.09';
24b3262a 25requires 'Scalar::Util';
1e514a51 26requires 'Text::SimpleTable' => '0.03';
24b3262a 27requires 'Time::HiRes';
1e514a51 28requires 'Tree::Simple' => '1.15';
24b3262a 29requires 'Tree::Simple::Visitor::FindByPath';
1e514a51 30requires 'URI' => '1.35';
ea0e58d9 31requires 'Text::Balanced'; # core in 5.8.x but mentioned for completeness
24b3262a 32
a9835938 33
ffa93d6b 34my @force_build_requires_if_author = qw(
35 Test::NoTabs
36 Test::Pod
37 Test::Pod::Coverage
38 Pod::Coverage
39);
40
41if ($Module::Install::AUTHOR) {
42
43 foreach my $module (@force_build_requires_if_author) {
44 build_requires $module;
45 }
46
47
48 if ($^O eq 'darwin') {
49 my $osx_ver = `/usr/bin/sw_vers -productVersion`;
50 chomp $osx_ver;
51
52# TAR on 10.4 wants COPY_EXTENDED_ATTRIBUTES_DISABLE
53# On 10.5 (Leopard) it wants COPYFILE_DISABLE
54 my $attr = $osx_ver eq '10.5' ? 'COPYFILE_DISABLE' : 'COPY_EXTENDED_ATTRIBUTES_DISABLE';
55
56 makemaker_args(dist => { PREOP => qq{\@if [ "\$\$$attr" != "true" ]; then}.
57 qq{ echo "You must set the ENV variable $attr to true,"; }.
58 ' echo "to avoid getting resource forks in your dist."; exit 255; fi' });
59 }
de925c79 60}
61
24b3262a 62install_script glob('script/*.pl');
b6395bce 63auto_install;
24b3262a 64WriteAll;
614f3ad6 65
ffa93d6b 66if ($Module::Install::AUTHOR) {
67
68# Strip out the author only build_requires from META.yml
69# Need to do this _after_ WriteAll else it looses track of them
70 Meta->{values}{build_requires} = [ grep {
71 my $ok = 1;
72 foreach my $module (@force_build_requires_if_author) {
73 if ($_->[0] =~ /$module/) {
74 $ok = 0;
75 last;
76 }
77 }
78 $ok;
79 } @{Meta->{values}{build_requires}} ];
80
81 Meta->{values}{resources} = [
82 [ 'MailingList', 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst' ],
83 [ 'IRC', 'irc://irc.perl.org/#catalyst' ],
84 [ 'license', 'http://dev.perl.org/licenses/' ],
85 [ 'homepage', 'http://dev.catalyst.perl.org/'],
86 [ 'repository', 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Runtime/' ],
87 ];
88
89 Meta->write;
90}
614f3ad6 91print <<"EOF";
92
93 Important:
a5b5152b 94
0187a79d 95 This library is for running Catalyst applications.
96
341d40d1 97 For development and use of catalyst.pl and myapp_create.pl, make sure
98 you also install the development tools package Catalyst::Devel.
f63c03e4 99
6bc14aef 100 perl -MCPANPLUS -e 'install Catalyst::Devel' # or
101 perl -MCPAN -e 'install Catalyst::Devel'
102
103 To get some commonly used plugins, as well as the TT view and DBIC
104 model, install Task::Catalyst in the same way.
a5b5152b 105
a5b5152b 106 Have fun!
614f3ad6 107EOF