diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2011-09-10 14:38:16 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2011-09-10 14:38:16 +0800 |
commit | 91515820cd38ec4fcd02b02fb5c689183cbde47d (patch) | |
tree | 7b6905815e9cd753e4f016fa343b87b455731f72 | |
parent | de08073d43b902b4ba9fdb61140b4bb43f0b2bd3 (diff) | |
download | freebsd-ports-gnome-91515820cd38ec4fcd02b02fb5c689183cbde47d.tar.gz freebsd-ports-gnome-91515820cd38ec4fcd02b02fb5c689183cbde47d.tar.zst freebsd-ports-gnome-91515820cd38ec4fcd02b02fb5c689183cbde47d.zip |
- Add p5-Test-Trap 0.2.1
Test::Trap is primarily (but not exclusively) for use in test scripts: a block
eval on steroids, configurable and extensible, but by default trapping (Perl)
STDOUT, STDERR, warnings, exceptions, would-be exit codes, and return values
from boxed blocks of test code.
The values collected by the latest trap can then be queried or tested through a
special trap object.
WWW: http://search.cpan.org/dist/Test-Trap/
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/p5-Test-Trap/Makefile | 42 | ||||
-rw-r--r-- | devel/p5-Test-Trap/distinfo | 2 | ||||
-rw-r--r-- | devel/p5-Test-Trap/pkg-descr | 9 | ||||
-rw-r--r-- | devel/p5-Test-Trap/pkg-plist | 11 |
5 files changed, 65 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index a42daa5569bc..6582ee76fea2 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -2428,6 +2428,7 @@ SUBDIR += p5-Test-Taint SUBDIR += p5-Test-TempDir SUBDIR += p5-Test-Tester + SUBDIR += p5-Test-Trap SUBDIR += p5-Test-Unit SUBDIR += p5-Test-UseAllModules SUBDIR += p5-Test-WWW-Declare diff --git a/devel/p5-Test-Trap/Makefile b/devel/p5-Test-Trap/Makefile new file mode 100644 index 000000000000..150e661a57fe --- /dev/null +++ b/devel/p5-Test-Trap/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: p5-Test-Trap +# Date created: 2011-09-10 +# Whom: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= Test-Trap +PORTVERSION= 0.2.1 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- +DISTNAME= ${PORTNAME}-v${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Trap exit codes, exceptions, output, etc + +BUILD_DEPENDS= p5-Data-Dump>=0:${PORTSDIR}/devel/p5-Data-Dump +RUN_DEPENDS= p5-Data-Dump>=0:${PORTSDIR}/devel/p5-Data-Dump + +TEST_DEPENDS= p5-Test-Tester>=0.10.7:${PORTSDIR}/devel/p5-Test-Tester + +PERL_CONFIGURE= yes + +MAN3= Test::Trap.3 \ + Test::Trap::Builder.3 \ + Test::Trap::Builder::PerlIO.3 \ + Test::Trap::Builder::SystemSafe.3 \ + Test::Trap::Builder::TempFile.3 + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 501000 +BUILD_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version +RUN_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version +.endif + +#.if ${PERL_LEVEL} < 501200 +#BUILD_DEPENDS+= p5-Module-Build>=0.3500:${PORTSDIR}/devel/p5-Module-Build +#.endif + +.include <bsd.port.post.mk> diff --git a/devel/p5-Test-Trap/distinfo b/devel/p5-Test-Trap/distinfo new file mode 100644 index 000000000000..49ed7aba2f7a --- /dev/null +++ b/devel/p5-Test-Trap/distinfo @@ -0,0 +1,2 @@ +SHA256 (Test-Trap-v0.2.1.tar.gz) = 944a1cfdecdde0715f584fd8f05635a29b9a45a9277ffd271d8c5ddc5b1f13db +SIZE (Test-Trap-v0.2.1.tar.gz) = 45622 diff --git a/devel/p5-Test-Trap/pkg-descr b/devel/p5-Test-Trap/pkg-descr new file mode 100644 index 000000000000..ef4d84611d39 --- /dev/null +++ b/devel/p5-Test-Trap/pkg-descr @@ -0,0 +1,9 @@ +Test::Trap is primarily (but not exclusively) for use in test scripts: a block +eval on steroids, configurable and extensible, but by default trapping (Perl) +STDOUT, STDERR, warnings, exceptions, would-be exit codes, and return values +from boxed blocks of test code. + +The values collected by the latest trap can then be queried or tested through a +special trap object. + +WWW: http://search.cpan.org/dist/Test-Trap/ diff --git a/devel/p5-Test-Trap/pkg-plist b/devel/p5-Test-Trap/pkg-plist new file mode 100644 index 000000000000..082b1eac538d --- /dev/null +++ b/devel/p5-Test-Trap/pkg-plist @@ -0,0 +1,11 @@ +%%SITE_PERL%%/Test/Trap.pm +%%SITE_PERL%%/Test/Trap/Builder.pm +%%SITE_PERL%%/Test/Trap/Builder/PerlIO.pm +%%SITE_PERL%%/Test/Trap/Builder/SystemSafe.pm +%%SITE_PERL%%/Test/Trap/Builder/TempFile.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Test/Trap/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Test/Trap +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Test +@dirrm %%SITE_PERL%%/Test/Trap/Builder +@dirrm %%SITE_PERL%%/Test/Trap +@dirrmtry %%SITE_PERL%%/Test |