line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Alien::zstd; |
2
|
|
|
|
|
|
|
$Alien::zstd::VERSION = '0.04'; |
3
|
1
|
|
|
1
|
|
287279
|
use strict; |
|
1
|
|
|
|
|
11
|
|
|
1
|
|
|
|
|
29
|
|
4
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
35
|
|
5
|
1
|
|
|
1
|
|
5
|
use base qw( Alien::Base ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
534
|
|
6
|
1
|
|
|
1
|
|
5389
|
use 5.008004; |
|
1
|
|
|
|
|
4
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
1; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Alien::zstd - Find or build zstd |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 SYNOPSIS |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
From L: |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use ExtUtils::MakeMaker; |
19
|
|
|
|
|
|
|
use Alien::Base::Wrapper (); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
WriteMakefile( |
22
|
|
|
|
|
|
|
Alien::Base::Wrapper->new('Alien::zstd')->mm_args2( |
23
|
|
|
|
|
|
|
NAME => 'FOO::XS', |
24
|
|
|
|
|
|
|
... |
25
|
|
|
|
|
|
|
), |
26
|
|
|
|
|
|
|
); |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
From L: |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
use Module::Build; |
31
|
|
|
|
|
|
|
use Alien::Base::Wrapper qw( Alien::zstd !export ); |
32
|
|
|
|
|
|
|
use Alien::zstd; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
my $build = Module::Build->new( |
35
|
|
|
|
|
|
|
... |
36
|
|
|
|
|
|
|
configure_requires => { |
37
|
|
|
|
|
|
|
'Alien::Base::Wrapper' => '0', |
38
|
|
|
|
|
|
|
'Alien::zstd' => '0', |
39
|
|
|
|
|
|
|
... |
40
|
|
|
|
|
|
|
}, |
41
|
|
|
|
|
|
|
Alien::Base::Wrapper->mb_args, |
42
|
|
|
|
|
|
|
... |
43
|
|
|
|
|
|
|
); |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
$build->create_build_script; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
From L / L script: |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
use Inline 0.56 with => 'Alien::zstd'; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
From L |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
[@Filter] |
54
|
|
|
|
|
|
|
-bundle = @Basic |
55
|
|
|
|
|
|
|
-remove = MakeMaker |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
[Prereqs / ConfigureRequires] |
58
|
|
|
|
|
|
|
Alien::zstd = 0 |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
[MakeMaker::Awesome] |
61
|
|
|
|
|
|
|
header = use Alien::Base::Wrapper qw( Alien::zstd !export ); |
62
|
|
|
|
|
|
|
WriteMakefile_arg = Alien::Base::Wrapper->mm_args |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
From L: |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
use FFI::Platypus; |
67
|
|
|
|
|
|
|
use Alien::zstd; |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
my $ffi = FFI::Platypus->new( |
70
|
|
|
|
|
|
|
lib => [ Alien::zstd->dynamic_libs ], |
71
|
|
|
|
|
|
|
); |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Command line tool: |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
use Alien::zstd; |
76
|
|
|
|
|
|
|
use Env qw( @PATH ); |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
unshift @PATH, Alien::zstd->bin_dir; |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head1 DESCRIPTION |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
This distribution provides zstd so that it can be used by other |
83
|
|
|
|
|
|
|
Perl distributions that are on CPAN. It does this by first trying to |
84
|
|
|
|
|
|
|
detect an existing install of zstd on your system. If found it |
85
|
|
|
|
|
|
|
will use that. If it cannot be found, the source code will be downloaded |
86
|
|
|
|
|
|
|
from the internet and it will be installed in a private share location |
87
|
|
|
|
|
|
|
for the use of other modules. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head1 SEE ALSO |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=over 4 |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=item L |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
The zstd home page. |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=item L |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Documentation on the Alien concept itself. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=item L |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
The base class for this Alien. |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=item L |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
Detailed manual for users of Alien classes. |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=back |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=cut |