| 1 | ###################################################################### |
| 2 | # Makefile.PL for Test::Inter |
| 3 | ###################################################################### |
| 4 | |
| 5 | use strict; |
| 6 | use warnings; |
| 7 | use 5.006; |
| 8 | use ExtUtils::MakeMaker 6.30; |
| 9 | |
| 10 | my %IsWin32 = map { $_ => 1 } qw( MSWin32 NetWare symbian ); |
| 11 | my $IsWin32 = 1 if ($IsWin32{ $^O }); |
| 12 | my $Pvers = $]; |
| 13 | my $ConvVers= $ExtUtils::MakeMaker::VERSION; |
| 14 | |
| 15 | my %module_prereq = ( |
| 16 | 'Cwd' => '0', |
| 17 | 'File::Basename' => '0', |
| 18 | 'IO::File' => '0', |
| 19 | ); |
| 20 | |
| 21 | my %script_prereq = ( |
| 22 | ); |
| 23 | |
| 24 | my %test_prereq = ( |
| 25 | 'Test::More' => '0', |
| 26 | ); |
| 27 | |
| 28 | my %config_prereq = ( |
| 29 | 'ExtUtils::MakeMaker' => '6.30', |
| 30 | ); |
| 31 | |
| 32 | %module_prereq = (%module_prereq,%script_prereq); |
| 33 | my $EU_MM_V = $ExtUtils::MakeMaker::VERSION; |
| 34 | $EU_MM_V =~ s/_//g; |
| 35 | if ($EU_MM_V < 6.64) { |
| 36 | %config_prereq = (%config_prereq,%test_prereq); |
| 37 | } |
| 38 | |
| 39 | WriteMakefile( |
| 40 | NAME => "Test::Inter", |
| 41 | VERSION => "1.13", |
| 42 | ABSTRACT => "framework for more readable interactive test scripts", |
| 43 | LICENSE => "perl", |
| 44 | ($EU_MM_V >= 6.48 |
| 45 | ? (MIN_PERL_VERSION => "5.006") |
| 46 | : ()), |
| 47 | AUTHOR => "Sullivan Beck (https://github.com/SBECK-github/)", |
| 48 | "dist" => {COMPRESS=>"gzip",SUFFIX=>"gz"}, |
| 49 | PL_FILES => {}, |
| 50 | PREREQ_PM => \%module_prereq, |
| 51 | ($EU_MM_V >= 6.52 |
| 52 | ? (CONFIGURE_REQUIRES => \%config_prereq) |
| 53 | : ()), |
| 54 | ($EU_MM_V >= 6.64 |
| 55 | ? (TEST_REQUIRES => \%test_prereq) |
| 56 | : ()), |
| 57 | ($EU_MM_V > 6.45 |
| 58 | ? (META_ADD => { |
| 59 | provides => { |
| 60 | 'Test::Inter' => { |
| 61 | file => 'lib/Test/Inter.pm', |
| 62 | version => '1.13', |
| 63 | }, |
| 64 | |
| 65 | }, |
| 66 | } |
| 67 | ) |
| 68 | : ()), |
| 69 | |
| 70 | ($EU_MM_V > 6.46 |
| 71 | ? (META_MERGE => { |
| 72 | 'meta-spec' => { |
| 73 | version => 2, |
| 74 | }, |
| 75 | resources => { |
| 76 | bugtracker => { |
| 77 | web => 'https://github.com/SBECK-github/Test-Inter/issues', |
| 78 | }, |
| 79 | homepage => 'https://github.com/SBECK-github/Test-Inter', |
| 80 | repository => { |
| 81 | type => 'git', |
| 82 | web => 'https://github.com/SBECK-github/Test-Inter', |
| 83 | url => 'git://github.com/SBECK-github/Test-Inter.git', |
| 84 | }, |
| 85 | }, |
| 86 | } |
| 87 | ) |
| 88 | : ()), |
| 89 | |
| 90 | |
| 91 | |
| 92 | |
| 93 | ); |