1Alien::Build::Plugin::PUrseefrerC:o:nGtoroidbVuAetlreisdeinoP:ne:(rB3lu)iDlodc:u:mPelnutgaitni:o:nPrefer::GoodVersion(3)
2
3
4
6 Alien::Build::Plugin::Prefer::GoodVersion - Plugin to filter known good
7 versions
8
10 version 2.80
11
13 use alienfile;
14 plugin 'Prefer::GoodVersion' => '1.2.3';
15
17 This plugin allows you to specify one or more good versions of a
18 library. This doesn't affect a system install at all. This plugin
19 does the opposite of the "Prefer::BadVersion" plugin. You need need a
20 Prefer plugin that filters and sorts files first. You may specify the
21 filter in one of three ways:
22
23 as a string
24 Filter any files that match the given version.
25
26 use alienfile;
27 plugin 'Prefer::GoodVersion' => '1.2.3';
28
29 as an array
30 Filter all files that match any of the given versions.
31
32 use alienfile;
33 plugin 'Prefer::GoodVersion' => [ '1.2.3', '1.2.4' ];
34
35 as a code reference
36 Filter any files return a true value.
37
38 use alienfile;
39 plugin 'Prefer::GoodVersion' => sub {
40 my($file) = @_;
41 $file->{version} eq '1.2.3'; # same as the string version above
42 };
43
44 This plugin can also be used to filter known good versions of a library
45 on just one platform. For example, if you know that version 1.2.3 if
46 good on windows, but the default logic is fine on other platforms:
47
48 use alienfile;
49 plugin 'Prefer::GoodVersion' => '1.2.3' if $^O eq 'MSWin32';
50
52 filter
53 Filter entries that match the filter.
54
56 If you are using the string or array mode, then you need an existing
57 Prefer plugin that sets the version number for each file candidate,
58 such as Alien::Build::Plugin::Prefer::SortVersions.
59
60 Unless you want to exclude the latest version from a share install,
61 this plugin isn't really that useful. It has no effect on system
62 installs, which may not be obvious at first.
63
65 alienfile
66 Alien::Build
67 Alien::Build::Plugin::Prefer::SortVersions
68
70 Author: Graham Ollis <plicease@cpan.org>
71
72 Contributors:
73
74 Diab Jerius (DJERIUS)
75
76 Roy Storey (KIWIROY)
77
78 Ilya Pavlov
79
80 David Mertens (run4flat)
81
82 Mark Nunberg (mordy, mnunberg)
83
84 Christian Walde (Mithaldu)
85
86 Brian Wightman (MidLifeXis)
87
88 Zaki Mughal (zmughal)
89
90 mohawk (mohawk2, ETJ)
91
92 Vikas N Kumar (vikasnkumar)
93
94 Flavio Poletti (polettix)
95
96 Salvador Fandiño (salva)
97
98 Gianni Ceccarelli (dakkar)
99
100 Pavel Shaydo (zwon, trinitum)
101
102 Kang-min Liu (劉康民, gugod)
103
104 Nicholas Shipp (nshp)
105
106 Juan Julián Merelo Guervós (JJ)
107
108 Joel Berger (JBERGER)
109
110 Petr Písař (ppisar)
111
112 Lance Wicks (LANCEW)
113
114 Ahmad Fatoum (a3f, ATHREEF)
115
116 José Joaquín Atria (JJATRIA)
117
118 Duke Leto (LETO)
119
120 Shoichi Kaji (SKAJI)
121
122 Shawn Laffan (SLAFFAN)
123
124 Paul Evans (leonerd, PEVANS)
125
126 Håkon Hægland (hakonhagland, HAKONH)
127
128 nick nauwelaerts (INPHOBIA)
129
130 Florian Weimer
131
133 This software is copyright (c) 2011-2022 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.36.1 2A0l2i3e-n0:5:-B1u5ild::Plugin::Prefer::GoodVersion(3)