aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2010-10-10 13:40:39 +0800
committerkuriyama <kuriyama@FreeBSD.org>2010-10-10 13:40:39 +0800
commitc4a532d8538f1c2a3fe4209614b34d4816029328 (patch)
treea1099347ecd03aaa4396c5de3d97a11e452bc080 /devel
parent1c3e549952d82eaab905940272065fd061c3eb1d (diff)
downloadfreebsd-ports-gnome-c4a532d8538f1c2a3fe4209614b34d4816029328.tar.gz
freebsd-ports-gnome-c4a532d8538f1c2a3fe4209614b34d4816029328.tar.zst
freebsd-ports-gnome-c4a532d8538f1c2a3fe4209614b34d4816029328.zip
POEx::Role::Streaming provides a common idiom for streaming data from
one filehandle to another. It accomplishes this by making good use of sysread and POE::Wheel::ReadWrite. This Role errs on the side of doing as many blocking reads of the "input_handle" as possible up front (until the high water mark is hit on the Wheel). If this default isn't suitable for the consumer, simply override "get_data_from_input_handle". After Streamer has exhausted the source, and flushed the last of the output, it will clean up after itself by closing the wheel, the handles, and sending all of them out of scope. If an exception happens, it will clean up after itself, and let the DIE signal propagate. WWW: http://search.cpan.org/dist/POEx-Role-Streaming/
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-POEx-Role-Streaming/Makefile31
-rw-r--r--devel/p5-POEx-Role-Streaming/distinfo3
-rw-r--r--devel/p5-POEx-Role-Streaming/pkg-descr13
-rw-r--r--devel/p5-POEx-Role-Streaming/pkg-plist4
5 files changed, 52 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 48ae58146c7d..f80172b4d052 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1983,6 +1983,7 @@
SUBDIR += p5-POE-XS-Loop-Poll
SUBDIR += p5-POE-XS-Queue-Array
SUBDIR += p5-POEx-Role-SessionInstantiation
+ SUBDIR += p5-POEx-Role-Streaming
SUBDIR += p5-POEx-Types
SUBDIR += p5-POSIX-strptime
SUBDIR += p5-PPerl
diff --git a/devel/p5-POEx-Role-Streaming/Makefile b/devel/p5-POEx-Role-Streaming/Makefile
new file mode 100644
index 000000000000..0e200a796065
--- /dev/null
+++ b/devel/p5-POEx-Role-Streaming/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: POEx::Role::Streaming
+# Date created: 10 Oct 2010
+# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= POEx-Role-Streaming
+PORTVERSION= 1.102610
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+MASTER_SITE_SUBDIR= ../../authors/id/N/NP/NPEREZ
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= kuriyama@FreeBSD.org
+COMMENT= Perl extension for streaming from one filehandle to another
+
+RUN_DEPENDS= \
+ p5-MooseX-Declare>0:${PORTSDIR}/devel/p5-MooseX-Declare \
+ p5-MooseX-Types>0:${PORTSDIR}/devel/p5-MooseX-Types \
+ p5-POE>0:${PORTSDIR}/devel/p5-POE \
+ p5-POEx-Role-SessionInstantiation>=0:${PORTSDIR}/devel/p5-POEx-Role-SessionInstantiation \
+ p5-POEx-Types>0:${PORTSDIR}/devel/p5-POEx-Types \
+ p5-aliased>0:${PORTSDIR}/devel/p5-aliased
+BUILD_DEPENDS= ${RUN_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= POEx::Role::Streaming.3
+
+.include <bsd.port.mk>
diff --git a/devel/p5-POEx-Role-Streaming/distinfo b/devel/p5-POEx-Role-Streaming/distinfo
new file mode 100644
index 000000000000..478607b26586
--- /dev/null
+++ b/devel/p5-POEx-Role-Streaming/distinfo
@@ -0,0 +1,3 @@
+MD5 (POEx-Role-Streaming-1.102610.tar.gz) = c6fe1ef39d7d29159e427e87913b7dbd
+SHA256 (POEx-Role-Streaming-1.102610.tar.gz) = 9317d4b0a531dc68330d5005557cd615ea86f79b468be4f85acf0b7946617f88
+SIZE (POEx-Role-Streaming-1.102610.tar.gz) = 11488
diff --git a/devel/p5-POEx-Role-Streaming/pkg-descr b/devel/p5-POEx-Role-Streaming/pkg-descr
new file mode 100644
index 000000000000..c0dae1c3b909
--- /dev/null
+++ b/devel/p5-POEx-Role-Streaming/pkg-descr
@@ -0,0 +1,13 @@
+POEx::Role::Streaming provides a common idiom for streaming data from
+one filehandle to another. It accomplishes this by making good use of
+sysread and POE::Wheel::ReadWrite. This Role errs on the side of
+doing as many blocking reads of the "input_handle" as possible up
+front (until the high water mark is hit on the Wheel). If this
+default isn't suitable for the consumer, simply override
+"get_data_from_input_handle". After Streamer has exhausted the
+source, and flushed the last of the output, it will clean up after
+itself by closing the wheel, the handles, and sending all of them out
+of scope. If an exception happens, it will clean up after itself, and
+let the DIE signal propagate.
+
+WWW: http://search.cpan.org/dist/POEx-Role-Streaming/
diff --git a/devel/p5-POEx-Role-Streaming/pkg-plist b/devel/p5-POEx-Role-Streaming/pkg-plist
new file mode 100644
index 000000000000..ecb47ebeed28
--- /dev/null
+++ b/devel/p5-POEx-Role-Streaming/pkg-plist
@@ -0,0 +1,4 @@
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/POEx/Role/Streaming/.packlist
+%%SITE_PERL%%/POEx/Role/Streaming.pm
+@comment @dirrmtry %%SITE_PERL%%/POEx/Role
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/POEx/Role/Streaming