X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=bf4ab7f901e7b8dca788554a3a77fe077cc73b1e;hb=4ae6f1089260213be83a06fc37b0d2bdc5c8ecd7;hp=d913cab14ffa4f36a6d68b2b6acddae634a9ba1e;hpb=5f4bcf51b379716a486539293dcdf6859204d556;p=catagits%2FCatalyst-Runtime.git diff --git a/Makefile.PL b/Makefile.PL index d913cab..bf4ab7f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,11 +1,13 @@ use inc::Module::Install 0.64; -use 5.008001; +use 5.008001; perl_version '5.8.1'; name 'Catalyst-Runtime'; all_from 'lib/Catalyst/Runtime.pm'; +requires 'MooseX::Emulate::Class::Accessor::Fast'; + requires 'perl' => '5.8.1'; requires 'Carp'; requires 'Class::Accessor::Fast'; @@ -38,10 +40,17 @@ if (-e 'inc/.author') { build_requires 'Test::Pod' => 1.14; build_requires 'Test::Pod::Coverage' => 1.04; - if ($^O eq 'darwin') { - makemaker_args(dist => { PREOP => 'if [ "$$COPY_EXTENDED_ATTRIBUTES_DISABLE" != "true" ]; then'. - ' echo "you must set the ENV variable COPY_EXTENDED_ATTRIBUTES_DISABLE to true,"; '. - ' echo "to avoid getting resource forks in your dist."; exit 255; fi' }); + if ($^O eq 'darwin') { + my $osx_ver = `/usr/bin/sw_vers -productVersion`; + chomp $osx_ver; + + # TAR on 10.4 wants COPY_EXTENDED_ATTRIBUTES_DISABLE + # On 10.5 (Leopard) it wants COPYFILE_DISABLE + my $attr = $osx_ver eq '10.5' ? 'COPYFILE_DISABLE' : 'COPY_EXTENDED_ATTRIBUTES_DISABLE'; + + makemaker_args(dist => { PREOP => qq{\@if [ "\$\$$attr" != "true" ]; then}. + qq{ echo "You must set the ENV variable $attr to true,"; }. + ' echo "to avoid getting resource forks in your dist."; exit 255; fi' }); } } @@ -61,7 +70,7 @@ print <<"EOF"; perl -MCPANPLUS -e 'install Catalyst::Devel' # or perl -MCPAN -e 'install Catalyst::Devel' - To get some commonly used plugins, as well as the TT view and DBIC + To get some commonly used plugins, as well as the TT view and DBIC model, install Task::Catalyst in the same way. Have fun!