File Coverage

alienfile
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1 1     1   345675 use alienfile;
  1         4  
  1         8  
2              
3             plugin PkgConfig => pkg_name => 'hiredis', minimum_version => '0.11.0';
4             plugin 'Build::Make' => make_type => 'gmake';
5              
6             meta->around_hook(probe => sub {
7             my $orig = shift;
8             my $build = shift;
9             my $install_type = $orig->($build, @_);
10             if ($install_type eq 'system') {
11             my $version = $build->hook_prop->{version};
12             return 'share' if !defined $version or $version eq '0.13.0';
13             }
14             return $install_type;
15             });
16              
17             share {
18             start_url 'src/hiredis-1.3.0.tar.gz';
19             plugin 'Fetch::Local';
20             plugin Extract => format => 'tar.gz';
21             build [
22             [ '%{make} PREFIX=%{.install.prefix}' ],
23             [ '%{make} PREFIX=%{.install.prefix} install' ],
24             ];
25             plugin 'Gather::IsolateDynamic';
26             };