File Coverage

blib/lib/Alien/LZ4.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1             package Alien::LZ4;
2              
3 1     1   284032 use strict;
  1         8  
  1         29  
4 1     1   5 use warnings;
  1         2  
  1         27  
5 1     1   5 use base qw( Alien::Base );
  1         2  
  1         540  
6 1     1   5266 use 5.008004;
  1         3  
7              
8             1;
9              
10             =head1 NAME
11              
12             Alien::LZ4 - Find or build LZ4
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::LZ4')->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::LZ4 !export );
32             use Alien::LZ4;
33              
34             my $build = Module::Build->new(
35             ...
36             configure_requires => {
37             'Alien::Base::Wrapper' => '0',
38             'Alien::LZ4' => '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::LZ4';
50              
51             From L
52              
53             [@Filter]
54             -bundle = @Basic
55             -remove = MakeMaker
56              
57             [Prereqs / ConfigureRequires]
58             Alien::LZ4 = 0
59              
60             [MakeMaker::Awesome]
61             header = use Alien::Base::Wrapper qw( Alien::LZ4 !export );
62             WriteMakefile_arg = Alien::Base::Wrapper->mm_args
63              
64             From L:
65              
66             use FFI::Platypus;
67             use Alien::LZ4;
68              
69             my $ffi = FFI::Platypus->new(
70             lib => [ Alien::LZ4->dynamic_libs ],
71             );
72              
73             Command line tool:
74              
75             use Alien::LZ4;
76             use Env qw( @PATH );
77              
78             unshift @PATH, Alien::LZ4->bin_dir;
79              
80             =head1 DESCRIPTION
81              
82             This distribution provides LZ4 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 LZ4 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 LZ4 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