git: f101560ae9bd - main - devel/p5-Test-Lib: Add p5-Test-Lib 0.003
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 27 Aug 2022 10:30:32 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=f101560ae9bdc5a32dac66ead540617d30caad5b commit f101560ae9bdc5a32dac66ead540617d30caad5b Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-08-27 10:10:10 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-08-27 10:10:10 +0000 devel/p5-Test-Lib: Add p5-Test-Lib 0.003 Test::Lib searches upward from the calling module for a directory t with a lib directory inside it, and adds it to the module search path. Looks upward up to 5 directories. This is intended to be used in test modules either directly in t or in a subdirectory to find their included testing libraries located in t/lib. WWW: https://metacpan.org/dist/Test-Lib --- devel/Makefile | 1 + devel/p5-Test-Lib/Makefile | 19 +++++++++++++++++++ devel/p5-Test-Lib/distinfo | 3 +++ devel/p5-Test-Lib/pkg-descr | 6 ++++++ devel/p5-Test-Lib/pkg-plist | 2 ++ 5 files changed, 31 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 820ce57719dd..7922f5874a32 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -3440,6 +3440,7 @@ SUBDIR += p5-Test-Lazy SUBDIR += p5-Test-LeakTrace SUBDIR += p5-Test-LectroTest + SUBDIR += p5-Test-Lib SUBDIR += p5-Test-LoadAllModules SUBDIR += p5-Test-Log-Log4perl SUBDIR += p5-Test-Log4perl diff --git a/devel/p5-Test-Lib/Makefile b/devel/p5-Test-Lib/Makefile new file mode 100644 index 000000000000..53008d207fda --- /dev/null +++ b/devel/p5-Test-Lib/Makefile @@ -0,0 +1,19 @@ +PORTNAME= Test-Lib +PORTVERSION= 0.003 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Use libraries from a t/lib directory + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/p5-Test-Lib/distinfo b/devel/p5-Test-Lib/distinfo new file mode 100644 index 000000000000..951f32046388 --- /dev/null +++ b/devel/p5-Test-Lib/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1660576668 +SHA256 (Test-Lib-0.003.tar.gz) = d84b48d92567cba3d0afb1e8175aab836bfa8a838e19ac9080cabc2e3f9dc9f5 +SIZE (Test-Lib-0.003.tar.gz) = 10518 diff --git a/devel/p5-Test-Lib/pkg-descr b/devel/p5-Test-Lib/pkg-descr new file mode 100644 index 000000000000..2b79114fcac5 --- /dev/null +++ b/devel/p5-Test-Lib/pkg-descr @@ -0,0 +1,6 @@ +Test::Lib searches upward from the calling module for a directory t with a lib +directory inside it, and adds it to the module search path. Looks upward up to 5 +directories. This is intended to be used in test modules either directly in t or +in a subdirectory to find their included testing libraries located in t/lib. + +WWW: https://metacpan.org/dist/Test-Lib diff --git a/devel/p5-Test-Lib/pkg-plist b/devel/p5-Test-Lib/pkg-plist new file mode 100644 index 000000000000..12d365134ae1 --- /dev/null +++ b/devel/p5-Test-Lib/pkg-plist @@ -0,0 +1,2 @@ +%%SITE_PERL%%/Test/Lib.pm +%%PERL5_MAN3%%/Test::Lib.3.gz