1PkgConfig::LibPkgConf::UUsteirl(C3o)ntributed Perl DocumPekngtCaotnifoing::LibPkgConf::Util(3)
2
3
4

NAME

6       PkgConfig::LibPkgConf::Util - Non OO functions for
7       PkgConfig::LibPkgConf
8

SYNOPSIS

10        use PkgConfig::LibPkgConf::Util qw( argv_split compare_version );
11
12        my @args = argv_split('-L/foo -lfoo'); # ('-L/foo', '-lfoo');
13        my $cmp  = compare_version('1.2.3','1.2.4');
14

DESCRIPTION

16       This module provides some useful utility functions that come along with
17       "libpkgconf", but are not object oriented and thus do not get their own
18       class.
19

FUNCTIONS

21   argv_split
22        my @argv = argv_split $args;
23
24       Splits a string into an argument list.
25
26   compare_version
27        my $cmp = compare_version($version1, $version2);
28
29       Compare versions using RPM version comparison rules as described in the
30       LSB.  Returns -1 if the first version is greater, 0 if both versions
31       are equal, 1 if the second version is greater.
32
33   path_relocate
34        my $path = path_relocate($path);
35
36       Relocates a path, possibly calling realpath() or cygwin_conv_path() on
37       it.
38
39   path_sep
40        my $sep = path_sep;
41
42       Returns the path separator as understood by "pkgconf".  This is usually
43       ":" on UNIX and ";" on Windows.
44

SUPPORT

46       IRC #native on irc.perl.org
47
48       Project GitHub tracker:
49
50       <https://github.com/plicease/PkgConfig-LibPkgConf/issues>
51
52       If you want to contribute, please open a pull request on GitHub:
53
54       <https://github.com/plicease/PkgConfig-LibPkgConf/pulls>
55

SEE ALSO

57       For additional related modules, see PkgConfig::LibPkgConf
58

AUTHOR

60       Graham Ollis
61
62       For additional contributors see PkgConfig::LibPkgConf
63
65       This software is copyright (c) 2016 Graham Ollis.
66
67       This is free software; you may redistribute it and/or modify it under
68       the same terms as the Perl 5 programming language system itself.
69
70
71
72perl v5.32.1                      2021-01-27    PkgConfig::LibPkgConf::Util(3)
Impressum