New port: devel/p5-Callback-Frame
When programming with callbacks in perl, you create anonymous functions with sub { ... }. These functions will preserve their surrounding lexical environment. Sometimes people call these anonymous functions that reference variables in their surrounding lexical scope "closures". Whatever you call them, they are essential for convenient and efficient asynchronous programming. For many applications we really like straightforward callback style. The goal of Callback::Frame is to simplify the management of dynamic environments while leaving callback style alone. WWW: http://search.cpan.org/dist/Callback-Frame/ PR: 192264 Submitted by: bill.brinzer@gmail.com
This commit is contained in:
parent
6f69e140a5
commit
2dc6b29b04
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=365204
5 changed files with 44 additions and 0 deletions
|
@ -1553,6 +1553,7 @@
|
|||
SUBDIR += p5-Cache-Simple-TimedExpiry
|
||||
SUBDIR += p5-Cairo-GObject
|
||||
SUBDIR += p5-Calendar-Simple
|
||||
SUBDIR += p5-Callback-Frame
|
||||
SUBDIR += p5-Capture-Tiny
|
||||
SUBDIR += p5-Carp
|
||||
SUBDIR += p5-Carp-Always
|
||||
|
|
23
devel/p5-Callback-Frame/Makefile
Normal file
23
devel/p5-Callback-Frame/Makefile
Normal file
|
@ -0,0 +1,23 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= Callback-Frame
|
||||
PORTVERSION= 1.100
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= CPAN
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= bill.brinzer@gmail.com
|
||||
COMMENT= Preserve error handlers and "local" variables across callbacks
|
||||
|
||||
LICENSE= ART10 GPLv1
|
||||
LICENSE_COMB= dual
|
||||
|
||||
RUN_DEPENDS= p5-Guard>=0:${PORTSDIR}/devel/p5-Guard
|
||||
BUILD_DEPENDS:= ${RUN_DEPENDS}
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
USES= perl5
|
||||
USE_PERL5= configure
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/p5-Callback-Frame/distinfo
Normal file
2
devel/p5-Callback-Frame/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (Callback-Frame-1.100.tar.gz) = d5fd233ecfa944cc9746fd05fea67a3c9780b4c282c727579be69b042353ac76
|
||||
SIZE (Callback-Frame-1.100.tar.gz) = 12094
|
12
devel/p5-Callback-Frame/pkg-descr
Normal file
12
devel/p5-Callback-Frame/pkg-descr
Normal file
|
@ -0,0 +1,12 @@
|
|||
When programming with callbacks in perl, you create anonymous functions with
|
||||
sub { ... }. These functions are especially useful because when they are called
|
||||
they will preserve their surrounding lexical environment. Sometimes people
|
||||
call these anonymous functions that reference variables in their surrounding
|
||||
lexical scope "closures". Whatever you call them, they are essential for
|
||||
convenient and efficient asynchronous programming.
|
||||
|
||||
For many applications we really like straightforward callback style. The goal
|
||||
of Callback::Frame is to simplify the management of dynamic environments while
|
||||
leaving callback style alone.
|
||||
|
||||
WWW: http://search.cpan.org/dist/Callback-Frame/
|
6
devel/p5-Callback-Frame/pkg-plist
Normal file
6
devel/p5-Callback-Frame/pkg-plist
Normal file
|
@ -0,0 +1,6 @@
|
|||
%%PERL5_MAN3%%/Callback::Frame.3.gz
|
||||
%%SITE_PERL%%/Callback/Frame.pm
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Callback/Frame/.packlist
|
||||
@dirrmtry %%SITE_PERL%%/Callback
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Callback/Frame
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Callback
|
Loading…
Reference in a new issue