This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update Archive-Tar to CPAN version 1.86
[perl5.git] / cpan / Module-Pluggable / Makefile.PL
1 # Note: this file was auto-generated by Module::Build::Compat version 0.03
2 use ExtUtils::MakeMaker;
3 use FindBin;
4 use 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
9 my %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
15 my @files;
16 unless (grep { lc($^O) eq $_ } qw(vms vos)) {
17     foreach my $test (keys %dodgy_files) {
18         my ($file) = (catfile($FindBin::Bin, "t", "lib", $test)=~/^(.*)$/);
19         if (open(FH, ">$file")) {
20             my $name = $dodgy_files{$test};
21             print FH "package $name;\nsub new {}\n1;";
22             close(FH);
23             push @files, $file;
24         }
25     }
26 }
27
28
29 WriteMakefile
30 (
31           'NAME'         => 'Module::Pluggable',
32           'VERSION_FROM' => 'lib/Module/Pluggable.pm',
33           'PREREQ_PM'    => {
34                            'File::Basename' => '0',
35                            'File::Spec' => '3.00',
36                            'Test::More' => '0.62'
37                          },
38           'EXE_FILES'    => [],
39           'INSTALLDIRS'  => ($] >= 5.008009) ? "perl" : "site",
40           'PL_FILES'     => {},
41           'realclean'    => {FILES=> join ' ', @files},
42         )
43 ;