| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Alien::Build::Plugin::Gather::Dino; |
|
2
|
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
228101
|
use strict; |
|
|
2
|
|
|
|
|
9
|
|
|
|
2
|
|
|
|
|
50
|
|
|
4
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
|
2
|
|
|
|
|
2
|
|
|
|
2
|
|
|
|
|
38
|
|
|
5
|
2
|
|
|
2
|
|
29
|
use 5.008001; |
|
|
2
|
|
|
|
|
6
|
|
|
6
|
2
|
|
|
2
|
|
745
|
use Alien::Build::Plugin; |
|
|
2
|
|
|
|
|
18918
|
|
|
|
2
|
|
|
|
|
11
|
|
|
7
|
2
|
|
|
2
|
|
949
|
use FFI::CheckLib qw( find_lib ); |
|
|
2
|
|
|
|
|
4868
|
|
|
|
2
|
|
|
|
|
109
|
|
|
8
|
2
|
|
|
2
|
|
659
|
use Path::Tiny qw( path ); |
|
|
2
|
|
|
|
|
9706
|
|
|
|
2
|
|
|
|
|
362
|
|
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# ABSTRACT: Experimental support for dynamic share Alien install |
|
11
|
|
|
|
|
|
|
our $VERSION = '0.08'; # VERSION |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub init |
|
15
|
|
|
|
|
|
|
{ |
|
16
|
0
|
|
|
0
|
1
|
|
my($self, $meta) = @_; |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
$meta->after_hook( |
|
19
|
|
|
|
|
|
|
gather_share => sub { |
|
20
|
0
|
|
|
0
|
|
|
my($build) = @_; |
|
21
|
|
|
|
|
|
|
|
|
22
|
0
|
|
|
|
|
|
foreach my $path (map { path('.')->absolute->child($_) } qw( bin lib dynamic )) |
|
|
0
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
{ |
|
24
|
0
|
0
|
|
|
|
|
next unless -d $path; |
|
25
|
0
|
0
|
|
|
|
|
if(find_lib(lib => '*', libpath => $path->stringify, systempath => [])) |
|
26
|
|
|
|
|
|
|
{ |
|
27
|
0
|
|
|
|
|
|
push @{ $build->runtime_prop->{rpath} }, $path->basename; |
|
|
0
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
} |
|
29
|
|
|
|
|
|
|
} |
|
30
|
|
|
|
|
|
|
}, |
|
31
|
0
|
|
|
|
|
|
); |
|
32
|
|
|
|
|
|
|
} |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |