git: 4beca07dc70c - main - devel/p5-Role-Hooks: Add p5-Role-Hooks 0.008

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 07 Jul 2022 21:43:36 UTC
The branch main has been updated by sunpoet:

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

commit 4beca07dc70c4aab75e57dee70db340678428e69
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-07-07 21:25:16 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-07-07 21:25:16 +0000

    devel/p5-Role-Hooks: Add p5-Role-Hooks 0.008
    
    Role::Hooks allows a role to run a callback when it is applied to a class or to
    another role.
    
    WWW: https://metacpan.org/dist/Role-Hooks
---
 devel/Makefile                |  1 +
 devel/p5-Role-Hooks/Makefile  | 25 +++++++++++++++++++++++++
 devel/p5-Role-Hooks/distinfo  |  3 +++
 devel/p5-Role-Hooks/pkg-descr |  4 ++++
 devel/p5-Role-Hooks/pkg-plist |  2 ++
 5 files changed, 35 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index fc85bf3b329c..42cb67a3647c 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -3159,6 +3159,7 @@
     SUBDIR += p5-Rinci
     SUBDIR += p5-Role-Basic
     SUBDIR += p5-Role-HasMessage
+    SUBDIR += p5-Role-Hooks
     SUBDIR += p5-Role-Identifiable
     SUBDIR += p5-Role-Tiny
     SUBDIR += p5-Rose-DateTime
diff --git a/devel/p5-Role-Hooks/Makefile b/devel/p5-Role-Hooks/Makefile
new file mode 100644
index 000000000000..35018f4930e1
--- /dev/null
+++ b/devel/p5-Role-Hooks/Makefile
@@ -0,0 +1,25 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME=	Role-Hooks
+PORTVERSION=	0.008
+CATEGORIES=	devel perl5
+MASTER_SITES=	CPAN
+MASTER_SITE_SUBDIR=	CPAN:TOBYINK
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Role callbacks
+
+LICENSE=	ART10 GPLv1+
+LICENSE_COMB=	dual
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${RUN_DEPENDS}
+RUN_DEPENDS=	p5-Class-Method-Modifiers>=0:devel/p5-Class-Method-Modifiers
+
+USES=		perl5
+USE_PERL5=	configure
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Role-Hooks/distinfo b/devel/p5-Role-Hooks/distinfo
new file mode 100644
index 000000000000..ebd91bd64dee
--- /dev/null
+++ b/devel/p5-Role-Hooks/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1657198911
+SHA256 (Role-Hooks-0.008.tar.gz) = 28d66ea0a8dc306b76da83ff0879493d808f73185bcf9c4ed372f3946fb543ec
+SIZE (Role-Hooks-0.008.tar.gz) = 25184
diff --git a/devel/p5-Role-Hooks/pkg-descr b/devel/p5-Role-Hooks/pkg-descr
new file mode 100644
index 000000000000..53f135ca1e4c
--- /dev/null
+++ b/devel/p5-Role-Hooks/pkg-descr
@@ -0,0 +1,4 @@
+Role::Hooks allows a role to run a callback when it is applied to a class or to
+another role.
+
+WWW: https://metacpan.org/dist/Role-Hooks
diff --git a/devel/p5-Role-Hooks/pkg-plist b/devel/p5-Role-Hooks/pkg-plist
new file mode 100644
index 000000000000..784a5096efc3
--- /dev/null
+++ b/devel/p5-Role-Hooks/pkg-plist
@@ -0,0 +1,2 @@
+%%SITE_PERL%%/Role/Hooks.pm
+%%PERL5_MAN3%%/Role::Hooks.3.gz