git: 7fd42539c8bf - main - devel/p5-lib-filter: Add p5-lib-filter 0.281
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 05 Sep 2024 06:19:26 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=7fd42539c8bffb80ba0081aaf41567f20ff61abe commit 7fd42539c8bffb80ba0081aaf41567f20ff61abe Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-09-05 05:13:53 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-09-05 06:11:18 +0000 devel/p5-lib-filter: Add p5-lib-filter 0.281 lib::filter lets you allow/disallow loading modules using some rules. It works by installing a coderef in @INC (and additionally by pruning some entries in @INC). The main use-case for this pragma is for testing. --- devel/Makefile | 1 + devel/p5-lib-filter/Makefile | 24 ++++++++++++++++++++++++ devel/p5-lib-filter/distinfo | 3 +++ devel/p5-lib-filter/pkg-descr | 3 +++ devel/p5-lib-filter/pkg-plist | 8 ++++++++ 5 files changed, 39 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 898b634a9e59..548054a60e1c 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -3935,6 +3935,7 @@ SUBDIR += p5-latest SUBDIR += p5-lexical-underscore SUBDIR += p5-lib-abs + SUBDIR += p5-lib-filter SUBDIR += p5-libalarm SUBDIR += p5-libxml-enno SUBDIR += p5-local-lib diff --git a/devel/p5-lib-filter/Makefile b/devel/p5-lib-filter/Makefile new file mode 100644 index 000000000000..87662684fede --- /dev/null +++ b/devel/p5-lib-filter/Makefile @@ -0,0 +1,24 @@ +PORTNAME= lib-filter +PORTVERSION= 0.28.1 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- +DISTNAME= lib-filter-${PORTVERSION:R}${PORTVERSION:E} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Allow/disallow loading modules +WWW= https://metacpan.org/dist/lib-filter + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/LICENSE + +TEST_DEPENDS= p5-Module-Path-More>=0.32:devel/p5-Module-Path-More \ + p5-Test-Needs>=0:devel/p5-Test-Needs + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/p5-lib-filter/distinfo b/devel/p5-lib-filter/distinfo new file mode 100644 index 000000000000..22ed074e0caf --- /dev/null +++ b/devel/p5-lib-filter/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1724084470 +SHA256 (lib-filter-0.281.tar.gz) = 8f26354c5b264be383dabe47f99203230a941950f43fc86cfbcb0f3c62466f4c +SIZE (lib-filter-0.281.tar.gz) = 23434 diff --git a/devel/p5-lib-filter/pkg-descr b/devel/p5-lib-filter/pkg-descr new file mode 100644 index 000000000000..90a6c1250e9e --- /dev/null +++ b/devel/p5-lib-filter/pkg-descr @@ -0,0 +1,3 @@ +lib::filter lets you allow/disallow loading modules using some rules. It works +by installing a coderef in @INC (and additionally by pruning some entries in +@INC). The main use-case for this pragma is for testing. diff --git a/devel/p5-lib-filter/pkg-plist b/devel/p5-lib-filter/pkg-plist new file mode 100644 index 000000000000..a213868d7010 --- /dev/null +++ b/devel/p5-lib-filter/pkg-plist @@ -0,0 +1,8 @@ +%%SITE_PERL%%/lib/allow.pm +%%SITE_PERL%%/lib/coreplus.pm +%%SITE_PERL%%/lib/disallow.pm +%%SITE_PERL%%/lib/filter.pm +%%PERL5_MAN3%%/lib::allow.3.gz +%%PERL5_MAN3%%/lib::coreplus.3.gz +%%PERL5_MAN3%%/lib::disallow.3.gz +%%PERL5_MAN3%%/lib::filter.3.gz