my
%WriteMakefileArgs
= (
"ABSTRACT"
=>
"Mocking helper that swaps out implementations automatically"
,
"AUTHOR"
=>
"Alastair Douglas <altreus\@altre.us>"
,
"CONFIGURE_REQUIRES"
=> {
"ExtUtils::MakeMaker"
=> 0
},
"DISTNAME"
=>
"Test-Ratchet"
,
"LICENSE"
=>
"mit"
,
"NAME"
=>
"Test::Ratchet"
,
"PREREQ_PM"
=> {
"Data::Munge"
=> 0,
"Exporter::Easy"
=> 0
},
"TEST_REQUIRES"
=> {
"ExtUtils::MakeMaker"
=> 0,
"File::Spec"
=> 0,
"Test::More"
=> 0
},
"VERSION"
=>
"0.002"
,
"test"
=> {
"TESTS"
=>
"t/*.t"
}
);
my
%FallbackPrereqs
= (
"Data::Munge"
=> 0,
"Exporter::Easy"
=> 0,
"ExtUtils::MakeMaker"
=> 0,
"File::Spec"
=> 0,
"Test::More"
=> 0
);
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
);