# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.039.
use strict;
use warnings;
use 5.010000;
use ExtUtils::MakeMaker;
use File::ShareDir::Install;
$File::ShareDir::Install::INCLUDE_DOTFILES = 1;
$File::ShareDir::Install::INCLUDE_DOTDIRS = 1;
install_share module => "Dist::Zilla::Plugin::DynamicPrereqs", "share\/DynamicPrereqs";
my %WriteMakefileArgs = (
"ABSTRACT" => "Specify dynamic (user-side) prerequisites for your distribution",
"AUTHOR" => "Karen Etheridge <ether\@cpan.org>",
"CONFIGURE_REQUIRES" => {
"CPAN::Meta::Requirements" => "2.120620",
"ExtUtils::MakeMaker" => 0,
"File::ShareDir::Install" => "0.06",
"Module::Metadata" => 0
},
"DISTNAME" => "Dist-Zilla-Plugin-DynamicPrereqs",
"LICENSE" => "perl",
"MIN_PERL_VERSION" => "5.010000",
"NAME" => "Dist::Zilla::Plugin::DynamicPrereqs",
"PREREQ_PM" => {
"Dist::Zilla::Plugin::MakeMaker" => "5.001",
"Dist::Zilla::Role::AfterBuild" => 0,
"Dist::Zilla::Role::InstallTool" => 0,
"Dist::Zilla::Role::MetaProvider" => 0,
"Dist::Zilla::Role::PrereqSource" => 0,
"Dist::Zilla::Role::TextTemplate" => 0,
"File::ShareDir" => 0,
"List::Util" => "1.33",
"Module::Runtime" => 0,
"Moose" => 0,
"Path::Tiny" => 0,
"Term::ANSIColor" => "3.00",
"Try::Tiny" => 0,
"feature" => 0,
"namespace::autoclean" => 0,
"strict" => 0,
"warnings" => 0
},
"TEST_REQUIRES" => {
"CPAN" => 0,
"Capture::Tiny" => 0,
"ExtUtils::MakeMaker" => "6.64",
"File::Spec" => 0,
"File::pushd" => 0,
"Module::CoreList" => "3.06",
"PadWalker" => 0,
"Test::DZil" => 0,
"Test::Deep" => 0,
"Test::Deep::JSON" => 0,
"Test::Fatal" => 0,
"Test::File::ShareDir" => 0,
"Test::More" => "0.88",
"Test::Requires" => 0,
"if" => 0,
"lib" => 0
},
"VERSION" => "0.015",
"test" => {
"TESTS" => "t/*.t"
}
);
my %FallbackPrereqs = (
"CPAN" => 0,
"Capture::Tiny" => 0,
"Dist::Zilla::Plugin::MakeMaker" => "5.001",
"Dist::Zilla::Role::AfterBuild" => 0,
"Dist::Zilla::Role::InstallTool" => 0,
"Dist::Zilla::Role::MetaProvider" => 0,
"Dist::Zilla::Role::PrereqSource" => 0,
"Dist::Zilla::Role::TextTemplate" => 0,
"ExtUtils::MakeMaker" => "6.64",
"File::ShareDir" => 0,
"File::Spec" => 0,
"File::pushd" => 0,
"List::Util" => "1.33",
"Module::CoreList" => "3.06",
"Module::Runtime" => 0,
"Moose" => 0,
"PadWalker" => 0,
"Path::Tiny" => 0,
"Term::ANSIColor" => "3.00",
"Test::DZil" => 0,
"Test::Deep" => 0,
"Test::Deep::JSON" => 0,
"Test::Fatal" => 0,
"Test::File::ShareDir" => 0,
"Test::More" => "0.88",
"Test::Requires" => 0,
"Try::Tiny" => 0,
"feature" => 0,
"if" => 0,
"lib" => 0,
"namespace::autoclean" => 0,
"strict" => 0,
"warnings" => 0
);
# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.015
if (has_module('Dist::Zilla') == '5.007') {
$WriteMakefileArgs{PREREQ_PM}{'Dist::Zilla'} = $FallbackPrereqs{'Dist::Zilla'} = '5.008'
}
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);
{
package
MY;
use File::ShareDir::Install qw(postamble);
}
# inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.015
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;
}