Debian lenny version packages
[pkg-perl] / deb-src / libtest-simple-perl / libtest-simple-perl-0.80 / Makefile.PL
1 #!/usr/bin/perl -w
2
3 use 5.006;
4
5 use Config;
6 use ExtUtils::MakeMaker;
7
8 $PACKAGE = 'Test::Simple';
9 ($PACKAGE_FILE = $PACKAGE) =~ s|::|/|g;
10 $LAST_API_CHANGE    = 0.48;
11 $LAST_THREAD_CHANGE = 0.48;
12
13 eval "require $PACKAGE";
14
15 unless ($@) { # Make sure we did find the module.
16     if( ${$PACKAGE.'::VERSION'} < $LAST_API_CHANGE ) {
17         printf <<"CHANGE_WARN", $LAST_API_CHANGE;
18
19 NOTE: There have been API changes between this version and any older
20 than version %s!  Please see the Changes file for details.
21
22 CHANGE_WARN
23
24         sleep 5;
25     }
26     if( $] >= 5.008001 && $Config{useithreads} &&
27         ${$PACKAGE.'::VERSION'} < $LAST_THREAD_CHANGE 
28       ) 
29     {
30         printf <<"THREAD_WARN", $LAST_THREAD_CHANGE;
31
32 NOTE: The behavior of Test::More and threads has changed between this
33 version and any older than version %s!  Please see the Changes file
34 for details.
35
36 THREAD_WARN
37
38         sleep 5;
39     }
40
41 }
42
43 WriteMakefile(
44     NAME            => $PACKAGE,
45
46     VERSION_FROM    => "lib/$PACKAGE_FILE.pm",
47     ABSTRACT_FROM   => "lib/$PACKAGE_FILE.pm",
48     AUTHOR          => 'Michael G Schwern <schwern@pobox.com>',
49
50     PREREQ_PM       => { 
51                         Test::Harness   => 2.03,
52                        },
53     # Added to the core in 5.7.3 and also 5.6.2.
54     INSTALLDIRS     => $] >= 5.006002 ? 'perl' : 'site',
55     ($ExtUtils::MakeMaker::VERSION >= 6.31 ? (LICENSE => 'perl') : ()),
56 );