line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Alien::Build::Plugin::Gather::Dino; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
225227
|
use strict; |
|
2
|
|
|
|
|
10
|
|
|
2
|
|
|
|
|
51
|
|
4
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
37
|
|
5
|
2
|
|
|
2
|
|
30
|
use 5.008001; |
|
2
|
|
|
|
|
6
|
|
6
|
2
|
|
|
2
|
|
725
|
use Alien::Build::Plugin; |
|
2
|
|
|
|
|
19039
|
|
|
2
|
|
|
|
|
13
|
|
7
|
2
|
|
|
2
|
|
941
|
use FFI::CheckLib qw( find_lib ); |
|
2
|
|
|
|
|
4865
|
|
|
2
|
|
|
|
|
109
|
|
8
|
2
|
|
|
2
|
|
644
|
use Path::Tiny qw( path ); |
|
2
|
|
|
|
|
9468
|
|
|
2
|
|
|
|
|
350
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# ABSTRACT: Experimental support for dynamic share Alien install |
11
|
|
|
|
|
|
|
our $VERSION = '0.07'; # 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__ |