| 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
Condition100%3/3
$runtime->{"cflags"} and not defined $runtime->{"cflags_static"}
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"}
| |||||||||||||||||||||||||||||
| 25 | { | ||||||||||||||||||||||||||||
| 26 | 10 | $runtime->{cflags_static} = $runtime->{cflags}; | |||||||||||||||||||||||||||
| 27 | } | ||||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||
| 29 | 44 | ▶ | if($runtime->{libs} && ! defined $runtime->{libs_static}) | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
$runtime->{"libs"} and not defined $runtime->{"libs_static"}
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"}
| |||||||||||||||||||||||||||||
| 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__ | ||||||||||||||||||||||||||||