devel/p5-Data-Cmp 0.010 FreeBSD
Compare two data structures, return -1/0/1 like cmp
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 18.6 KiB, 61.1 KiB installed
Description
This relatively lightweight (no non-core dependencies, under 100 lines of code) module offers the cmp_data function that, like Perl's cmp, returns -1/0/1 value. cmp_data differs from cmp in that it can compare two data of different types and compare data items recursively, with pretty sensible semantics. In addition to returning -1/0/1, cmp_data can also return 2 if two data differ but not comparable: there is no sensible notion of which one is "greater than" the other. An example is empty hash {} vs empty array []).
This module can handle circular structure.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-Data-Cmp | 0.010 |
| DragonFly | devel/p5-Data-Cmp | 0.010 |
| HardenedBSD | devel/p5-Data-Cmp | 0.010 |
| GhostBSD | devel/p5-Data-Cmp | 0.010 |
Install
Binary package:
pkg install p5-Data-Cmp
From the ports tree:
cd /usr/ports/devel/p5-Data-Cmp/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Data-Cmp>0:devel/p5-Data-Cmp
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.010 | 0.010 | - | 0.010 | 0.010 |
| FreeBSD:14:quarterly | 0.010 | 0.010 | n/a | 0.010 | 0.010 |
| FreeBSD:15:latest | 0.010 | 0.010 | n/a | 0.010 | 0.010 |
| FreeBSD:15:quarterly | 0.010 | 0.010 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.010 | 0.010 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 1
Run dependencies 1
Required by 1
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 6
- %%SITE_PERL%%/Data/Cmp.pm
- %%SITE_PERL%%/Data/Cmp/Numeric.pm
- %%SITE_PERL%%/Data/Cmp/StrOrNumeric.pm
- %%PERL5_MAN3%%/Data::Cmp.3.gz
- %%PERL5_MAN3%%/Data::Cmp::Numeric.3.gz
- %%PERL5_MAN3%%/Data::Cmp::StrOrNumeric.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Data-Cmp-0.010.tar.gz | 18145 | 96cc24b12e90c7f1a583870f13daee244ebcc765a0d8abbb5e49b6b977b45210 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.