1Alien::Build::Plugin::PUrsoebre:C:oCnotmrmiabnudtALelidineePn(e:3r:)lBuDiolcdu:m:ePnltuagtiino:n:Probe::CommandLine(3)
2
3
4
6 Alien::Build::Plugin::Probe::CommandLine - Probe for tools or commands
7 already available
8
10 version 2.45
11
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
22 This plugin probes for the existence of the given command line program.
23
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
69 Alien::Build, alienfile, Alien::Build::MM, Alien
70
72 Author: Graham Ollis <plicease@cpan.org>
73
74 Contributors:
75
76 Diab Jerius (DJERIUS)
77
78 Roy Storey (KIWIROY)
79
80 Ilya Pavlov
81
82 David Mertens (run4flat)
83
84 Mark Nunberg (mordy, mnunberg)
85
86 Christian Walde (Mithaldu)
87
88 Brian Wightman (MidLifeXis)
89
90 Zaki Mughal (zmughal)
91
92 mohawk (mohawk2, ETJ)
93
94 Vikas N Kumar (vikasnkumar)
95
96 Flavio Poletti (polettix)
97
98 Salvador Fandiño (salva)
99
100 Gianni Ceccarelli (dakkar)
101
102 Pavel Shaydo (zwon, trinitum)
103
104 Kang-min Liu (劉康民, gugod)
105
106 Nicholas Shipp (nshp)
107
108 Juan Julián Merelo Guervós (JJ)
109
110 Joel Berger (JBERGER)
111
112 Petr Písař (ppisar)
113
114 Lance Wicks (LANCEW)
115
116 Ahmad Fatoum (a3f, ATHREEF)
117
118 José Joaquín Atria (JJATRIA)
119
120 Duke Leto (LETO)
121
122 Shoichi Kaji (SKAJI)
123
124 Shawn Laffan (SLAFFAN)
125
126 Paul Evans (leonerd, PEVANS)
127
128 Håkon Hægland (hakonhagland, HAKONH)
129
130 nick nauwelaerts (INPHOBIA)
131
133 This software is copyright (c) 2011-2020 by Graham Ollis.
134
135 This is free software; you can redistribute it and/or modify it under
136 the same terms as the Perl 5 programming language system itself.
137
138
139
140perl v5.34.0 20A2l1i-e1n0:-:2B9uild::Plugin::Probe::CommandLine(3)