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   245052 use alienfile;
  1         3  
  1         9  
2              
3             plugin 'PkgConfig' => 'libnghttp2';
4              
5             share {
6             requires 'Alien::Build::Plugin::Build::CMake' => '0.99';
7             requires 'Alien::cmake3' => '0.02';
8             requires 'Alien::Build::Plugin::Download::GitHub' => '0.10';
9              
10             plugin 'Download::GitHub' => (
11             github_user => 'nghttp2',
12             github_repo => 'nghttp2',
13             );
14              
15             plugin 'Extract' => 'tar.gz';
16              
17             plugin 'Build::CMake' => ();
18              
19             build [
20             ['%{cmake}',
21             @{ meta->prop->{plugin_build_cmake}->{args} },
22             '-DENABLE_LIB_ONLY=ON',
23             # Build static library for share install - simpler and more portable
24             '-DBUILD_STATIC_LIBS=ON',
25             '-DBUILD_SHARED_LIBS=OFF',
26             '-DBUILD_TESTING=OFF',
27             '-DCMAKE_INSTALL_PREFIX:PATH=%{.install.prefix}',
28             '%{.install.extract}',
29             ],
30             ['%{make}'],
31             ['%{make}', 'install'],
32             ];
33             };