Use more sensible module name in Synopsis.
[catagits/Catalyst-View-ContentNegotiation-XHTML.git] / Makefile.PL
1 use inc::Module::Install 0.91;
2 use strict;
3 use warnings;
4
5 BEGIN {
6     if ($Module::Install::AUTHOR) {
7         require Module::Install::AuthorRequires;
8         require Module::Install::AuthorTests;
9     }
10 }
11
12 name 'Catalyst-View-ContentNegotiation-XHTML';
13 all_from 'lib/Catalyst/View/ContentNegotiation/XHTML.pm';
14
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';
21
22 test_requires 'Catalyst::Action::RenderView';
23 test_requires 'Test::WWW::Mechanize::Catalyst';
24 test_requires 'Test::More';
25
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`;
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   }
42   author_tests 't/author';
43 }
44 auto_install;
45 resources repository => 'git://git.shadowcat.co.uk/catagits/Catalyst-View-ContentNegotiation-XHTML.git';
46
47 WriteAll();
48