1 use inc::Module::Install 0.91;
6 if ($Module::Install::AUTHOR) {
7 require Module::Install::AuthorRequires;
8 require Module::Install::AuthorTests;
12 name 'Catalyst-View-ContentNegotiation-XHTML';
13 all_from 'lib/Catalyst/View/ContentNegotiation/XHTML.pm';
15 requires 'Catalyst::Runtime';
16 requires 'Catalyst::View::TT';
17 requires 'HTTP::Negotiate';
18 requires 'MRO::Compat';
19 requires 'MooseX::Types::Structured';
20 requires 'MooseX::Types::Moose';
22 test_requires 'Catalyst::Action::RenderView';
23 test_requires 'Test::WWW::Mechanize::Catalyst';
24 test_requires 'Test::More';
26 if ($Module::Install::AUTHOR) {
27 author_requires 'Test::Pod' => 1.14;
28 author_requires 'Test::Pod::Coverage' => 1.04;
29 author_requires 'Test::Spelling' => 0.11;
30 if ($^O eq 'darwin') {
31 my $osx_ver = `/usr/bin/sw_vers -productVersion`;
34 # TAR on 10.4 wants COPY_EXTENDED_ATTRIBUTES_DISABLE
35 # On 10.5 (Leopard) it wants COPYFILE_DISABLE
36 my $attr = $osx_ver eq '10.5' ? 'COPYFILE_DISABLE' : 'COPY_EXTENDED_ATTRIBUTES_DISABLE';
38 makemaker_args(dist => { PREOP => qq{\@if [ "\$\$$attr" != "true" ]; then}.
39 qq{ echo "You must set the ENV variable $attr to true,"; }.
40 ' echo "to avoid getting resource forks in your dist."; exit 255; fi' });
42 author_tests 't/author';
45 resources repository => 'git://git.shadowcat.co.uk/catagits/Catalyst-View-ContentNegotiation-XHTML.git';