BSD Ports

devel/p5-Data-Sah-Coerce 0.054 DragonFly

Coercion rules for Data::Sah

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
106.6 KiB, 299.5 KiB installed

Description

Data::Sah::Coerce contains a standard set of coercion rules for Data::Sah. It is separated from the Data-Sah distribution and can be used independently.

A coercion rule is put in Data::Sah::Coerce::$COMPILER::To_$TARGET_TYPE::From_$SOURCE_TYPE::DESCRIPTION module, for example: Data::Sah::Coerce::perl::To_date::From_float::epoch for converting date from integer (Unix epoch) or Data::Sah::Coerce::perl::To_date::From_str::iso8601 for converting date from ISO8601 strings like "2016-05-15".

Basically, a coercion rule will provide an expression (expr_match) that evaluates to true when data can be coerced, and an expression (expr_coerce) to actually coerce/convert data to the target type. This rule can be combined with other rules to form the final coercion code.

In the other systems

The newest version among them is 0.054, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/p5-Data-Sah-Coerce0.054 newestnone known-[email protected]-
FreeBSDdevel/p5-Data-Sah-Coerce0.054 newestnone known-[email protected]-
HardenedBSDdevel/p5-Data-Sah-Coerce0.054 newestno data-[email protected]-
GhostBSDdevel/p5-Data-Sah-Coerce0.054 newestno data-[email protected]-

Version history 1

  1. 0.054

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

pkg install p5-Data-Sah-Coerce

From DPorts:

cd /usr/dports/devel/p5-Data-Sah-Coerce && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 7
Required by 1