Top level rename.
[catagits/Catalyst-View-ContentNegotiation-XHTML.git] / Makefile.PL
1 use inc::Module::Install;
2
3 name 'Catalyst-View-ContentNegotiation-XHTML';
4 all_from 'lib/Catalyst/View/ContentNegotiation/XHTML.pm';
5
6 requires 'Catalyst::Runtime';
7 requires 'Catalyst::View::TT';
8 requires 'HTTP::Negotiate';
9 requires 'MRO::Compat';
10
11 test_requires 'Catalyst::Action::RenderView';
12 test_requires 'Test::WWW::Mechanize::Catalyst';
13 test_requires 'Test::More';
14
15 resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-View-TT-XHTML';
16
17 if (-e 'inc/.author') {
18   build_requires 'Test::Pod' => 1.14;
19   build_requires 'Test::Pod::Coverage' => 1.04;
20
21   if ($^O eq 'darwin') {
22       my $osx_ver = `/usr/bin/sw_vers -productVersion`;
23       chomp $osx_ver;
24
25       # TAR on 10.4 wants COPY_EXTENDED_ATTRIBUTES_DISABLE
26       # On 10.5 (Leopard) it wants COPYFILE_DISABLE
27       my $attr = $osx_ver eq '10.5' ? 'COPYFILE_DISABLE' : 'COPY_EXTENDED_ATTRIBUTES_DISABLE';
28
29       makemaker_args(dist => { PREOP => qq{\@if [ "\$\$$attr" != "true" ]; then}.
30                                         qq{ echo "You must set the ENV variable $attr to true,"; }.
31                                         ' echo "to avoid getting resource forks in your dist."; exit 255; fi' });
32   }
33 }
34
35 WriteAll();