git: b909e6890b55 - main - devel/p5-Type-TinyX-Facets: Add p5-Type-TinyX-Facets 1.3
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 28 Jan 2025 17:06:01 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=b909e6890b554f5f8a9ef4b3e9ce5d1ef805742b commit b909e6890b554f5f8a9ef4b3e9ce5d1ef805742b Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2025-01-28 16:48:44 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2025-01-28 16:48:44 +0000 devel/p5-Type-TinyX-Facets: Add p5-Type-TinyX-Facets 1.3 Type::TinyX::Facets make it easy to create parameterized types with facets. Type::Tiny allows definition of types which can accept parameters: use Types::Standard -types; my $t1 = Array[Int]; my $t2 = Tuple[Int, HashRef]; This defines $t1 as an array of integers. and $t2 as a tuple of two elements, an integer and a hash. Parameters are passed as a list to the parameterized constraint generation machinery, and there is great freedom in how they may be interpreted. This module makes it easy to create a parameterized type which takes name - value pairs or,facets. (The terminology is taken from Types::XSD::Lite, to which this module owes its existence.) --- devel/Makefile | 1 + devel/p5-Type-TinyX-Facets/Makefile | 28 ++++++++++++++++++++++++++++ devel/p5-Type-TinyX-Facets/distinfo | 3 +++ devel/p5-Type-TinyX-Facets/pkg-descr | 16 ++++++++++++++++ devel/p5-Type-TinyX-Facets/pkg-plist | 2 ++ 5 files changed, 50 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index d63c8334f9e9..1f84ec4d1c7f 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -3884,6 +3884,7 @@ SUBDIR += p5-Type-Tiny SUBDIR += p5-Type-Tiny-Signatures SUBDIR += p5-Type-Tiny-XS + SUBDIR += p5-Type-TinyX-Facets SUBDIR += p5-Types-Core SUBDIR += p5-Types-PDL SUBDIR += p5-Types-Path-Tiny diff --git a/devel/p5-Type-TinyX-Facets/Makefile b/devel/p5-Type-TinyX-Facets/Makefile new file mode 100644 index 000000000000..4d8c15bf5b96 --- /dev/null +++ b/devel/p5-Type-TinyX-Facets/Makefile @@ -0,0 +1,28 @@ +PORTNAME= Type-TinyX-Facets +PORTVERSION= 1.3 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:DJERIUS +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Easily create a facet parameterized Type::Tiny type +WWW= https://metacpan.org/dist/Type-TinyX-Facets + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= p5-Exporter-Tiny>=0:devel/p5-Exporter-Tiny \ + p5-Safe-Isa>=0:devel/p5-Safe-Isa \ + p5-Type-Tiny>=0:devel/p5-Type-Tiny +TEST_DEPENDS= p5-Test-Lib>=0:devel/p5-Test-Lib \ + p5-Test-Simple>=1.302200:devel/p5-Test-Simple + +USES= perl5 +USE_PERL5= modbuildtiny + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/p5-Type-TinyX-Facets/distinfo b/devel/p5-Type-TinyX-Facets/distinfo new file mode 100644 index 000000000000..7313b6628db9 --- /dev/null +++ b/devel/p5-Type-TinyX-Facets/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1736671123 +SHA256 (Type-TinyX-Facets-1.3.tar.gz) = 60553c7a9527c5253b3bf005fe3d9de2503c7ef2baa339fec917c7b6f5f20bc0 +SIZE (Type-TinyX-Facets-1.3.tar.gz) = 23303 diff --git a/devel/p5-Type-TinyX-Facets/pkg-descr b/devel/p5-Type-TinyX-Facets/pkg-descr new file mode 100644 index 000000000000..e5eeeeda4d24 --- /dev/null +++ b/devel/p5-Type-TinyX-Facets/pkg-descr @@ -0,0 +1,16 @@ +Type::TinyX::Facets make it easy to create parameterized types with facets. + +Type::Tiny allows definition of types which can accept parameters: + use Types::Standard -types; + my $t1 = Array[Int]; + my $t2 = Tuple[Int, HashRef]; + +This defines $t1 as an array of integers. and $t2 as a tuple of two elements, an +integer and a hash. + +Parameters are passed as a list to the parameterized constraint generation +machinery, and there is great freedom in how they may be interpreted. + +This module makes it easy to create a parameterized type which takes name - +value pairs or,facets. (The terminology is taken from Types::XSD::Lite, to which +this module owes its existence.) diff --git a/devel/p5-Type-TinyX-Facets/pkg-plist b/devel/p5-Type-TinyX-Facets/pkg-plist new file mode 100644 index 000000000000..8799fce688f5 --- /dev/null +++ b/devel/p5-Type-TinyX-Facets/pkg-plist @@ -0,0 +1,2 @@ +%%SITE_PERL%%/Type/TinyX/Facets.pm +%%PERL5_MAN3%%/Type::TinyX::Facets.3.gz