Commit | Line | Data |
d4d10db1 |
1 | use inc::Module::Install 0.87; |
e2e866b4 |
2 | |
3 | name 'Catalyst-View-ContentNegotiation-XHTML'; |
4 | all_from 'lib/Catalyst/View/ContentNegotiation/XHTML.pm'; |
5 | |
6 | requires 'Catalyst::Runtime'; |
7 | requires 'Catalyst::View::TT'; |
8 | requires 'HTTP::Negotiate'; |
9 | requires 'MRO::Compat'; |
b064d5c4 |
10 | requires 'MooseX::Types::Structured'; |
11 | requires 'MooseX::Types::Moose'; |
e2e866b4 |
12 | |
13 | test_requires 'Catalyst::Action::RenderView'; |
14 | test_requires 'Test::WWW::Mechanize::Catalyst'; |
15 | test_requires 'Test::More'; |
16 | |
17 | resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-View-TT-XHTML'; |
18 | |
19 | if (-e 'inc/.author') { |
20 | build_requires 'Test::Pod' => 1.14; |
21 | build_requires 'Test::Pod::Coverage' => 1.04; |
22 | |
23 | if ($^O eq 'darwin') { |
24 | my $osx_ver = `/usr/bin/sw_vers -productVersion`; |
25 | chomp $osx_ver; |
26 | |
27 | # TAR on 10.4 wants COPY_EXTENDED_ATTRIBUTES_DISABLE |
28 | # On 10.5 (Leopard) it wants COPYFILE_DISABLE |
29 | my $attr = $osx_ver eq '10.5' ? 'COPYFILE_DISABLE' : 'COPY_EXTENDED_ATTRIBUTES_DISABLE'; |
30 | |
31 | makemaker_args(dist => { PREOP => qq{\@if [ "\$\$$attr" != "true" ]; then}. |
32 | qq{ echo "You must set the ENV variable $attr to true,"; }. |
33 | ' echo "to avoid getting resource forks in your dist."; exit 255; fi' }); |
34 | } |
35 | } |
d4d10db1 |
36 | auto_install; |
d763a58d |
37 | resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-View-ContentNegotiation-XHTML/1.000/trunk/'; |
38 | |
e2e866b4 |
39 | WriteAll(); |