1 # Note: this file was auto-generated by Module::Build::Compat version 0.03
2 use ExtUtils::MakeMaker;
4 use File::Spec::Functions qw(catfile);
6 # VOS and VMS can't handle dodgy plugin names
7 # and VOS can't even unpack them so we create them on the
8 # fly and only run the tests if they're present
10 catfile(qw(OddTest Plugin -Dodgy.pm)) => 'OddTest::Plugin::-Dodgy',
11 catfile(qw(EditorJunk Plugin #Bar.pm#)) => 'EditorJunk::Bar',
12 catfile(qw(EditorJunk Plugin .#Bar.pm)) => 'EditorJunk::Bar',
15 my $core = grep { $_ eq 'PERL_CORE=1' } @ARGV;
16 my @path = $core ? (File::Spec->updir, File::Spec->updir, File::Spec->updir,
17 "t", "Module_Pluggable") : ($FindBin::Bin,"t");
20 if ($^O ne 'VMS' && $^O ne 'VOS') {
21 foreach my $test (keys %dodgy_files) {
22 my ($file) = (catfile(@path, "lib", $test)=~/^(.*)$/);
23 if (open(my $fh, ">", $file)) {
24 my $name = $dodgy_files{$test};
25 print $fh "package $name;\nsub new {}\n1;";
35 'NAME' => 'Module::Pluggable',
36 'VERSION_FROM' => 'lib/Module/Pluggable.pm',
38 'File::Basename' => '0',
39 'File::Spec' => '3.00',
40 'Test::More' => '0.62'
43 'INSTALLDIRS' => ($] >= 5.008009) ? "perl" : "site",
45 'realclean' => {FILES=> join ' ', @files},
46 # In the core pods will be built by installman.
47 $core ? (MAN3PODS => {}) : (),