1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

- Add p5-IO-Event 0.812

IO::Event provides an object-based callback system for handling nonblocking IO.
The design goal is to provide a system that just does the right thing without
the user needing to think about it much.

All APIs are kept as simple as possible yet at the same time, all functionality
is accesible if needed. Simple things are easy. Hard things are possible.

Most of the time file handling syntax will work fine: <$filehandle> and print
$filehandle 'stuff'.

IO::Event provides automatic buffering of output (with a callback to throttle).
It provides automatic line-at-a-time input.

After initial setup, call IO::Event::loop().

IO::Event was originally written to use Event. IO::Event still defaults to using
Event but it can now use AnyEvent or its own event loop.

WWW: http://search.cpan.org/dist/IO-Event/

Feature safe:	yes
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2013-04-20 07:46:15 +00:00
parent 75f0d32825
commit 9dbabd6d35
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=316128
5 changed files with 75 additions and 0 deletions

View File

@ -2086,6 +2086,7 @@
SUBDIR += p5-IO-CaptureOutput
SUBDIR += p5-IO-Detect
SUBDIR += p5-IO-Digest
SUBDIR += p5-IO-Event
SUBDIR += p5-IO-HTML
SUBDIR += p5-IO-Handle-Util
SUBDIR += p5-IO-Interactive

View File

@ -0,0 +1,42 @@
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= IO-Event
PORTVERSION= 0.812
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Tied Filehandles for Nonblocking IO with Object Callbacks
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
BUILD_DEPENDS= p5-List-MoreUtils>=0:${PORTSDIR}/lang/p5-List-MoreUtils
RUN_DEPENDS:= ${BUILD_DEPENDS}
TEST_DEPENDS= p5-AnyEvent>=0:${PORTSDIR}/devel/p5-AnyEvent
OPTIONS_DEFINE= ANYEVENT EVENT
OPTIONS_DEFAULT=ANYEVENT EVENT
EVENT_DESC= Use Event as underlying event handler
ANYEVENT_DESC= Use AnyEvent as underlying event handler
PERL_CONFIGURE= yes
MAN3= IO::Event.3 \
IO::Event::Callback.3
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MANYEVENT}
BUILD_DEPENDS+= p5-AnyEvent>=0:${PORTSDIR}/devel/p5-AnyEvent
RUN_DEPENDS+= p5-AnyEvent>=0:${PORTSDIR}/devel/p5-AnyEvent
.endif
.if ${PORT_OPTIONS:MEVENT}
BUILD_DEPENDS+= p5-Event>=0:${PORTSDIR}/devel/p5-Event
RUN_DEPENDS+= p5-Event>=0:${PORTSDIR}/devel/p5-Event
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (IO-Event-0.812.tar.gz) = 8507a26af0442d883b52df1fbf0241b2e40f59a5edbc49c170adc0c3abfb69f9
SIZE (IO-Event-0.812.tar.gz) = 34448

View File

@ -0,0 +1,19 @@
IO::Event provides an object-based callback system for handling nonblocking IO.
The design goal is to provide a system that just does the right thing without
the user needing to think about it much.
All APIs are kept as simple as possible yet at the same time, all functionality
is accesible if needed. Simple things are easy. Hard things are possible.
Most of the time file handling syntax will work fine: <$filehandle> and print
$filehandle 'stuff'.
IO::Event provides automatic buffering of output (with a callback to throttle).
It provides automatic line-at-a-time input.
After initial setup, call IO::Event::loop().
IO::Event was originally written to use Event. IO::Event still defaults to using
Event but it can now use AnyEvent or its own event loop.
WWW: http://search.cpan.org/dist/IO-Event/

View File

@ -0,0 +1,11 @@
%%SITE_PERL%%/IO/Event.pm
%%SITE_PERL%%/IO/Event.pod
%%SITE_PERL%%/IO/Event/AnyEvent.pm
%%SITE_PERL%%/IO/Event/Callback.pm
%%SITE_PERL%%/IO/Event/Emulate.pm
%%SITE_PERL%%/IO/Event/Event.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/IO/Event/.packlist
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/IO/Event
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/IO
@dirrmtry %%SITE_PERL%%/IO/Event
@dirrmtry %%SITE_PERL%%/IO