Commit | Line | Data |
66b806bd |
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 | } |
e2e866b4 |
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'; |
b064d5c4 |
19 | requires 'MooseX::Types::Structured'; |
20 | requires 'MooseX::Types::Moose'; |
e2e866b4 |
21 | |
22 | test_requires 'Catalyst::Action::RenderView'; |
23 | test_requires 'Test::WWW::Mechanize::Catalyst'; |
24 | test_requires 'Test::More'; |
25 | |
66b806bd |
26 | if ($Module::Install::AUTHOR) { |
27 | author_requires 'Test::Pod' => 1.14; |
28 | author_requires 'Test::Pod::Coverage' => 1.04; |
f5b92c91 |
29 | author_requires 'Test::Spelling' => 0.11; |
e2e866b4 |
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 |
44 | auto_install; |
66b806bd |
45 | resources repository => 'git://git.shadowcat.co.uk/catagits/Catalyst-View-ContentNegotiation-XHTML.git'; |
d763a58d |
46 | |
e2e866b4 |
47 | WriteAll(); |
66b806bd |
48 | |