Adding port devel/p5-Module-Loaded, an easy way to mark modules as loaded or unloaded.

Approved by:	tobez (implicit)
This commit is contained in:
Aaron Dalton 2006-05-31 18:32:56 +00:00
parent f065d38d92
commit e50972787b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=164102
5 changed files with 48 additions and 0 deletions

View file

@ -1096,6 +1096,7 @@
SUBDIR += p5-Module-Install
SUBDIR += p5-Module-Load
SUBDIR += p5-Module-Load-Conditional
SUBDIR += p5-Module-Loaded
SUBDIR += p5-Module-Pluggable
SUBDIR += p5-Module-Pluggable-Fast
SUBDIR += p5-Module-Pluggable-Ordered

View file

@ -0,0 +1,30 @@
# New ports collection makefile for: p5-Module-Loaded
# Date created: 31 May 2006
# Whom: Aaron Dalton <aaron@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Module-Loaded
PORTVERSION= 0.01
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Module
PKGNAMEPREFIX= p5-
MAINTAINER= aaron@FreeBSD.org
COMMENT= Mark modules as loaded or unloaded
BUILD_DEPENDS= ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
MAN3= Module::Loaded.3
PERL_CONFIGURE= yes
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
IGNORE= requires at least Perl 5.6. Please install lang/perl5.8 and try again
.endif
.include <bsd.port.post.mk>

View file

@ -0,0 +1,3 @@
MD5 (Module-Loaded-0.01.tar.gz) = bf2830c75b4ce78ebeee7f5ed074ea2a
SHA256 (Module-Loaded-0.01.tar.gz) = 3a3b4fe5b70c906fd8c552011423b1c7bfa9d1230d5d53ea55ef34fd52126646
SIZE (Module-Loaded-0.01.tar.gz) = 2848

View file

@ -0,0 +1,9 @@
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.
WWW: http://search.cpan.org/dist/Module-Loaded
Author: Jos Boumans <kane@cpan.org>

View file

@ -0,0 +1,5 @@
%%SITE_PERL%%/Module/Loaded.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Module/Loaded/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Module/Loaded
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Module
@dirrmtry %%SITE_PERL%%/Module