1Alien::Build::Plugin::PUrsoebre:C:oCnotmrmiabnudtALelidineePn(e:3r:)lBuDiolcdu:m:ePnltuagtiino:n:Probe::CommandLine(3)
2
3
4

NAME

6       Alien::Build::Plugin::Probe::CommandLine - Probe for tools or commands
7       already available
8

VERSION

10       version 2.77
11

SYNOPSIS

13        use alienfile;
14        plugin 'Probe::CommandLine' => (
15          command => 'gzip',
16          args    => [ '--version' ],
17          match   => qr/gzip/,
18          version => qr/gzip ([0-9\.]+)/,
19        );
20

DESCRIPTION

22       This plugin probes for the existence of the given command line program.
23

PROPERTIES

25   command
26       The name of the command.
27
28   args
29       The arguments to pass to the command.
30
31   secondary
32       If you are using another probe plugin (such as
33       Alien::Build::Plugin::Probe::CBuilder or
34       Alien::Build::Plugin::PkgConfig::Negotiate) to detect the existence of
35       a library, but also need a program to exist, then you should set
36       secondary to a true value.  For example when you need both:
37
38        use alienfile;
39        # requires both liblzma library and xz program
40        plugin 'PkgConfig' => 'liblzma';
41        plugin 'Probe::CommandLine' => (
42          command   => 'xz',
43          secondary => 1,
44        );
45
46       When you don't:
47
48        use alienfile;
49        plugin 'Probe::CommandLine' => (
50          command   => 'gzip',
51          secondary => 0, # default
52        );
53
54   match
55       Regular expression for which the program output should match.
56
57   match_stderr
58       Regular expression for which the program standard error should match.
59
60   version
61       Regular expression to parse out the version from the program output.
62       The regular expression should store the version number in $1.
63
64   version_stderr
65       Regular expression to parse out the version from the program standard
66       error.  The regular expression should store the version number in $1.
67
68   atleast_version
69       The minimum required version as provided by the system.
70

SEE ALSO

72       Alien::Build, alienfile, Alien::Build::MM, Alien
73

AUTHOR

75       Author: Graham Ollis <plicease@cpan.org>
76
77       Contributors:
78
79       Diab Jerius (DJERIUS)
80
81       Roy Storey (KIWIROY)
82
83       Ilya Pavlov
84
85       David Mertens (run4flat)
86
87       Mark Nunberg (mordy, mnunberg)
88
89       Christian Walde (Mithaldu)
90
91       Brian Wightman (MidLifeXis)
92
93       Zaki Mughal (zmughal)
94
95       mohawk (mohawk2, ETJ)
96
97       Vikas N Kumar (vikasnkumar)
98
99       Flavio Poletti (polettix)
100
101       Salvador Fandiño (salva)
102
103       Gianni Ceccarelli (dakkar)
104
105       Pavel Shaydo (zwon, trinitum)
106
107       Kang-min Liu (劉康民, gugod)
108
109       Nicholas Shipp (nshp)
110
111       Juan Julián Merelo Guervós (JJ)
112
113       Joel Berger (JBERGER)
114
115       Petr Písař (ppisar)
116
117       Lance Wicks (LANCEW)
118
119       Ahmad Fatoum (a3f, ATHREEF)
120
121       José Joaquín Atria (JJATRIA)
122
123       Duke Leto (LETO)
124
125       Shoichi Kaji (SKAJI)
126
127       Shawn Laffan (SLAFFAN)
128
129       Paul Evans (leonerd, PEVANS)
130
131       Håkon Hægland (hakonhagland, HAKONH)
132
133       nick nauwelaerts (INPHOBIA)
134
135       Florian Weimer
136
138       This software is copyright (c) 2011-2022 by Graham Ollis.
139
140       This is free software; you can redistribute it and/or modify it under
141       the same terms as the Perl 5 programming language system itself.
142
143
144
145perl v5.36.0                      20A2l3i-e0n1:-:2B0uild::Plugin::Probe::CommandLine(3)
Impressum