1Alien::Build::Plugin::PUrseefrerC:o:nStorritbAVuletireesdni:oP:neBsru(li3l)Ddo:c:uPmleungtiant:i:oPnrefer::SortVersions(3)
2
3
4
6 Alien::Build::Plugin::Prefer::SortVersions - Plugin to sort candidates
7 by most recent first
8
10 version 2.77
11
13 use alienfile;
14
15 plugin 'Prefer::SortVersions';
16
18 Note: in most case you will want to use
19 Alien::Build::Plugin::Download::Negotiate instead. It picks the
20 appropriate fetch plugin based on your platform and environment. In
21 some cases you may need to use this plugin directly instead.
22
23 This Prefer plugin sorts the packages that were retrieved from a dir
24 listing, either directly from a Fetch plugin, or from a Decode plugin.
25 It Returns a listing with the items sorted from post preferable to
26 least, and filters out any undesirable candidates.
27
28 This plugin updates the file list to include the versions that are
29 extracted, so they can be used by other plugins, such as
30 Alien::Build::Plugin::Prefer::BadVersion.
31
33 filter
34 This is a regular expression that lets you filter out files that you do
35 not want to consider downloading. For example, if the directory
36 listing contained tarballs and readme files like this:
37
38 foo-1.0.0.tar.gz
39 foo-1.0.0.readme
40
41 You could specify a filter of "qr/\.tar\.gz$/" to make sure only
42 tarballs are considered for download.
43
44 version
45 Regular expression to parse out the version from a filename. The
46 regular expression should store the result in $1. The default
47 "qr/([0-9\.]+)/" is frequently reasonable.
48
50 Alien::Build::Plugin::Download::Negotiate, Alien::Build, alienfile,
51 Alien::Build::MM, Alien
52
54 Author: Graham Ollis <plicease@cpan.org>
55
56 Contributors:
57
58 Diab Jerius (DJERIUS)
59
60 Roy Storey (KIWIROY)
61
62 Ilya Pavlov
63
64 David Mertens (run4flat)
65
66 Mark Nunberg (mordy, mnunberg)
67
68 Christian Walde (Mithaldu)
69
70 Brian Wightman (MidLifeXis)
71
72 Zaki Mughal (zmughal)
73
74 mohawk (mohawk2, ETJ)
75
76 Vikas N Kumar (vikasnkumar)
77
78 Flavio Poletti (polettix)
79
80 Salvador Fandiño (salva)
81
82 Gianni Ceccarelli (dakkar)
83
84 Pavel Shaydo (zwon, trinitum)
85
86 Kang-min Liu (劉康民, gugod)
87
88 Nicholas Shipp (nshp)
89
90 Juan Julián Merelo Guervós (JJ)
91
92 Joel Berger (JBERGER)
93
94 Petr Písař (ppisar)
95
96 Lance Wicks (LANCEW)
97
98 Ahmad Fatoum (a3f, ATHREEF)
99
100 José Joaquín Atria (JJATRIA)
101
102 Duke Leto (LETO)
103
104 Shoichi Kaji (SKAJI)
105
106 Shawn Laffan (SLAFFAN)
107
108 Paul Evans (leonerd, PEVANS)
109
110 Håkon Hægland (hakonhagland, HAKONH)
111
112 nick nauwelaerts (INPHOBIA)
113
114 Florian Weimer
115
117 This software is copyright (c) 2011-2022 by Graham Ollis.
118
119 This is free software; you can redistribute it and/or modify it under
120 the same terms as the Perl 5 programming language system itself.
121
122
123
124perl v5.36.0 A2l0i2e3n-:0:1B-u2i0ld::Plugin::Prefer::SortVersions(3)