File: Makefile.PL

package info (click to toggle)
libtest-deep-perl 0.106-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 420 kB
  • ctags: 247
  • sloc: perl: 2,067; makefile: 2
file content (32 lines) | stat: -rw-r--r-- 985 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Header: /home/fergal/my/cvs/Test-Deep/Makefile.PL,v 1.1.1.1 2004/08/06 20:29:55 fergal Exp $

use ExtUtils::MakeMaker;

# this ugliness comes from cinompatibility of certain versions of
# Test::Tester with certain version of Test::Builder. The problem is
# that people might have an old TT lying around and are also likely to
# have quite a new TB. This detects that situation and hopefully
# demands an install of a newer TT.

my $tt_prereq = "0.04";

if (eval { require Test::Tester; require Test::Builder; 1 } &&
    $Test::Tester::VERSION <= 0.106 &&
    $Test::Builder::VERSION >= 0.78) {

  $tt_prereq = "0.107";
}

WriteMakefile(
	AUTHOR => 'Fergal Daly <fergal@esatclear.ie>',
	NAME => 'Test::Deep',
	VERSION_FROM => './lib/Test/Deep.pm',
	INSTALLDIRS => 'perl',
	PREREQ_PM => {
		Test::More => '0',
		Test::Tester => $tt_prereq,
		Test::NoWarnings => '0.02',
		Scalar::Util => '1.09',
		List::Util => '1.09', # apparently CPAN doesn't get the version of Scalar::Util
	}
);