Bump version to match rest of distribution
[catagits/Catalyst-View-ContentNegotiation-XHTML.git] / Makefile.PL
index 9c91ee9..fb54d0d 100644 (file)
@@ -1,4 +1,13 @@
-use inc::Module::Install 0.87;
+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';
@@ -14,12 +23,10 @@ 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;
@@ -32,6 +39,10 @@ if (-e 'inc/.author') {
                                         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();
+