devel/p5-Types-Self: New port p5-Types-Self

Perl module exports a Self type constraint which constrains
values to be blessed objects in the same class as the package
it was imported into.

Required by devel/p5-OrePAN2 to run the tests
This commit is contained in:
Rodrigo Osorio 2024-02-21 10:21:10 +01:00
parent 82f8dde1b6
commit b58c534bee
5 changed files with 35 additions and 0 deletions

View file

@ -3757,6 +3757,7 @@
SUBDIR += p5-Types-Core
SUBDIR += p5-Types-Path-Tiny
SUBDIR += p5-Types-Serialiser
SUBDIR += p5-Types-Self
SUBDIR += p5-Types-URI
SUBDIR += p5-Types-UUID
SUBDIR += p5-UDCode

View file

@ -0,0 +1,25 @@
PORTNAME= Types-Self
PORTVERSION= 0.002
CATEGORIES= devel perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:TOBYINK
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= Perl Self type to constrains values to be blessed objects
WWW= https://metacpan.org/release/OrePAN2
LICENSE= ART10 GPLv1+
LICENSE_COMB= dual
TEST_DEPENDS= p5-Role-Hooks>0:devel/p5-Role-Hooks \
p5-Role-Tiny>0:devel/p5-Role-Tiny \
p5-Type-Tiny>0:devel/p5-Type-Tiny
USES= perl5
USE_PERL5= configure
NO_ARCH= YES
NO_ARCH= yes
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1708505165
SHA256 (Types-Self-0.002.tar.gz) = 9c017076c99429ea0fd41f2ba07462fe96bc533b06f07a96ab7cdf3518bb4989
SIZE (Types-Self-0.002.tar.gz) = 15307

View file

@ -0,0 +1,4 @@
This module exports a Self type constraint which constrains values
to be blessed objects in the same class as the package it was
imported into, or blessed objects which consume the role it was
imported into. It should do the right thing with inheritance.

View file

@ -0,0 +1,2 @@
%%SITE_PERL%%/Types/Self.pm
%%PERL5_MAN3%%/Types::Self.3.gz