]> git.decadent.org.uk Git - maypole.git/blobdiff - Makefile.PL
Added support for extra_headers (se Maypole pod)
[maypole.git] / Makefile.PL
index 642dbf63b9ea936187a297a1002feca50b16852e..c623c120c65fdcb1ae489f80bdc3fc5ed3b82132 100644 (file)
@@ -15,12 +15,15 @@ WriteMakefile(
         Class::DBI::FromCGI              => 0.94,
         Class::DBI::Loader::Relationship => 0,
         Class::DBI                       => 0.96,
+        Class::DBI::SQLite               => 0,
         CGI::Untaint                     => 0,
         UNIVERSAL::moniker               => 0,
         UNIVERSAL::require               => 0,
+        URI::QueryParam                  => 0,
         CGI::Simple                      => 0,
         Template                         => 0,
         Template::Plugin::Class          => 0,
+        Test::MockModule                 => 0,
     },    # e.g., Module::Name => 1.1
     (
         $] >= 5.005
@@ -33,6 +36,13 @@ WriteMakefile(
     ),
 );
 
+sub has_module {
+    my ($module, $version) = @_;
+    (my $file = "$module.pm") =~ s/::/\//g;
+    eval {require $file} or return;
+    return ($module->VERSION || 0) >= $version;
+}
+
 if ( !-e "t/beerdb.db" ) {
     print "Making SQLite DB\n";
     eval { require DBD::SQLite };