It transpires that POSIX.xs also duplicated several constants defined
[p5sagit/p5-mst-13.2.git] / ext / Module / Pluggable / Makefile.PL
index ec527ec..c926c54 100644 (file)
@@ -14,9 +14,9 @@ my %dodgy_files = (
 
 my $core = grep { $_ eq 'PERL_CORE=1' } @ARGV;
 my @path = $core ? (File::Spec->updir, File::Spec->updir, File::Spec->updir,
-                   "t", "Module_Pluggable") : ($FindBin::Bin,"t");
-my @files;
+                   "t", "Module_Pluggable") : ($FindBin::Bin,"t");
 
+my @files;
 if ($^O ne 'VMS' && $^O ne 'VOS') {
     foreach my $test (keys %dodgy_files) {
         my ($file) = (catfile(@path, "lib", $test)=~/^(.*)$/);
@@ -24,24 +24,25 @@ if ($^O ne 'VMS' && $^O ne 'VOS') {
             my $name = $dodgy_files{$test};
             print $fh "package $name;\nsub new {}\n1;";
             close($fh);
-        push @files, $file;
+            push @files, $file;
         }
     }
 }
 
+
 WriteMakefile
 (
-          'NAME' => 'Module::Pluggable',
+          'NAME'         => 'Module::Pluggable',
           'VERSION_FROM' => 'lib/Module/Pluggable.pm',
-          'PREREQ_PM' => {
+          'PREREQ_PM'    => {
                            'File::Basename' => '0',
                            'File::Spec' => '3.00',
                            'Test::More' => '0.62'
                          },
-          'INSTALLDIRS' => 'site',
-          'EXE_FILES' => [],
-          'PL_FILES' => {},
-          'realclean'  => {FILES=> join ' ', @files},
+          'EXE_FILES'    => [],
+          'INSTALLDIRS'  => ($] >= 5.008009) ? "perl" : "site",
+          'PL_FILES'     => {},
+          'realclean'    => {FILES=> join ' ', @files},
           # In the core pods will be built by installman.
           $core ? (MAN3PODS => {}) : (),
         )