git: b58c534bee8d - main - devel/p5-Types-Self: New port p5-Types-Self

From: Rodrigo Osorio <rodrigo_at_FreeBSD.org>
Date: Wed, 21 Feb 2024 09:36:08 UTC
The branch main has been updated by rodrigo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b58c534bee8d97c9be5bec4c77170ddd9d79dea3

commit b58c534bee8d97c9be5bec4c77170ddd9d79dea3
Author:     Rodrigo Osorio <rodrigo@FreeBSD.org>
AuthorDate: 2024-02-21 09:21:10 +0000
Commit:     Rodrigo Osorio <rodrigo@FreeBSD.org>
CommitDate: 2024-02-21 09:34:45 +0000

    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
---
 devel/Makefile                |  1 +
 devel/p5-Types-Self/Makefile  | 25 +++++++++++++++++++++++++
 devel/p5-Types-Self/distinfo  |  3 +++
 devel/p5-Types-Self/pkg-descr |  4 ++++
 devel/p5-Types-Self/pkg-plist |  2 ++
 5 files changed, 35 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 0717c2daede4..f10d96a066f4 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -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
diff --git a/devel/p5-Types-Self/Makefile b/devel/p5-Types-Self/Makefile
new file mode 100644
index 000000000000..fcc0a3bf382f
--- /dev/null
+++ b/devel/p5-Types-Self/Makefile
@@ -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>
diff --git a/devel/p5-Types-Self/distinfo b/devel/p5-Types-Self/distinfo
new file mode 100644
index 000000000000..55d032afee2e
--- /dev/null
+++ b/devel/p5-Types-Self/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1708505165
+SHA256 (Types-Self-0.002.tar.gz) = 9c017076c99429ea0fd41f2ba07462fe96bc533b06f07a96ab7cdf3518bb4989
+SIZE (Types-Self-0.002.tar.gz) = 15307
diff --git a/devel/p5-Types-Self/pkg-descr b/devel/p5-Types-Self/pkg-descr
new file mode 100644
index 000000000000..f74deab9a6b3
--- /dev/null
+++ b/devel/p5-Types-Self/pkg-descr
@@ -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.
diff --git a/devel/p5-Types-Self/pkg-plist b/devel/p5-Types-Self/pkg-plist
new file mode 100644
index 000000000000..2497a8e169bb
--- /dev/null
+++ b/devel/p5-Types-Self/pkg-plist
@@ -0,0 +1,2 @@
+%%SITE_PERL%%/Types/Self.pm
+%%PERL5_MAN3%%/Types::Self.3.gz