-use inc::Module::Install;
+use inc::Module::Install 0.91;
+use strict;
+use warnings;
+
+BEGIN {
+ if ($Module::Install::AUTHOR) {
+ require Module::Install::AuthorRequires;
+ require Module::Install::AuthorTests;
+ }
+}
name 'Catalyst-View-ContentNegotiation-XHTML';
all_from 'lib/Catalyst/View/ContentNegotiation/XHTML.pm';
requires 'Catalyst::View::TT';
requires 'HTTP::Negotiate';
requires 'MRO::Compat';
+requires 'MooseX::Types::Structured';
+requires 'MooseX::Types::Moose';
test_requires 'Catalyst::Action::RenderView';
test_requires 'Test::WWW::Mechanize::Catalyst';
test_requires 'Test::More';
-resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-View-TT-XHTML';
-
-if (-e 'inc/.author') {
- build_requires 'Test::Pod' => 1.14;
- build_requires 'Test::Pod::Coverage' => 1.04;
-
+if ($Module::Install::AUTHOR) {
+ author_requires 'Test::Pod' => 1.14;
+ author_requires 'Test::Pod::Coverage' => 1.04;
+ author_requires 'Test::Spelling' => 0.11;
if ($^O eq 'darwin') {
my $osx_ver = `/usr/bin/sw_vers -productVersion`;
chomp $osx_ver;
qq{ echo "You must set the ENV variable $attr to true,"; }.
' echo "to avoid getting resource forks in your dist."; exit 255; fi' });
}
+ author_tests 't/author';
}
+auto_install;
+resources repository => 'git://git.shadowcat.co.uk/catagits/Catalyst-View-ContentNegotiation-XHTML.git';
WriteAll();
+