1# $Header: /home/fergal/my/cvs/Test-Deep/Makefile.PL,v 1.1.1.1 2004/08/06 20:29:55 fergal Exp $ 2 3use ExtUtils::MakeMaker; 4 5# this ugliness comes from cinompatibility of certain versions of 6# Test::Tester with certain version of Test::Builder. The problem is 7# that people might have an old TT lying around and are also likely to 8# have quite a new TB. This detects that situation and hopefully 9# demands an install of a newer TT. 10 11my $tt_prereq = "0.04"; 12 13if (eval { require Test::Tester; require Test::Builder; 1 } && 14 $Test::Tester::VERSION <= 0.106 && 15 $Test::Builder::VERSION >= 0.78) { 16 17 $tt_prereq = "0.107"; 18} 19 20WriteMakefile( 21 AUTHOR => 'Fergal Daly <fergal@esatclear.ie>', 22 NAME => 'Test::Deep', 23 VERSION_FROM => './lib/Test/Deep.pm', 24 INSTALLDIRS => 'perl', 25 PREREQ_PM => { 26 Test::More => '0', 27 Test::Tester => $tt_prereq, 28 Test::NoWarnings => '0.02', 29 Scalar::Util => '1.09', 30 List::Util => '1.09', # apparently CPAN doesn't get the version of Scalar::Util 31 } 32); 33