Reformat docs, couple of other misc dinks
[catagits/Catalyst-View-ContentNegotiation-XHTML.git] / Makefile.PL
CommitLineData
e2e866b4 1use inc::Module::Install;
2
3name 'Catalyst-View-ContentNegotiation-XHTML';
4all_from 'lib/Catalyst/View/ContentNegotiation/XHTML.pm';
5
6requires 'Catalyst::Runtime';
7requires 'Catalyst::View::TT';
8requires 'HTTP::Negotiate';
9requires 'MRO::Compat';
10
11test_requires 'Catalyst::Action::RenderView';
12test_requires 'Test::WWW::Mechanize::Catalyst';
13test_requires 'Test::More';
14
15resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-View-TT-XHTML';
16
17if (-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
35WriteAll();