line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Alien::Role::Dino; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
235064
|
use strict; |
|
3
|
|
|
|
|
11
|
|
|
3
|
|
|
|
|
76
|
|
4
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
58
|
|
5
|
3
|
|
|
3
|
|
42
|
use 5.008001; |
|
3
|
|
|
|
|
9
|
|
6
|
3
|
|
|
3
|
|
918
|
use Role::Tiny; |
|
3
|
|
|
|
|
7153
|
|
|
3
|
|
|
|
|
20
|
|
7
|
3
|
|
|
3
|
|
2615
|
use Role::Tiny::With (); |
|
3
|
|
|
|
|
456
|
|
|
3
|
|
|
|
|
651
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# ABSTRACT: Experimental support for dynamic share Alien install |
10
|
|
|
|
|
|
|
our $VERSION = '0.08'; # VERSION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub rpath |
14
|
|
|
|
|
|
|
{ |
15
|
0
|
|
|
0
|
1
|
|
my($self, @other) = @_; |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
my @dir; |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
foreach my $alien ($self, @other) |
20
|
|
|
|
|
|
|
{ |
21
|
0
|
0
|
0
|
|
|
|
if($alien->can('runtime_prop') && defined $alien->runtime_prop->{rpath}) |
22
|
|
|
|
|
|
|
{ |
23
|
0
|
|
|
|
|
|
require Path::Tiny; |
24
|
0
|
|
|
|
|
|
foreach my $rpath (map { Path::Tiny->new($_)->absolute($alien->dist_dir)->stringify } @{ $alien->runtime_prop->{rpath} }) |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
{ |
26
|
0
|
|
|
|
|
|
push @dir, $rpath; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
0
|
|
|
|
|
|
@dir; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub xs_load |
36
|
|
|
|
|
|
|
{ |
37
|
0
|
|
|
0
|
1
|
|
my($self, $package, $version, @rest) = @_; |
38
|
0
|
|
|
|
|
|
require XSLoader; |
39
|
0
|
|
|
|
|
|
XSLoader::load($package, $version); |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
around import => sub { |
43
|
|
|
|
|
|
|
return; |
44
|
|
|
|
|
|
|
}; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Role::Tiny::With::with("Alien::Role::Dino::$^O"); |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
__END__ |