aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-09-05 05:13:53 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-09-05 06:11:18 +0000
commit7fd42539c8bffb80ba0081aaf41567f20ff61abe (patch)
tree1e5eece2e81bc5e14ac4f0ec92c0e09c36cf6f9c
parente83a453f6a713df429323dcd0f0e8b0f7518da27 (diff)
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.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-lib-filter/Makefile24
-rw-r--r--devel/p5-lib-filter/distinfo3
-rw-r--r--devel/p5-lib-filter/pkg-descr3
-rw-r--r--devel/p5-lib-filter/pkg-plist8
5 files changed, 39 insertions, 0 deletions
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