BSD Ports

devel/p5-Data-Domain 1.16 FreeBSD

Data description and validation

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
devel, perl5
Package size
46.5 KiB, 119.6 KiB installed

Description

A data domain is a description of a set of values, either scalar or structured (arrays or hashes). The description can include many constraints, like minimal or maximal values, regular expressions, required fields, forbidden fields, and also contextual dependencies. From that description, one can then invoke the domain's inspect method to check if a given value belongs to it or not. In case of mismatch, a structured set of error messages is returned.

The motivation for writing this package was to be able to express in a compact way some possibly complex constraints about structured data. Typically the data is a Perl tree (nested hashrefs or arrayrefs) that may come from XML, JSON, from a database through DBIx::DataModel, or from postprocessing an HTML form through CGI::Expand. Data::Domain is a kind of tree parser on that structure, with some facilities for dealing with dependencies within the structure, and with several options to finely tune the error messages returned to the user.

In the other systems

SystemPortVersion
FreeBSDdevel/p5-Data-Domain1.16
DragonFlydevel/p5-Data-Domain1.16

Install

Binary package:

pkg install p5-Data-Domain

From the ports tree:

cd /usr/ports/devel/p5-Data-Domain/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Data-Domain>0:devel/p5-Data-Domain

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.161.161.071.161.16
FreeBSD:14:quarterly1.161.16n/a1.161.16
FreeBSD:15:latest1.161.16n/a1.161.16
FreeBSD:15:quarterly1.161.16n/an/an/a
FreeBSD:16:latest1.161.16n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 7

Runtime 7

Test 4

The full lists below include those, and their dependencies in turn.

Build dependencies 37
Run dependencies 36

Configuration

Options name: devel_Data-Domain

OptionDefaultDescription
RECOMMENDEDonRecommended dependencies by upstream
USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/Data/Domain.pm
  • %%PERL5_MAN3%%/Data::Domain.3.gz
distinfo 1
FileSizeSHA256
Data-Domain-1.16.tar.gz453141cbe277ffea65848577f9b51aa8950def4ace238d4830ea853f25e0205571b1a
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.