Tests require recent version of File::Spec::Functions
[mafia.git] / Makefile.PL
index 2ff875dee79985cd317e1b86ebf13be235c42306..f2bca8ced1b6d81f4b771ab26e11619ebf6d7bb5 100644 (file)
@@ -1,18 +1,26 @@
-use 5.014000;
+use 5.010001;
 use ExtUtils::MakeMaker;
 
+my $has_tr = $ExtUtils::MakeMaker::VERSION >= 6.64;
+
 WriteMakefile(
        NAME              => 'Mafia',
        VERSION_FROM      => 'lib/Mafia.pm',
        ABSTRACT_FROM     => 'lib/Mafia.pm',
        AUTHOR            => 'Marius Gavrilescu <marius@ieval.ro>',
-       MIN_PERL_VERSION  => '5.14.0',
+       MIN_PERL_VERSION  => '5.10.1',
        LICENSE           => 'perl',
        SIGN              => 1,
+       (TEST_REQUIRES => {
+               qw/File::Spec::Functions 3.62/,
+       }) x $has_tr,
+       (PREREQ_PM => {
+               qw/File::Spec::Functions 3.62/,
+       }) x !$has_tr,
        META_MERGE         => {
                dynamic_config => 0,
                resources      => {
-                       repository => 'http://git.ieval.ro/?p=mafia.git',
+                       repository => 'https://git.ieval.ro/?p=mafia.git',
                }
        }
 );
This page took 0.010187 seconds and 4 git commands to generate.