git: c8b6d04b5c7c - main - devel/p5-Mock-Sub: Add p5-Mock-Sub 1.09

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 18 Apr 2022 00:00:14 UTC
The branch main has been updated by sunpoet:

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

commit c8b6d04b5c7c61f147be34ead5b624aefed15c7d
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-04-17 23:39:04 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-04-17 23:39:04 +0000

    devel/p5-Mock-Sub: Add p5-Mock-Sub 1.09
    
    Easy to use and very lightweight module for mocking out sub calls. Very useful
    for testing areas of your own modules where getting coverage may be difficult
    due to nothing to test against, and/or to reduce test run time by eliminating
    the need to call subs that you really don't want or need to test.
    
    WWW: https://metacpan.org/dist/Mock-Sub
---
 devel/Makefile              |  1 +
 devel/p5-Mock-Sub/Makefile  | 21 +++++++++++++++++++++
 devel/p5-Mock-Sub/distinfo  |  3 +++
 devel/p5-Mock-Sub/pkg-descr |  6 ++++++
 devel/p5-Mock-Sub/pkg-plist |  4 ++++
 5 files changed, 35 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index fecf885f4ce5..7ad4bb66e351 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -2794,6 +2794,7 @@
     SUBDIR += p5-Mo
     SUBDIR += p5-Mock-MonkeyPatch
     SUBDIR += p5-Mock-Quick
+    SUBDIR += p5-Mock-Sub
     SUBDIR += p5-Module-Build
     SUBDIR += p5-Module-Build-Convert
     SUBDIR += p5-Module-Build-Kwalitee
diff --git a/devel/p5-Mock-Sub/Makefile b/devel/p5-Mock-Sub/Makefile
new file mode 100644
index 000000000000..b0df6d4d4b56
--- /dev/null
+++ b/devel/p5-Mock-Sub/Makefile
@@ -0,0 +1,21 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME=	Mock-Sub
+PORTVERSION=	1.09
+CATEGORIES=	devel perl5
+MASTER_SITES=	CPAN
+MASTER_SITE_SUBDIR=	CPAN:STEVEB
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Mock package, object and standard subroutines, with unit testing in mind
+
+LICENSE=	ART10 GPLv1+
+LICENSE_COMB=	dual
+
+USES=		perl5
+USE_PERL5=	configure
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Mock-Sub/distinfo b/devel/p5-Mock-Sub/distinfo
new file mode 100644
index 000000000000..1c5c35668c2b
--- /dev/null
+++ b/devel/p5-Mock-Sub/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1650228644
+SHA256 (Mock-Sub-1.09.tar.gz) = 86ac0ff242e712df040c559aa0dcb871914d92f4b86977cf1402b6f8131a9c10
+SIZE (Mock-Sub-1.09.tar.gz) = 17364
diff --git a/devel/p5-Mock-Sub/pkg-descr b/devel/p5-Mock-Sub/pkg-descr
new file mode 100644
index 000000000000..aedda562ea06
--- /dev/null
+++ b/devel/p5-Mock-Sub/pkg-descr
@@ -0,0 +1,6 @@
+Easy to use and very lightweight module for mocking out sub calls. Very useful
+for testing areas of your own modules where getting coverage may be difficult
+due to nothing to test against, and/or to reduce test run time by eliminating
+the need to call subs that you really don't want or need to test.
+
+WWW: https://metacpan.org/dist/Mock-Sub
diff --git a/devel/p5-Mock-Sub/pkg-plist b/devel/p5-Mock-Sub/pkg-plist
new file mode 100644
index 000000000000..cde6f1155d29
--- /dev/null
+++ b/devel/p5-Mock-Sub/pkg-plist
@@ -0,0 +1,4 @@
+%%SITE_PERL%%/Mock/Sub.pm
+%%SITE_PERL%%/Mock/Sub/Child.pm
+%%PERL5_MAN3%%/Mock::Sub.3.gz
+%%PERL5_MAN3%%/Mock::Sub::Child.3.gz