Mangle Makefile.PL for the new repos, and to force author stuffs
[catagits/Catalyst-View-ContentNegotiation-XHTML.git] / Makefile.PL
CommitLineData
66b806bd 1use inc::Module::Install 0.91;
2use strict;
3use warnings;
4
5BEGIN {
6 if ($Module::Install::AUTHOR) {
7 require Module::Install::AuthorRequires;
8 require Module::Install::AuthorTests;
9 }
10}
e2e866b4 11
12name 'Catalyst-View-ContentNegotiation-XHTML';
13all_from 'lib/Catalyst/View/ContentNegotiation/XHTML.pm';
14
15requires 'Catalyst::Runtime';
16requires 'Catalyst::View::TT';
17requires 'HTTP::Negotiate';
18requires 'MRO::Compat';
b064d5c4 19requires 'MooseX::Types::Structured';
20requires 'MooseX::Types::Moose';
e2e866b4 21
22test_requires 'Catalyst::Action::RenderView';
23test_requires 'Test::WWW::Mechanize::Catalyst';
24test_requires 'Test::More';
25
66b806bd 26if ($Module::Install::AUTHOR) {
27 author_requires 'Test::Pod' => 1.14;
28 author_requires 'Test::Pod::Coverage' => 1.04;
e2e866b4 29
30 if ($^O eq 'darwin') {
31 my $osx_ver = `/usr/bin/sw_vers -productVersion`;
32 chomp $osx_ver;
33
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';
37
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' });
41 }
66b806bd 42 author_tests 't/author';
e2e866b4 43}
d4d10db1 44auto_install;
66b806bd 45resources repository => 'git://git.shadowcat.co.uk/catagits/Catalyst-View-ContentNegotiation-XHTML.git';
d763a58d 46
e2e866b4 47WriteAll();
66b806bd 48