File Coverage

alienfile
Criterion Covered Total %
statement 23 23 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod n/a
total 31 31 100.0


line stmt bran cond sub pod time code
1             #! perl
2              
3 1     1   311007 use v5.012;
  1         5  
4 1     1   8 use strict;
  1         2  
  1         64  
5 1     1   6 use warnings;
  1         5  
  1         52  
6              
7 1     1   6 use alienfile;
  1         5  
  1         7  
8 1     1   231 use Path::Tiny;
  1         2  
  1         79  
9              
10             our $VERSION = '0.04';
11              
12 1     1   7 use constant PKG_NAME => 'cxcparam';
  1         1  
  1         91  
13 1     1   6 use constant PKG_VERSION => '4.12.0.10';
  1         2  
  1         78  
14 1     1   25 use constant PKG_TARBALL => PKG_NAME . q{-} . PKG_VERSION . '.tar.gz';
  1         3  
  1         284  
15              
16             my $pkg_name = 'cxcparam';
17              
18             plugin 'Gather::IsolateDynamic';
19              
20             plugin PkgConfig => (
21             pkg_name => PKG_NAME,
22             atleast_version => PKG_VERSION,
23             );
24              
25             share {
26             start_url 'inc/' . PKG_TARBALL;
27              
28             plugin 'Download';
29              
30             plugin Extract => 'tar.gz';
31              
32             plugin 'Build::Autoconf' => ( with_pic => 1 );
33             build [ '%{configure}', '%{make}', '%{make} install', ];
34             };
35              
36             gather [
37             [ "pkg-config --modversion $pkg_name", \'%{.runtime.version}' ],
38             [ "pkg-config --cflags $pkg_name", \'%{.runtime.cflags}' ],
39             [ "pkg-config --libs $pkg_name", \'%{.runtime.libs}' ],
40             ];