]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blobdiff - Makefile.PL
Give an explicit value to dynamic_config
[perl/modules/Scope-Upper.git] / Makefile.PL
index 8b77428a8ee0ace4d868a706a16a3da55dcddad7..890b7fa61190d933774b7221d01cfc4ad76f6592 100644 (file)
@@ -1,7 +1,18 @@
+use 5.006;
+
 use strict;
 use warnings;
 use ExtUtils::MakeMaker;
 
+my @DEFINES;
+
+# Threads, Windows and 5.8.x don't seem to be best friends
+if ($^O eq 'MSWin32' && $^V lt v5.9.0) {
+ push @DEFINES, '-DSU_MULTIPLICITY=0';
+}
+
+@DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
+
 my $dist = 'Scope-Upper';
 
 my %META = (
@@ -12,11 +23,12 @@ my %META = (
   'ExtUtils::MakeMaker' => 0,
   'Test::More'          => 0,
  },
+ dynamic_config => 1,
  resources => {
   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
   homepage   => "http://search.cpan.org/dist/$dist/",
   license    => 'http://dev.perl.org/licenses/',
-  repository => "http://git.profvince.com/?p=perl/modules/$dist.git",
+  repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
  },
 );
 
@@ -27,9 +39,11 @@ WriteMakefile(
     VERSION_FROM     => 'lib/Scope/Upper.pm',
     ABSTRACT_FROM    => 'lib/Scope/Upper.pm',
     PL_FILES         => {},
+    @DEFINES,
     PREREQ_PM        => {
         'Exporter' => 0,
         'XSLoader' => 0,
+        'base'     => 0,
     },
     MIN_PERL_VERSION => 5.006,
     META_MERGE       => \%META,