]> git.vpit.fr Git - perl/modules/Lexical-Types.git/blobdiff - Makefile.PL
Put prerequisites in their own separate hash
[perl/modules/Lexical-Types.git] / Makefile.PL
index 288e8e2c72bb3fe03e6b050f137c71ebb7ed498d..fd2d202823d8685019ec7f2ba06905ca91c30b4a 100644 (file)
@@ -4,8 +4,22 @@ 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, '-DLT_MULTIPLICITY=0';
+}
+
+@DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
+
 my $dist = 'Lexical-Types';
 
+my %PREREQ_PM = (
+ 'Carp'     => 0,
+ 'XSLoader' => 0,
+);
+
 my %META = (
  configure_requires => {
   'ExtUtils::MakeMaker' => 0,
@@ -14,12 +28,14 @@ my %META = (
   'ExtUtils::MakeMaker' => 0,
   'Test::More'          => 0,
   'constant'            => 0,
+  %PREREQ_PM,
  },
+ 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",
  },
 );
 
@@ -30,10 +46,8 @@ WriteMakefile(
     VERSION_FROM     => 'lib/Lexical/Types.pm',
     ABSTRACT_FROM    => 'lib/Lexical/Types.pm',
     PL_FILES         => {},
-    PREREQ_PM        => {
-        'Carp'          => 0,
-        'XSLoader'      => 0,
-    },
+    @DEFINES,
+    PREREQ_PM        => \%PREREQ_PM,
     MIN_PERL_VERSION => 5.008,
     META_MERGE       => \%META,
     dist             => {