alienfile

filter: Statementstmt 100% 17 / 17 Branchbran 50.0% 3 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 88.4% 23 / 26 CC 4 SCAR 11.2
CC
4
Cov
87%
__ANON__
4.1
BEGIN
1.0
__ANON__
1.0
CRAP 3.1
↑ Summary blib/lib/Alien/Hunspell/Install/Files.pm »
1 1 ▶use alienfile;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 1 plugin 'Probe::Vcpkg' => (
4 name => 'hunspell',
5 ffi_name => 'libhunspell',
6 include => 'hunspell',
7 );
8 1 plugin 'PkgConfig' => (
9 pkg_name => 'hunspell',
10 );
11  
12 1 ▶share {
Subroutine __ANON__: called CC=4 SCAR=14.1
13  
14 1 requires 'Alien::Build' => '0.75';
15  
16 1 ▶ plugin 'Prefer::BadVersion' => ['1.7.0'] if $^O eq 'MSWin32';
Branch: 1 branch
BranchTrueFalseTotal
if $^O eq "MSWin32" 0 1 1
17  
18 1 ▶ my $version = $^O eq 'MSWin32' ? '1.6.2.1' : '1.7.0.1';
Branch: 1 branch
BranchTrueFalseTotal
$^O eq 'MSWin32' ? : 0 1 1
19  
20 1 plugin 'Download' => (
21 # trying to autoreconf + patch + whatnot hunspell has jus become too much
22 # trouble, so we're using a prepatched copy that already has been autoreconf'd
23 url => "https://github.com/PerlAlien/hunspell/archive/alien-$version.tar.gz",
24 version => qr/^([0-9\.]+)\\.[0-9]+.tar\.gz$/,
25 );
26  
27 1 plugin 'Extract' => 'tar.gz';
28 1 plugin 'Build::Autoconf' => (
29 ffi => 1,
30 );
31  
32 1 my @acflags;
33 1 ▶ unshift @acflags, '--disable-nls' if $^O =~ /^(?:MSWin32|darwin|freebsd)/;
Branch: 1 branch
BranchTrueFalseTotal
if $^O =~ /^(?:MSWin32|darwin|freebsd)/ 0 1 1
34  
35 1 build [
36 "%{configure} --disable-shared --enable-static @acflags",
37 '%{make}',
38 '%{make} install',
39 ];
40  
41 1 ▶ ffi {
Subroutine __ANON__: called CC=1 SCAR=0.0
42 1 build [
43 "%{configure} --disable-static --enable-shared --libdir=%{.install.autoconf_prefix}/dynamic @acflags",
44 '%{make}',
45 '%{make} install',
46 ];
47 1 };
48 1 };
↑ Summary blib/lib/Alien/Hunspell/Install/Files.pm »