X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=3e89d726b6ae68402caf9a7ccdad2e6cf3e07971;hb=418197898e73f85448f28aa1236f205f6a3cff5d;hp=710fb1ea0e43cb03fc952460552b9c1bcfc76e04;hpb=06cb3f3506161a118dc440264dcabcd612b9432c;p=perl%2Fmodules%2FLexical-Types.git diff --git a/Makefile.PL b/Makefile.PL index 710fb1e..3e89d72 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,6 +4,15 @@ 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 %META = ( @@ -13,12 +22,13 @@ my %META = ( build_requires => { 'ExtUtils::MakeMaker' => 0, 'Test::More' => 0, + 'constant' => 0, }, 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/perl/modules/$dist.git", + repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git", }, ); @@ -29,6 +39,7 @@ WriteMakefile( VERSION_FROM => 'lib/Lexical/Types.pm', ABSTRACT_FROM => 'lib/Lexical/Types.pm', PL_FILES => {}, + @DEFINES, PREREQ_PM => { 'Carp' => 0, 'XSLoader' => 0,