5 use ExtUtils::MakeMaker;
9 # Threads, Windows and 5.8.x don't seem to be best friends
10 if ($^O eq 'MSWin32' && $^V lt v5.9.0) {
11 push @DEFINES, '-DLT_MULTIPLICITY=0';
14 # Fork emulation got "fixed" in 5.10.1
15 if ($^O eq 'MSWin32' && $^V lt v5.10.1) {
16 push @DEFINES, '-DLT_FORKSAFE=0';
19 @DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
21 my $dist = 'Lexical-Types';
23 (my $name = $dist) =~ s{-}{::}g;
25 (my $file = $dist) =~ s{-}{/}g;
26 $file = "lib/$file.pm";
34 configure_requires => {
35 'ExtUtils::MakeMaker' => 0,
38 'ExtUtils::MakeMaker' => 0,
45 bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
46 homepage => "http://search.cpan.org/dist/$dist/",
47 license => 'http://dev.perl.org/licenses/',
48 repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
54 AUTHOR => 'Vincent Pit <perl@profvince.com>',
56 VERSION_FROM => $file,
57 ABSTRACT_FROM => $file,
60 PREREQ_PM => \%PREREQ_PM,
61 MIN_PERL_VERSION => 5.008001,
64 PREOP => "pod2text $file > \$(DISTVNAME)/README",
65 COMPRESS => 'gzip -9f', SUFFIX => 'gz'
68 FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"