1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
use 5.006001;
use ExtUtils::MakeMaker;
my $EUMM_VERSION = $ExtUtils::MakeMaker::VERSION;
$EUMM_VERSION =~ tr/_//d;
my %write_makefile_args = (
NAME => 'Devel::Hide',
VERSION_FROM => 'lib/Devel/Hide.pm',
PREREQ_PM => {
'perl' => 5.006001,
'File::Temp' => 0, # perl ≤ 5.8.0
},
ABSTRACT_FROM => 'lib/Devel/Hide.pm',
AUTHOR => 'Adriano Ferreira <ferreira@cpan.org>',
LICENSE => 'perl',
META_MERGE => {
'dynamic_config' => 0,
'meta-spec' => { version => 2 },
'prereqs' => {
test => {
requires => {
'Test::More' => 0.82,
},
},
develop => {
requires => {
'Test::Pod' => 1.18,
'Test::Pod::Coverage' => 1.04,
},
},
},
resources => {
repository => {
type => 'git',
url => 'https://github.com/aferreira/cpan-Devel-Hide.git',
web => 'https://github.com/aferreira/cpan-Devel-Hide',
},
},
},
);
delete $write_makefile_args{LICENSE} if $EUMM_VERSION < 6.31;
delete $write_makefile_args{META_MERGE} if $EUMM_VERSION < 6.4501;
WriteMakefile(%write_makefile_args);
|