d002ef56a2861d99 didn't fix the Makefile.PL to reflect the moved test location.
[p5sagit/p5-mst-13.2.git] / ext / Module-Pluggable / Makefile.PL
CommitLineData
183ac38d 1# Note: this file was auto-generated by Module::Build::Compat version 0.03
848ff2a1 2use ExtUtils::MakeMaker;
183ac38d 3use FindBin;
4use File::Spec::Functions qw(catfile);
5
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
9my %dodgy_files = (
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',
13);
14
15my $core = grep { $_ eq 'PERL_CORE=1' } @ARGV;
183ac38d 16
c21563cb 17my @files;
a0df7637 18unless (grep { lc($^O) eq $_ } qw(vms vos)) {
183ac38d 19 foreach my $test (keys %dodgy_files) {
83c6af60 20 my ($file) = (catfile($FindBin::Bin, "t", "lib", $test)=~/^(.*)$/);
a0df7637 21 if (open(FH, ">$file")) {
183ac38d 22 my $name = $dodgy_files{$test};
a0df7637 23 print FH "package $name;\nsub new {}\n1;";
24 close(FH);
c21563cb 25 push @files, $file;
183ac38d 26 }
27 }
28}
848ff2a1 29
c21563cb 30
848ff2a1 31WriteMakefile
32(
c21563cb 33 'NAME' => 'Module::Pluggable',
848ff2a1 34 'VERSION_FROM' => 'lib/Module/Pluggable.pm',
c21563cb 35 'PREREQ_PM' => {
848ff2a1 36 'File::Basename' => '0',
37 'File::Spec' => '3.00',
38 'Test::More' => '0.62'
39 },
c21563cb 40 'EXE_FILES' => [],
41 'INSTALLDIRS' => ($] >= 5.008009) ? "perl" : "site",
42 'PL_FILES' => {},
43 'realclean' => {FILES=> join ' ', @files},
183ac38d 44 # In the core pods will be built by installman.
45 $core ? (MAN3PODS => {}) : (),
848ff2a1 46 )
47;