Makefile.PL

filter: Statementstmt n/a Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« /home/cpancover/.cpan/build/Inline-0.54_02-0/blib/lib/Inline/C/ParseRecDescent.pm ↑ Summary t/00init.t »
1 use ExtUtils::MakeMaker;
2  
3 my $md5_check = 1; # Assume that if $] < 5.008001, then Digest::MD5 is already installed.
4  
5 if($] < 5.008001) {
6 eval{require Digest::MD5;};
7 if($@) {
8 warn "\$\@: $@\n";
9 warn " This is perl version $]\n";
10 $md5_check = 0; # Above assumption was wrong.
11 }
12 }
13  
14 unless($md5_check) {
15 warn <<' MD5';
16 A functional version of the pre-requisite Digest::MD5
17 seems to be missing.
18 Digest-MD5-2.41 and later will not build on this old
19 build of perl.
20 CPAN.pm will currently attempt (and fail) to build and
21 install the *latest* version of Digest::MD5.
22 Therefore you must either:
23 a) install Digest-MD5-2.40 (or earlier, back to 2.09) or;
24 b) apply either the patch at
25 https://rt.cpan.org/Ticket/Attachment/1038207/542063/d0
26 or the patch at
27 https://rt.cpan.org/Ticket/Attachment/983638/512188/Digest-MD5-2.51-v5.6.patch
28 to the latest Digest::MD5 source and then build
29 and install that patched version.
30  
31 It is hoped that, eventually, Digest::MD5 will be once
32 again rendered compatible with this version of perl. If
33 and when that happens, please let the current maintainer
34 of Inline know, so that this warning can be removed.
35  
36 MD5
37  
38 exit 0;
39 }
40  
41 my $twv = $] > 5.013 ? 0.23 : 0.21;
42  
43 my $prereq_pm = {
44 Data::Dumper => 2.09,
45 Digest::MD5 => 2.09,
46 Parse::RecDescent => 1.80,
47 File::Spec => 0.8,
48 Test::Warn => $twv,
49 };
50 delete $prereq_pm->{'Test::Warn'} if $] <= 5.007;
51  
52 WriteMakefile(
53 NAME => 'Inline',
54 VERSION_FROM => 'Inline.pm',
55 PREREQ_PM => $prereq_pm,
56 clean => {FILES => '_Inline_test _Inline .Inline'},
57 );
58  
59 if ($^O =~ /Win32/i) {
60 print "Fixing Makefile for MSWin32\n";
61 open MAKEFILE, "< Makefile"
62 or die "Can't open Makefile for reading";
63 my @lines = <MAKEFILE>;
64 close MAKEFILE;
65 open MAKEFILE, "> Makefile"
66 or die "Can't open Makefile for writing";
67 for (@lines) {
68 print MAKEFILE unless /^\s*((\@\[)|(\]))\s*$/;
69 }
70 close MAKEFILE;
71 }
« /home/cpancover/.cpan/build/Inline-0.54_02-0/blib/lib/Inline/C/ParseRecDescent.pm ↑ Summary t/00init.t »