make Makefile.PL detect author-ness and require Test::Perl::Critic
Matt S Trout [Mon, 13 Aug 2007 13:02:20 +0000 (13:02 +0000)]
Makefile.PL

index 5d25050..e9b18eb 100644 (file)
@@ -31,6 +31,10 @@ requires 'Tree::Simple::Visitor::FindByPath';
 requires 'URI' => '1.35';
 requires 'Text::Balanced'; # core in 5.8.x but mentioned for completeness
 
+if (-e 'inc/.author') {
+  build_requires 'Test::Perl::Critic';
+}
+
 install_script glob('script/*.pl');
 auto_install;
 WriteAll;