From 1fcbcc8f73558db99509c06377e1fc8e687b1f32 Mon Sep 17 00:00:00 2001 From: jasper Date: Tue, 15 Apr 2008 21:39:57 +0000 Subject: [PATCH] import Module::Loaded 0.01 When testing applications, often you find yourself needing to provide functionality in your test environment that would usually be provided by external modules. Rather than munging the %INC by hand to mark these external modules as loaded, so they are not attempted to be loaded by perl, this module offers you a very simple way to mark modules as loaded and/or unloaded. --- devel/p5-Module-Loaded/Makefile | 17 +++++++++++++++++ devel/p5-Module-Loaded/distinfo | 5 +++++ devel/p5-Module-Loaded/pkg/DESCR | 6 ++++++ devel/p5-Module-Loaded/pkg/PLIST | 4 ++++ 4 files changed, 32 insertions(+) create mode 100644 devel/p5-Module-Loaded/Makefile create mode 100644 devel/p5-Module-Loaded/distinfo create mode 100644 devel/p5-Module-Loaded/pkg/DESCR create mode 100644 devel/p5-Module-Loaded/pkg/PLIST diff --git a/devel/p5-Module-Loaded/Makefile b/devel/p5-Module-Loaded/Makefile new file mode 100644 index 00000000000..03f6c09fedd --- /dev/null +++ b/devel/p5-Module-Loaded/Makefile @@ -0,0 +1,17 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2008/04/15 21:39:57 jasper Exp $ + +COMMENT= mark modules as loaded or unloaded + +DISTNAME= Module-Loaded-0.01 +CATEGORIES= devel + +# perl +PERMIT_PACKAGE_FTP= Yes +PERMIT_PACKAGE_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes + +MODULES= cpan +CPAN_AUTHOR= KANE + +.include diff --git a/devel/p5-Module-Loaded/distinfo b/devel/p5-Module-Loaded/distinfo new file mode 100644 index 00000000000..dbbca499c7f --- /dev/null +++ b/devel/p5-Module-Loaded/distinfo @@ -0,0 +1,5 @@ +MD5 (Module-Loaded-0.01.tar.gz) = vygwx1tM546+7n9e0HTqKg== +RMD160 (Module-Loaded-0.01.tar.gz) = YDDauge2/KX8jfyKl+ln098VQEw= +SHA1 (Module-Loaded-0.01.tar.gz) = EDzLkCJM92WsHGjWQ+dBEqyNb8Y= +SHA256 (Module-Loaded-0.01.tar.gz) = OjtP5bcMkG/YxVIBFCOxx7+p0SMNXVPqVe80/VISZkY= +SIZE (Module-Loaded-0.01.tar.gz) = 2848 diff --git a/devel/p5-Module-Loaded/pkg/DESCR b/devel/p5-Module-Loaded/pkg/DESCR new file mode 100644 index 00000000000..0412236118a --- /dev/null +++ b/devel/p5-Module-Loaded/pkg/DESCR @@ -0,0 +1,6 @@ +When testing applications, often you find yourself needing to provide +functionality in your test environment that would usually be provided by +external modules. Rather than munging the %INC by hand to mark these +external modules as loaded, so they are not attempted to be loaded by +perl, this module offers you a very simple way to mark modules as loaded +and/or unloaded. diff --git a/devel/p5-Module-Loaded/pkg/PLIST b/devel/p5-Module-Loaded/pkg/PLIST new file mode 100644 index 00000000000..29d3f8dbdab --- /dev/null +++ b/devel/p5-Module-Loaded/pkg/PLIST @@ -0,0 +1,4 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2008/04/15 21:39:57 jasper Exp $ +${P5SITE}/Module/ +${P5SITE}/Module/Loaded.pm +@man man/man3p/Module::Loaded.3p