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