From b9852005cf9d0b9cec018de1d0e20bc679de5c28 Mon Sep 17 00:00:00 2001 From: jasper Date: Sun, 13 Sep 2009 19:46:32 +0000 Subject: [PATCH] import p5-Capture-Tiny 0.06 Capture::Tiny provides a simple, portable way to capture anything sent to STDOUT or STDERR, regardless of whether it comes from Perl, from XS code or from an external program. Optionally, output can be tee(1)'d so that it is captured while being passed through to the original handles. from Stephan A. Rickauer, with some tweaks by me --- sysutils/p5-Capture-Tiny/Makefile | 22 ++++++++++++++++++++++ sysutils/p5-Capture-Tiny/distinfo | 5 +++++ sysutils/p5-Capture-Tiny/pkg/DESCR | 4 ++++ sysutils/p5-Capture-Tiny/pkg/PLIST | 7 +++++++ 4 files changed, 38 insertions(+) create mode 100644 sysutils/p5-Capture-Tiny/Makefile create mode 100644 sysutils/p5-Capture-Tiny/distinfo create mode 100644 sysutils/p5-Capture-Tiny/pkg/DESCR create mode 100644 sysutils/p5-Capture-Tiny/pkg/PLIST diff --git a/sysutils/p5-Capture-Tiny/Makefile b/sysutils/p5-Capture-Tiny/Makefile new file mode 100644 index 00000000000..82e3f6d1077 --- /dev/null +++ b/sysutils/p5-Capture-Tiny/Makefile @@ -0,0 +1,22 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/09/13 19:46:32 jasper Exp $ + +COMMENT= capture STDOUT and STDERR + +CPAN_AUTHOR= DAGOLDEN +MODULES= cpan + +DISTNAME= Capture-Tiny-0.06 +CATEGORIES= sysutils + +# Apache 2.0 +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/p5-Capture-Tiny + ${INSTALL_DATA} ${WRKSRC}/examples/*.pl \ + ${PREFIX}/share/examples/p5-Capture-Tiny + +.include diff --git a/sysutils/p5-Capture-Tiny/distinfo b/sysutils/p5-Capture-Tiny/distinfo new file mode 100644 index 00000000000..eb92451d334 --- /dev/null +++ b/sysutils/p5-Capture-Tiny/distinfo @@ -0,0 +1,5 @@ +MD5 (Capture-Tiny-0.06.tar.gz) = ZTljw4VepXzKvFZC/0B/fw== +RMD160 (Capture-Tiny-0.06.tar.gz) = JiXmFX6VMgEw5/tpMNH21YfFY3o= +SHA1 (Capture-Tiny-0.06.tar.gz) = rL/H/ewgZhL0XBo0O3rukIijJEk= +SHA256 (Capture-Tiny-0.06.tar.gz) = XOnuiNIgkMAXtpvsRPTefyM2AnFxaRvEQ5INhp0m52E= +SIZE (Capture-Tiny-0.06.tar.gz) = 24365 diff --git a/sysutils/p5-Capture-Tiny/pkg/DESCR b/sysutils/p5-Capture-Tiny/pkg/DESCR new file mode 100644 index 00000000000..d880f131586 --- /dev/null +++ b/sysutils/p5-Capture-Tiny/pkg/DESCR @@ -0,0 +1,4 @@ +Capture::Tiny provides a simple, portable way to capture anything sent +to STDOUT or STDERR, regardless of whether it comes from Perl, from XS +code or from an external program. Optionally, output can be tee(1)'d so +that it is captured while being passed through to the original handles. diff --git a/sysutils/p5-Capture-Tiny/pkg/PLIST b/sysutils/p5-Capture-Tiny/pkg/PLIST new file mode 100644 index 00000000000..afed75c5f43 --- /dev/null +++ b/sysutils/p5-Capture-Tiny/pkg/PLIST @@ -0,0 +1,7 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2009/09/13 19:46:32 jasper Exp $ +${P5SITE}/Capture/ +${P5SITE}/Capture/Tiny.pm +${P5SITE}/Capture/Tiny.pod +@man man/man3p/Capture::Tiny.3p +share/examples/p5-Capture-Tiny/ +share/examples/p5-Capture-Tiny/tee.pl