diff options
author | lth <lth@FreeBSD.org> | 2004-12-27 22:50:44 +0800 |
---|---|---|
committer | lth <lth@FreeBSD.org> | 2004-12-27 22:50:44 +0800 |
commit | 4fc1701f6627edd57b4c1473b96b078a5312ef75 (patch) | |
tree | 6713a21b3d4d7c3c05411ddc5dca8a1164d7bf3b /devel/p5-Test-MockModule | |
parent | 1c85679ec16da6315c3604a6846dc9bbc845911d (diff) | |
download | freebsd-ports-gnome-4fc1701f6627edd57b4c1473b96b078a5312ef75.tar.gz freebsd-ports-gnome-4fc1701f6627edd57b4c1473b96b078a5312ef75.tar.zst freebsd-ports-gnome-4fc1701f6627edd57b4c1473b96b078a5312ef75.zip |
Add p5-Test-MockModule 0.04, override subroutines in a module for unit
testing.
Diffstat (limited to 'devel/p5-Test-MockModule')
-rw-r--r-- | devel/p5-Test-MockModule/Makefile | 31 | ||||
-rw-r--r-- | devel/p5-Test-MockModule/distinfo | 2 | ||||
-rw-r--r-- | devel/p5-Test-MockModule/pkg-descr | 4 | ||||
-rw-r--r-- | devel/p5-Test-MockModule/pkg-plist | 5 |
4 files changed, 42 insertions, 0 deletions
diff --git a/devel/p5-Test-MockModule/Makefile b/devel/p5-Test-MockModule/Makefile new file mode 100644 index 000000000000..c9443e2bb727 --- /dev/null +++ b/devel/p5-Test-MockModule/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: devel/p5-Test-MockModule +# Date created: 26 December 2004 +# Whom: Lars Thegler <lth@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= Test-MockModule +PORTVERSION= 0.04 +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Test +PKGNAMEPREFIX= p5- + +MAINTAINER= lth@FreeBSD.org +COMMENT= Override subroutines in a module for unit testing + +BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Scalar/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils \ + ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple +RUN_DEPENDS= ${BUILD_DEPENDS} + +PERL_CONFIGURE= yes + +MAN3= Test::MockModule.3 + +.include <bsd.port.pre.mk> +.if ${PERL_LEVEL} < 500600 +# Test::MockModule uses weak references, which are introduced in 5.6 +IGNORE= "Perl 5.6 or newer required. Install lang/perl5 or lang/perl5.8 and try again." +.endif +.include <bsd.port.post.mk> diff --git a/devel/p5-Test-MockModule/distinfo b/devel/p5-Test-MockModule/distinfo new file mode 100644 index 000000000000..6be0aa84f13d --- /dev/null +++ b/devel/p5-Test-MockModule/distinfo @@ -0,0 +1,2 @@ +MD5 (Test-MockModule-0.04.tar.gz) = 4d5e1e9f4b1477489fbab408e8c3499c +SIZE (Test-MockModule-0.04.tar.gz) = 5414 diff --git a/devel/p5-Test-MockModule/pkg-descr b/devel/p5-Test-MockModule/pkg-descr new file mode 100644 index 000000000000..dfbba92c35a2 --- /dev/null +++ b/devel/p5-Test-MockModule/pkg-descr @@ -0,0 +1,4 @@ +Test::MockModule lets you temporarily redefine subroutines in other +packages for the purposes of unit testing. + +WWW: http://search.cpan.org/dist/Test-MockModule diff --git a/devel/p5-Test-MockModule/pkg-plist b/devel/p5-Test-MockModule/pkg-plist new file mode 100644 index 000000000000..8d2d4aea63fa --- /dev/null +++ b/devel/p5-Test-MockModule/pkg-plist @@ -0,0 +1,5 @@ +%%SITE_PERL%%/Test/MockModule.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Test/MockModule/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Test/MockModule +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Test 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/Test 2>/dev/null || true |