git: 78433dfae9d5 - main - devel/p5-Test2-Tools-LoadModule: new port

From: Wen Heping <wen_at_FreeBSD.org>
Date: Sun, 07 Apr 2024 12:16:30 UTC
The branch main has been updated by wen:

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

commit 78433dfae9d54281634810c5ef642d3ec49fc137
Author:     Wen Heping <wen@FreeBSD.org>
AuthorDate: 2024-04-07 12:14:59 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2024-04-07 12:14:59 +0000

    devel/p5-Test2-Tools-LoadModule: new port
    
    This Test2::Tools module tests whether a module can be loaded, and optionally
    whether it has at least a given version, and exports specified symbols.
---
 devel/Makefile                            |  1 +
 devel/p5-Test2-Tools-LoadModule/Makefile  | 19 +++++++++++++++++++
 devel/p5-Test2-Tools-LoadModule/distinfo  |  3 +++
 devel/p5-Test2-Tools-LoadModule/pkg-descr |  2 ++
 devel/p5-Test2-Tools-LoadModule/pkg-plist |  2 ++
 5 files changed, 27 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 8cdb915ae507..23fce0037399 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -3682,6 +3682,7 @@
     SUBDIR += p5-Test2-Suite
     SUBDIR += p5-Test2-Tools-Explain
     SUBDIR += p5-Test2-Tools-FFI
+    SUBDIR += p5-Test2-Tools-LoadModule
     SUBDIR += p5-Test2-Tools-MemoryCycle
     SUBDIR += p5-Text-Levenshtein
     SUBDIR += p5-Text-Levenshtein-Damerau
diff --git a/devel/p5-Test2-Tools-LoadModule/Makefile b/devel/p5-Test2-Tools-LoadModule/Makefile
new file mode 100644
index 000000000000..1a3b7f425a4a
--- /dev/null
+++ b/devel/p5-Test2-Tools-LoadModule/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	Test2-Tools-LoadModule
+PORTVERSION=	0.008
+CATEGORIES=	devel perl5
+MASTER_SITES=	CPAN
+MASTER_SITE_SUBDIR=	CPAN:WYANT
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	wen@FreeBSD.org
+COMMENT=	Test whether a module can be successfully loaded
+WWW=		https://metacpan.org/release/Test2-Tools-LoadModule
+
+LICENSE=	ART20
+
+USES=		perl5
+USE_PERL5=	configure
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Test2-Tools-LoadModule/distinfo b/devel/p5-Test2-Tools-LoadModule/distinfo
new file mode 100644
index 000000000000..963d6d1994ed
--- /dev/null
+++ b/devel/p5-Test2-Tools-LoadModule/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1712479191
+SHA256 (Test2-Tools-LoadModule-0.008.tar.gz) = 92d1bad4b637b7e3c40e2f4d0f18527855e993f27a6595322433c05696520af2
+SIZE (Test2-Tools-LoadModule-0.008.tar.gz) = 40260
diff --git a/devel/p5-Test2-Tools-LoadModule/pkg-descr b/devel/p5-Test2-Tools-LoadModule/pkg-descr
new file mode 100644
index 000000000000..7af18eb27b38
--- /dev/null
+++ b/devel/p5-Test2-Tools-LoadModule/pkg-descr
@@ -0,0 +1,2 @@
+This Test2::Tools module tests whether a module can be loaded, and optionally
+whether it has at least a given version, and exports specified symbols.
diff --git a/devel/p5-Test2-Tools-LoadModule/pkg-plist b/devel/p5-Test2-Tools-LoadModule/pkg-plist
new file mode 100644
index 000000000000..4958b9de31f7
--- /dev/null
+++ b/devel/p5-Test2-Tools-LoadModule/pkg-plist
@@ -0,0 +1,2 @@
+%%SITE_PERL%%/Test2/Tools/LoadModule.pm
+%%PERL5_MAN3%%/Test2::Tools::LoadModule.3.gz