example/xz.alienfile

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 13 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« example/xz-manual.alienfile ↑ Summary
1 1 ▶use alienfile;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 # PkgConfig uses the pkg-config negotiator to pick the best
4 # available implementation (as of this writing, in order:
5 # libpkgconf, pkg-config, PkgConfig,pm), to determine
6 # if the system already provides the library. In addition,
7 # it gets the version, cflags and libs during either a
8 # "system" or "share" install.
9 1 plugin 'PkgConfig' => 'liblzma';
10  
11 # in addition to the library, we require that the xz command
12 # is also available.
13 1 plugin 'Probe::CommandLine' => (
14 command => 'xz',
15 secondary => 1,
16 );
17  
18 1 ▶share {
Subroutine __ANON__: called CC=1 SCAR=0.0
19  
20 # items in the share block relate to building the package
21 # from source. It is called share because it will be
22 # installed into a dist level share directory in your
23 # perl lib.
24  
25 # The Download negotiator picks the best method for
26 # downloading the package. It uses the version
27 # regex to parse out the version number from the
28 # tarball so that it can pick the most recent
29 # version.
30 1 start_url 'http://tukaani.org/xz/';
31 1 plugin Download => (
32 version => qr/^xz-([0-9\.]+)\.tar\.gz$/,
33 );
34  
35 # The Extract negotiator picks the best method for
36 # extracting from the tarball. We give it a hint
37 # here that we expect the tarball to be .gz compressed
38 # in case it needs to load extra modules to
39 # decompress.
40 1 plugin Extract => 'tar.gz';
41  
42 # The Autoconf plugin builds using the standard
43 # configure and make tools. It uses a DESTDIR
44 # ( https://www.gnu.org/prep/standards/html_node/DESTDIR.html )
45 # to ensure that the prefix during the build
46 # (ie when you install the Alien::xz module)
47 # matches the prefix during runtime
48 # (ie when you use it from XZ::XS).
49 1 plugin 'Build::Autoconf';
50  
51 # This package doesn't build a dynamic library by default, but if
52 # it did this would make sure that it wasn't used with XS.
53 # (See Alien::Build::Manual::AlienAuthor for details).
54 1 plugin 'Gather::IsolateDynamic';
55  
56 1 };
« example/xz-manual.alienfile ↑ Summary