5 use ExtUtils::MakeMaker;
9 # Threads, Windows and 5.8.x don't seem to be best friends
10 if ($^O eq 'MSWin32' and "$]" < 5.009) {
11 push @DEFINES, '-DI_MULTIPLICITY=0';
14 # Fork emulation got "fixed" in 5.10.1
15 if ($^O eq 'MSWin32' and "$]" < 5.010_001) {
16 push @DEFINES, '-DI_FORKSAFE=0';
19 @DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
21 my $dist = 'indirect';
23 (my $name = $dist) =~ s{-}{::}g;
25 (my $file = $dist) =~ s{-}{/}g;
26 $file = "lib/$file.pm";
34 'ExtUtils::MakeMaker' => 0,
40 configure_requires => {
41 'ExtUtils::MakeMaker' => 0,
48 bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
49 homepage => "http://search.cpan.org/dist/$dist/",
50 license => 'http://dev.perl.org/licenses/',
51 repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
57 AUTHOR => 'Vincent Pit <perl@profvince.com>',
59 VERSION_FROM => $file,
60 ABSTRACT_FROM => $file,
63 BUILD_REQUIRES => \%BUILD_REQUIRES,
64 PREREQ_PM => \%PREREQ_PM,
65 MIN_PERL_VERSION => '5.008001',
68 PREOP => "pod2text -u $file > \$(DISTVNAME)/README",
69 COMPRESS => 'gzip -9f', SUFFIX => 'gz'
72 FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt*"