From owner-svn-ports-all@FreeBSD.ORG Sat Apr 20 07:46:17 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1EE645DC; Sat, 20 Apr 2013 07:46:17 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 035AA1186; Sat, 20 Apr 2013 07:46:17 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r3K7kGKQ083355; Sat, 20 Apr 2013 07:46:16 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r3K7kGnH083333; Sat, 20 Apr 2013 07:46:16 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201304200746.r3K7kGnH083333@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Sat, 20 Apr 2013 07:46:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r316128 - in head/devel: . p5-IO-Event X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Apr 2013 07:46:17 -0000 Author: sunpoet Date: Sat Apr 20 07:46:15 2013 New Revision: 316128 URL: http://svnweb.freebsd.org/changeset/ports/316128 Log: - 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 Added: head/devel/p5-IO-Event/ head/devel/p5-IO-Event/Makefile (contents, props changed) head/devel/p5-IO-Event/distinfo (contents, props changed) head/devel/p5-IO-Event/pkg-descr (contents, props changed) head/devel/p5-IO-Event/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sat Apr 20 07:46:09 2013 (r316127) +++ head/devel/Makefile Sat Apr 20 07:46:15 2013 (r316128) @@ -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 Added: head/devel/p5-IO-Event/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-IO-Event/Makefile Sat Apr 20 07:46:15 2013 (r316128) @@ -0,0 +1,42 @@ +# Created by: Sunpoet Po-Chuan Hsieh +# $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 + +.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 Added: head/devel/p5-IO-Event/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-IO-Event/distinfo Sat Apr 20 07:46:15 2013 (r316128) @@ -0,0 +1,2 @@ +SHA256 (IO-Event-0.812.tar.gz) = 8507a26af0442d883b52df1fbf0241b2e40f59a5edbc49c170adc0c3abfb69f9 +SIZE (IO-Event-0.812.tar.gz) = 34448 Added: head/devel/p5-IO-Event/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-IO-Event/pkg-descr Sat Apr 20 07:46:15 2013 (r316128) @@ -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/ Added: head/devel/p5-IO-Event/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-IO-Event/pkg-plist Sat Apr 20 07:46:15 2013 (r316128) @@ -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