# This Makefile.PL for Dist-Zilla-Plugin-Test-Compile was generated by
# Dist::Zilla::Plugin::MakeMaker::Fallback 0.003.
# Don't edit it but the dist.ini used to construct it.
use strict;
use warnings;
BEGIN {
my %configure_requires = (
'Dist::CheckConflicts' => '0.02',
'ExtUtils::MakeMaker' => '6.30',
'Module::Build::Tiny' => '0.030',
);
my @missing = grep {
! eval "require $_; $_->VERSION($configure_requires{$_}); 1"
} keys %configure_requires;
if (not @missing)
{
print "Congratulations, your toolchain understands 'configure_requires'!\n\n";
}
else
{
warn <<'EOW';
*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***
If you're seeing this warning, your toolchain is really, really old and you'll
almost certainly have problems installing CPAN modules from this century. But
never fear, dear user, for we have the technology to fix this!
If you're using CPAN.pm to install things, then you can upgrade it using:
cpan CPAN
If you're using CPANPLUS to install things, then you can upgrade it using:
cpanp CPANPLUS
If you're using cpanminus, you shouldn't be seeing this message in the first
place, so please file an issue on github.
If you're installing manually, please retrain your fingers to run Build.PL
when present instead.
This public service announcement was brought to you by the Perl Toolchain
Gang, the irc.perl.org #toolchain IRC channel, and the number 42.
EOW
sleep 10 if -t STDIN;
}
}
use 5.008;
use ExtUtils::MakeMaker 6.30;
check_conflicts();
my %WriteMakefileArgs = (
"ABSTRACT" => "common tests to check syntax of your modules, only using core modules",
"AUTHOR" => "Jerome Quelin",
"BUILD_REQUIRES" => {},
"CONFIGURE_REQUIRES" => {
"Dist::CheckConflicts" => "0.02",
"ExtUtils::MakeMaker" => "6.30",
"Module::Build::Tiny" => "0.030"
},
"DISTNAME" => "Dist-Zilla-Plugin-Test-Compile",
"EXE_FILES" => [],
"LICENSE" => "perl",
"NAME" => "Dist::Zilla::Plugin::Test::Compile",
"PREREQ_PM" => {
"Data::Section" => "0.004",
"Dist::CheckConflicts" => "0.02",
"Dist::Zilla::File::InMemory" => 0,
"Dist::Zilla::Role::FileFinderUser" => 0,
"Dist::Zilla::Role::FileGatherer" => 0,
"Dist::Zilla::Role::FileMunger" => 0,
"Dist::Zilla::Role::PrereqSource" => 0,
"Dist::Zilla::Role::TextTemplate" => 0,
"Moose" => 0,
"Moose::Util::TypeConstraints" => 0,
"Path::Tiny" => 0,
"Sub::Exporter::ForMethods" => 0,
"namespace::autoclean" => 0,
"strict" => 0,
"warnings" => 0
},
"TEST_REQUIRES" => {
"Cwd" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
"File::Spec::Functions" => 0,
"IO::Handle" => 0,
"IPC::Open3" => 0,
"List::Util" => 0,
"Module::CoreList" => "2.77",
"Perl::PrereqScanner" => "1.016",
"Test::DZil" => 0,
"Test::Deep" => 0,
"Test::Deep::JSON" => 0,
"Test::MinimumVersion" => 0,
"Test::More" => "0.94",
"Test::Warnings" => "0.009",
"if" => 0,
"version" => 0
},
"VERSION" => "2.037",
"test" => {
"TESTS" => "t/*.t"
}
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
my $tr = delete $WriteMakefileArgs{TEST_REQUIRES};
my $br = $WriteMakefileArgs{BUILD_REQUIRES};
for my $mod ( keys %$tr ) {
if ( exists $br->{$mod} ) {
$br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod};
}
else {
$br->{$mod} = $tr->{$mod};
}
}
}
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);
sub check_conflicts {
if ( eval { require 'lib/Dist/Zilla/Plugin/Test/Compile/Conflicts.pm'; 1; } ) {
if ( eval { Dist::Zilla::Plugin::Test::Compile::Conflicts->check_conflicts; 1 } ) {
return;
}
else {
my $err = $@;
$err =~ s/^/ /mg;
warn "***\n$err***\n";
}
}
else {
print <<'EOF';
***
Your toolchain doesn't support configure_requires, so Dist::CheckConflicts
hasn't been installed yet. You should check for conflicting modules
manually by examining the list of conflicts in Dist::Zilla::Plugin::Test::Compile::Conflicts once the installation
finishes.
***
EOF
}
return if $ENV{AUTOMATED_TESTING} || $ENV{NONINTERACTIVE_TESTING};
# More or less copied from Module::Build
return if $ENV{PERL_MM_USE_DEFAULT};
return unless -t STDIN && ( -t STDOUT || !( -f STDOUT || -c STDOUT ) );
sleep 4;
}