1
1
use ExtUtils::MakeMaker;
2
- # See lib/ExtUtils/MakeMaker.pm for details of how to influence
3
- # the contents of the Makefile that is written.
4
-
5
- # That's the minimum.
6
- use 5.00503;
7
-
8
- # If we're not 5.6.0, there's some corrections we need to make: Use
9
- # 'use vars' instead of 'our' variables, get rid of 'use warnings'
10
- # and other stuff. The eg/5005it.pl script takes care of it.
11
- if ($] < 5.006) {
12
- require " eg/5005it.pl" ;
13
-
14
- print <<EOT ;
15
- ########################################################
16
- # Hm, you're still using perl 5.005. Although I don't #
17
- # condone that, I'll let it slip this time: #
18
- # Changing distribution to be backwards compatible ... #
19
- EOT
20
- mk5005(" t" , " lib" );
21
- print <<EOT ;
22
- # Done. But do me a favour and upgrade soon. #
23
- ########################################################
24
- EOT
25
- }
26
2
27
3
# Check for Time::HiRes;
28
4
eval { require Time::HiRes; };
@@ -47,9 +23,9 @@ WriteMakefile(
47
23
File::Spec => 0.82,
48
24
File::Path => 2.06_06,
49
25
}, # e.g., Module::Name => 1.1
50
- ( $] >= 5.005 ? # # Add these new keywords supported since 5.005
51
- ( ABSTRACT_FROM => ' lib/Log/Log4perl.pm ' , # retrieve abstract from module
52
- AUTHOR => ' Mike Schilli <[email protected] > ' ) : ()) ,
26
+ ABSTRACT_FROM => ' lib/Log/Log4perl.pm ' , # retrieve abstract from module
27
+ AUTHOR => ' Mike Schilli <[email protected] > ' ,
28
+ MIN_PERL_VERSION => ' 5.006 ' ,
53
29
' clean' => {FILES => " *.tar.gz *.ppd pod2htm*" },
54
30
EXE_FILES => [" eg/l4p-tmpl" ],
55
31
$ExtUtils::MakeMaker::VERSION >= 6.50 ? (%$meta_merge ) : (),
0 commit comments