implementation of coroutines for perl5.

This commit is contained in:
espie 2010-12-13 09:53:47 +00:00
parent 80a333a8eb
commit 9f30a5751d
4 changed files with 96 additions and 0 deletions

32
devel/p5-Coro/Makefile Normal file
View File

@ -0,0 +1,32 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/12/13 09:53:47 espie Exp $
COMMENT = coroutines for perl
SHARED_ONLY = Yes
MODULES = cpan
DISTNAME = Coro-5.25
CATEGORIES = devel
USE_GROFF = Yes
# perl
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
RUN_DEPENDS = devel/p5-Event>=0.89 \
devel/p5-AnyEvent>=5.00 \
devel/p5-EV>=3.3 \
devel/p5-common-sense \
devel/p5-Guard>=0.5
REGRESS_DEPENDS = ${RUN_DEPENDS}
# will use hand-made assembler on i386/amd64
# can force it to use sjlj like on other platforms, to
# check things work.
# CONFIGURE_ENV = CORO_INTERFACE=s
.include <bsd.port.mk>

5
devel/p5-Coro/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (Coro-5.25.tar.gz) = QhrBhP5ziysGHa3KlvJZRg==
RMD160 (Coro-5.25.tar.gz) = QDavoIpAiI6NQ/Fp5HbWzsMt6y8=
SHA1 (Coro-5.25.tar.gz) = 3+Mqe5aeYuFK3wlk9levoget8wA=
SHA256 (Coro-5.25.tar.gz) = oFP9ZWTL5jC44NmVoxKtddc6e4Z3sAtLO04iCQwMu0c=
SIZE (Coro-5.25.tar.gz) = 148009

5
devel/p5-Coro/pkg/DESCR Normal file
View File

@ -0,0 +1,5 @@
Implementation of coroutines for perl5, somewhat different from what's
planned for perl6.
Create coroutines with async {} blocks. Give back control to other
scheduled coroutine with cede. See Coro::Intro for details.

54
devel/p5-Coro/pkg/PLIST Normal file
View File

@ -0,0 +1,54 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/12/13 09:53:47 espie Exp $
${P5ARCH}/Coro/
${P5ARCH}/Coro.pm
${P5ARCH}/Coro/AIO.pm
${P5ARCH}/Coro/AnyEvent.pm
${P5ARCH}/Coro/BDB.pm
${P5ARCH}/Coro/Channel.pm
${P5ARCH}/Coro/CoroAPI.h
${P5ARCH}/Coro/Debug.pm
${P5ARCH}/Coro/Event.pm
${P5ARCH}/Coro/Handle.pm
${P5ARCH}/Coro/Intro.pod
${P5ARCH}/Coro/LWP.pm
${P5ARCH}/Coro/MakeMaker.pm
${P5ARCH}/Coro/RWLock.pm
${P5ARCH}/Coro/Select.pm
${P5ARCH}/Coro/Semaphore.pm
${P5ARCH}/Coro/SemaphoreSet.pm
${P5ARCH}/Coro/Signal.pm
${P5ARCH}/Coro/Socket.pm
${P5ARCH}/Coro/Specific.pm
${P5ARCH}/Coro/State.pm
${P5ARCH}/Coro/Storable.pm
${P5ARCH}/Coro/Timer.pm
${P5ARCH}/Coro/Util.pm
${P5ARCH}/auto/Coro/
${P5ARCH}/auto/Coro/Event/
${P5ARCH}/auto/Coro/Event/Event.bs
${P5ARCH}/auto/Coro/Event/Event.so
${P5ARCH}/auto/Coro/State/
${P5ARCH}/auto/Coro/State/State.bs
${P5ARCH}/auto/Coro/State/State.so
@man man/man3p/Coro.3p
@man man/man3p/Coro::AIO.3p
@man man/man3p/Coro::AnyEvent.3p
@man man/man3p/Coro::BDB.3p
@man man/man3p/Coro::Channel.3p
@man man/man3p/Coro::Debug.3p
@man man/man3p/Coro::Event.3p
@man man/man3p/Coro::Handle.3p
@man man/man3p/Coro::Intro.3p
@man man/man3p/Coro::LWP.3p
@man man/man3p/Coro::MakeMaker.3p
@man man/man3p/Coro::RWLock.3p
@man man/man3p/Coro::Select.3p
@man man/man3p/Coro::Semaphore.3p
@man man/man3p/Coro::SemaphoreSet.3p
@man man/man3p/Coro::Signal.3p
@man man/man3p/Coro::Socket.3p
@man man/man3p/Coro::Specific.3p
@man man/man3p/Coro::State.3p
@man man/man3p/Coro::Storable.3p
@man man/man3p/Coro::Timer.3p
@man man/man3p/Coro::Util.3p