devel/p5-Sort-Versions 1.62 DragonFly
Perl 5 module for sorting of revision-like numbers
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 11.8 KiB, 43.7 KiB installed
Description
Sort::Versions allows easy sorting of mixed non-numeric and numeric strings, like the "version numbers" that many shared library systems and revision control packages use. This is quite useful if you are trying to deal with shared libraries. It can also be applied to applications that intersperse variable-width numeric fields within text. Other applications can undoubtedly be found.
For an explanation of the algorithm, it's simplest to look
at these examples:
1.1 < 1.2
1.1a < 1.2
1.1 < 1.1.1
1.1 < 1.1a
1.1.a < 1.1a
1 < a
a < b
1 < 2
1 < 0002
1.5 < 1.06
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/p5-Sort-Versions | 1.62 |
| FreeBSD | devel/p5-Sort-Versions | 1.62 |
| OpenBSD | textproc/p5-Sort-Versions | 1.62p0 |
| NetBSD | devel/p5-Sort-Versions | 1.62nb11 |
| HardenedBSD | devel/p5-Sort-Versions | 1.62 |
| GhostBSD | devel/p5-Sort-Versions | 1.62 |
Install
Binary package:
pkg install p5-Sort-Versions
From DPorts:
cd /usr/dports/devel/p5-Sort-Versions && make install clean