File Coverage

blib/lib/Alien/zlib.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::zlib;
2              
3 1     1   289340 use strict;
  1         11  
  1         29  
4 1     1   10 use warnings;
  1         6  
  1         26  
5 1     1   6 use base qw( Alien::Base );
  1         1  
  1         571  
6 1     1   5540 use 5.008004;
  1         3  
7              
8             1;
9              
10             =head1 NAME
11              
12             Alien::zlib - Find or build zlib
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::zlib')->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::zlib !export );
32             use Alien::zlib;
33              
34             my $build = Module::Build->new(
35             ...
36             configure_requires => {
37             'Alien::Base::Wrapper' => '0',
38             'Alien::zlib' => '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::zlib';
50              
51             From L
52              
53             [@Filter]
54             -bundle = @Basic
55             -remove = MakeMaker
56              
57             [Prereqs / ConfigureRequires]
58             Alien::zlib = 0
59              
60             [MakeMaker::Awesome]
61             header = use Alien::Base::Wrapper qw( Alien::zlib !export );
62             WriteMakefile_arg = Alien::Base::Wrapper->mm_args
63              
64             From L:
65              
66             use FFI::Platypus;
67             use Alien::zlib;
68              
69             my $ffi = FFI::Platypus->new(
70             lib => [ Alien::zlib->dynamic_libs ],
71             );
72              
73             =head1 DESCRIPTION
74              
75             This distribution provides zlib so that it can be used by other
76             Perl distributions that are on CPAN. It does this by first trying to
77             detect an existing install of zlib on your system. If found it
78             will use that. If it cannot be found, the source code will be downloaded
79             from the internet and it will be installed in a private share location
80             for the use of other modules.
81              
82             =head1 SEE ALSO
83              
84             =over 4
85              
86             =item L
87              
88             The zlib home page.
89              
90             =item L
91              
92             Documentation on the Alien concept itself.
93              
94             =item L
95              
96             The base class for this Alien.
97              
98             =item L
99              
100             Detailed manual for users of Alien classes.
101              
102             =back
103              
104             =cut