|
| 1 | +use 5.006; |
| 2 | +use strict; |
| 3 | +use warnings; |
| 4 | +use ExtUtils::MakeMaker; |
| 5 | + |
| 6 | +my %WriteMakefileArgs = ( |
| 7 | + NAME => 'Debug::Comments', |
| 8 | + AUTHOR => q{Brett Watson <brett.watson@gmail.com>}, |
| 9 | + VERSION_FROM => 'lib/Debug/Comments.pm', |
| 10 | + ABSTRACT_FROM => 'lib/Debug/Comments.pm', |
| 11 | + LICENSE => 'perl_5', |
| 12 | + MIN_PERL_VERSION => '5.010', |
| 13 | + CONFIGURE_REQUIRES => { |
| 14 | + 'ExtUtils::MakeMaker' => '0', |
| 15 | + }, |
| 16 | + TEST_REQUIRES => { |
| 17 | + 'File::Temp' => '0', |
| 18 | + 'Test::More' => '0.99', # subtests |
| 19 | + }, |
| 20 | + PREREQ_PM => { |
| 21 | + 'Filter::Util::Call' => '0', |
| 22 | + }, |
| 23 | + META_MERGE => { |
| 24 | + 'meta-spec' => { version => 2 }, |
| 25 | + resources => { |
| 26 | + repository => { |
| 27 | + type => 'git', |
| 28 | + url => 'https://github.com/TFBW/Debug-Comments.git', |
| 29 | + web => 'https://github.com/TFBW/Debug-Comments', |
| 30 | + }, |
| 31 | + bugtracker => { |
| 32 | + web => 'https://github.com/TFBW/Debug-Comments/issues' |
| 33 | + }, |
| 34 | + }, |
| 35 | + }, |
| 36 | + dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, |
| 37 | + clean => { FILES => 'Debug-Comments-*' }, |
| 38 | +); |
| 39 | + |
| 40 | +# Compatibility with old versions of ExtUtils::MakeMaker |
| 41 | +unless (eval { ExtUtils::MakeMaker->VERSION('6.64'); 1 }) { |
| 42 | + my $test_requires = delete $WriteMakefileArgs{TEST_REQUIRES} || {}; |
| 43 | + @{$WriteMakefileArgs{PREREQ_PM}}{keys %$test_requires} = values %$test_requires; |
| 44 | +} |
| 45 | + |
| 46 | +unless (eval { ExtUtils::MakeMaker->VERSION('6.55_03'); 1 }) { |
| 47 | + my $build_requires = delete $WriteMakefileArgs{BUILD_REQUIRES} || {}; |
| 48 | + @{$WriteMakefileArgs{PREREQ_PM}}{keys %$build_requires} = values %$build_requires; |
| 49 | +} |
| 50 | + |
| 51 | +delete $WriteMakefileArgs{CONFIGURE_REQUIRES} |
| 52 | + unless eval { ExtUtils::MakeMaker->VERSION('6.52'); 1 }; |
| 53 | +delete $WriteMakefileArgs{MIN_PERL_VERSION} |
| 54 | + unless eval { ExtUtils::MakeMaker->VERSION('6.48'); 1 }; |
| 55 | +delete $WriteMakefileArgs{LICENSE} |
| 56 | + unless eval { ExtUtils::MakeMaker->VERSION('6.31'); 1 }; |
| 57 | + |
| 58 | +WriteMakefile(%WriteMakefileArgs); |
0 commit comments