Kill resource forks
[catagits/Catalyst-Runtime.git] / Makefile.PL
1 use inc::Module::Install 0.64;
2
3 perl_version '5.8.1';
4
5 name 'Catalyst-Runtime';
6 all_from 'lib/Catalyst/Runtime.pm';
7
8 requires 'perl'               => '5.8.1';
9 requires 'Carp';
10 requires 'Class::Accessor::Fast';
11 requires 'Class::Data::Inheritable';
12 requires 'Class::Inspector' => '1.06';
13 requires 'CGI::Simple::Cookie';
14 requires 'Data::Dump';
15 requires 'File::Modified';
16 requires 'HTML::Entities';
17 requires 'HTTP::Body'    => '0.9';
18 requires 'HTTP::Headers' => '1.64';
19 requires 'HTTP::Request';
20 requires 'HTTP::Response';
21 requires 'HTTP::Request::AsCGI' => '0.5';
22 requires 'LWP::UserAgent';
23 requires 'Module::Pluggable' => '3.01';
24 requires 'NEXT';
25 requires 'Path::Class' => '0.09';
26 requires 'Scalar::Util';
27 requires 'Text::SimpleTable' => '0.03';
28 requires 'Time::HiRes';
29 requires 'Tree::Simple' => '1.15';
30 requires 'Tree::Simple::Visitor::FindByPath';
31 requires 'URI' => '1.35';
32 requires 'Text::Balanced'; # core in 5.8.x but mentioned for completeness
33
34 if ($^O eq 'darwin') { 
35     makemaker_args(dist => { PREOP => 'if [ "$$COPY_EXTENDED_ATTRIBUTES_DISABLE" != "true" ]; then'.
36                                       ' echo "you must set the ENV variable COPY_EXTENDED_ATTRIBUTES_DISABLE to true,"; '.
37                                       ' echo "to avoid getting resource forks in your dist."; exit 255; fi' }); 
38 }
39
40 if (-e 'inc/.author') {
41   build_requires 'Test::Perl::Critic';
42 }
43
44 install_script glob('script/*.pl');
45 auto_install;
46 WriteAll;
47
48 print( '*' x 74, "\n" );
49 my $banner =
50   (qw/andyg chansen draven fordmason mst naughton sri jester
51       jrockway ningu nothingmuch LTjake/)[ int( rand(12) ) ]
52   . " is the greatest and gabb is "
53   . ( (localtime)[2] > 12 ? "drunk" : "hung over" )
54   . " again!";
55 print " $banner \n";
56 print( '*' x 74, "\n" );
57
58 print <<"EOF";
59
60  Important:
61
62     This library is for running Catalyst applications.
63
64     For development and use of catalyst.pl and myapp_create.pl, make sure
65     you also install the development tools package Catalyst::Devel.
66
67         perl -MCPANPLUS -e 'install Catalyst::Devel' # or
68         perl -MCPAN -e 'install Catalyst::Devel'
69
70     To get some commonly used plugins, as well as the TT view and DBIC 
71     model, install Task::Catalyst in the same way.
72
73  Have fun!
74 EOF