# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.039.
use strict;
use warnings;
use 5.009005;
use ExtUtils::MakeMaker;
my %WriteMakefileArgs = (
"ABSTRACT" => "Generate a Makefile.PL containing a warning for legacy users",
"AUTHOR" => "Karen Etheridge <ether\@cpan.org>",
"CONFIGURE_REQUIRES" => {
"CPAN::Meta::Requirements" => "2.120620",
"ExtUtils::MakeMaker" => 0,
"Module::Metadata" => 0
},
"DISTNAME" => "Dist-Zilla-Plugin-MakeMaker-Fallback",
"LICENSE" => "perl",
"MIN_PERL_VERSION" => "5.009005",
"NAME" => "Dist::Zilla::Plugin::MakeMaker::Fallback",
"PREREQ_PM" => {
"Dist::Zilla::Plugin::MakeMaker::Awesome" => "0.15",
"Dist::Zilla::Role::AfterBuild" => 0,
"List::Util" => 0,
"Moose" => 0,
"namespace::autoclean" => 0,
"strict" => 0,
"version" => 0,
"warnings" => 0
},
"TEST_REQUIRES" => {
"Capture::Tiny" => 0,
"Dist::Zilla::Plugin::ModuleBuildTiny" => 0,
"Dist::Zilla::Role::InstallTool" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
"Path::Tiny" => 0,
"Test::DZil" => 0,
"Test::Deep" => 0,
"Test::Fatal" => 0,
"Test::More" => "0.88",
"Test::Requires" => 0,
"if" => 0
},
"VERSION" => "0.020",
"test" => {
"TESTS" => "t/*.t"
}
);
my %FallbackPrereqs = (
"Capture::Tiny" => 0,
"Dist::Zilla::Plugin::MakeMaker::Awesome" => "0.15",
"Dist::Zilla::Plugin::ModuleBuildTiny" => 0,
"Dist::Zilla::Role::AfterBuild" => 0,
"Dist::Zilla::Role::InstallTool" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
"List::Util" => 0,
"Moose" => 0,
"Path::Tiny" => 0,
"Test::DZil" => 0,
"Test::Deep" => 0,
"Test::Fatal" => 0,
"Test::More" => "0.88",
"Test::Requires" => 0,
"if" => 0,
"namespace::autoclean" => 0,
"strict" => 0,
"version" => 0,
"warnings" => 0
);
# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.014
if (has_module('Dist::Zilla::Plugin::MakeMaker', '5.022')) {
$WriteMakefileArgs{PREREQ_PM}{'Dist::Zilla::Plugin::MakeMaker::Awesome'}
= $FallbackPrereqs{'Dist::Zilla::Plugin::MakeMaker::Awesome'} = '0.23'
}
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
WriteMakefile(%WriteMakefileArgs);
# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.014
sub has_module {
my ($module, $version_or_range) = @_;
require Module::Metadata;
my $mmd = Module::Metadata->new_from_module($module);
return 0 if not $mmd;
return 1 if not defined $version_or_range;
require CPAN::Meta::Requirements;
my $req = CPAN::Meta::Requirements->new;
$req->add_string_requirement($module => $version_or_range);
return 1 if $req->accepts_module($module => $mmd->version($module));
return 0;
}