Commit | Line | Data |
183ac38d |
1 | # Note: this file was auto-generated by Module::Build::Compat version 0.03 |
848ff2a1 |
2 | use ExtUtils::MakeMaker; |
183ac38d |
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 | |
c21563cb |
15 | my @files; |
a0df7637 |
16 | unless (grep { lc($^O) eq $_ } qw(vms vos)) { |
183ac38d |
17 | foreach my $test (keys %dodgy_files) { |
83c6af60 |
18 | my ($file) = (catfile($FindBin::Bin, "t", "lib", $test)=~/^(.*)$/); |
a0df7637 |
19 | if (open(FH, ">$file")) { |
183ac38d |
20 | my $name = $dodgy_files{$test}; |
a0df7637 |
21 | print FH "package $name;\nsub new {}\n1;"; |
22 | close(FH); |
c21563cb |
23 | push @files, $file; |
183ac38d |
24 | } |
25 | } |
26 | } |
848ff2a1 |
27 | |
c21563cb |
28 | |
848ff2a1 |
29 | WriteMakefile |
30 | ( |
c21563cb |
31 | 'NAME' => 'Module::Pluggable', |
848ff2a1 |
32 | 'VERSION_FROM' => 'lib/Module/Pluggable.pm', |
c21563cb |
33 | 'PREREQ_PM' => { |
848ff2a1 |
34 | 'File::Basename' => '0', |
35 | 'File::Spec' => '3.00', |
36 | 'Test::More' => '0.62' |
37 | }, |
c21563cb |
38 | 'EXE_FILES' => [], |
39 | 'INSTALLDIRS' => ($] >= 5.008009) ? "perl" : "site", |
40 | 'PL_FILES' => {}, |
41 | 'realclean' => {FILES=> join ' ', @files}, |
848ff2a1 |
42 | ) |
43 | ; |