use strict; use warnings; use ExtUtils::MakeMaker 6.30; my %WriteMakefileArgs = ( 'ABSTRACT' => 'PerlTidy in Dist::Zilla', 'AUTHOR' => 'Fayland Lam , Mark Gardner ', 'BUILD_REQUIRES' => {}, 'CONFIGURE_REQUIRES' => { 'ExtUtils::MakeMaker' => '6.30' }, 'DISTNAME' => 'Dist-Zilla-Plugin-PerlTidy', 'EXE_FILES' => [], 'LICENSE' => 'perl', 'NAME' => 'Dist::Zilla::Plugin::PerlTidy', 'PREREQ_PM' => { 'Dist::Zilla' => '2.100880', 'File::Copy' => '0', 'File::Next' => '0', 'Perl::Tidy' => '0' }, 'VERSION' => '0.12', 'test' => { 'TESTS' => 't/*.t' } ); unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) { my $br = delete $WriteMakefileArgs{BUILD_REQUIRES}; my $pp = $WriteMakefileArgs{PREREQ_PM}; for my $mod ( keys %$br ) { if ( exists $pp->{$mod} ) { $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod}; } else { $pp->{$mod} = $br->{$mod}; } } } delete $WriteMakefileArgs{CONFIGURE_REQUIRES} unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs);