blib/lib/Alien/Build/Plugin/Core/Legacy.pm

filter: Statementstmt 100% 26 / 26 Branchbran 100% 4 / 4 Conditioncond 100% 6 / 6 MC/DCmcdc 100% 4 / 4 Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 100% 47 / 47 CC 6 SCAR 11.0
CC
6
Cov
100%
__ANON__
5.0
init
2.0
BEGIN
1.0
CRAP 3.0
« blib/lib/Alien/Build/Temp.pm ↑ Summary example/gmake.alienfile »
1 package Alien::Build::Plugin::Core::Legacy;
2  
3 57 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 57 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 57 ▶use 5.008004;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 57 ▶use Alien::Build::Plugin;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 # ABSTRACT: Core Alien::Build plugin to maintain compatibility with legacy Alien::Base
9 57 our $VERSION = '2.88'; # VERSION
10  
11  
12 sub init
13 382 ▶{
Subroutine init: called CC=2 SCAR=6.9
Pod documented
14 382 my($self, $meta) = @_;
15  
16 $meta->after_hook(
17 44 ▶ $_ => sub {
Subroutine __ANON__: called CC=5 SCAR=16.1
18 44 my($build) = @_;
19  
20 44 $build->log("adding legacy hash to config");
21  
22 44 my $runtime = $build->runtime_prop;
23  
24 44 ▶ if($runtime->{cflags} && ! defined $runtime->{cflags_static})
Branch: 1 branch
BranchTrueFalseTotal
if ($runtime->{"cflags"} and not defined $runtime->{"cflags_static"}) 10 34 44
Condition100%3/3
$runtime->{"cflags"} and not defined $runtime->{"cflags_static"}
!ll&&!rl&&r
29510
MC/DC100%2/2
$runtime->{"cflags"} and not defined $runtime->{"cflags_static"}
$runtime->{"cflags"} not defined $runtime->{"cflags_static"}
Truth table100%3/3
A and not(B)
A= $runtime->{"cflags"}B= not defined $runtime->{"cflags_static"}
ABresult
0X0
100
111
25 {
26 10 $runtime->{cflags_static} = $runtime->{cflags};
27 }
28  
29 44 ▶ if($runtime->{libs} && ! defined $runtime->{libs_static})
Branch: 1 branch
BranchTrueFalseTotal
if ($runtime->{"libs"} and not defined $runtime->{"libs_static"}) 10 34 44
Condition100%3/3
$runtime->{"libs"} and not defined $runtime->{"libs_static"}
!ll&&!rl&&r
29510
MC/DC100%2/2
$runtime->{"libs"} and not defined $runtime->{"libs_static"}
$runtime->{"libs"} not defined $runtime->{"libs_static"}
Truth table100%3/3
A and not(B)
A= $runtime->{"libs"}B= not defined $runtime->{"libs_static"}
ABresult
0X0
100
111
30 {
31 10 $runtime->{libs_static} = $runtime->{libs};
32 }
33  
34 44 $runtime->{legacy}->{finished_installing} = 1;
35 44 $runtime->{legacy}->{install_type} = $runtime->{install_type};
36 44 $runtime->{legacy}->{version} = $runtime->{version};
37 44 $runtime->{legacy}->{original_prefix} = $runtime->{prefix};
38 }
39 382 ) for qw( gather_system gather_share );
40 }
41  
42 57 1;
43  
44 __END__
« blib/lib/Alien/Build/Temp.pm ↑ Summary example/gmake.alienfile »