coxpcall-1.13.0 - encapsulate protected Lua calls with a coroutine
based loop; from scott vokes
This commit is contained in:
parent
3e63100c73
commit
f3814257bc
27
devel/coxpcall/Makefile
Normal file
27
devel/coxpcall/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2009/08/15 17:34:36 jolan Exp $
|
||||
|
||||
COMMENT = encapsulate protected Lua calls with a coroutine based loop
|
||||
|
||||
DISTNAME = coxpcall-1.13.0
|
||||
CATEGORIES = devel
|
||||
HOMEPAGE = http://coxpcall.luaforge.net/
|
||||
|
||||
MAINTAINER = Scott Vokes <vokes.s@gmail.com>
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
MASTER_SITES = http://luaforge.net/frs/download.php/3406/
|
||||
|
||||
MODULES = lang/lua
|
||||
NO_BUILD = Yes
|
||||
NO_REGRESS = Yes
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/lua/5.1/
|
||||
${INSTALL_DATA} ${WRKSRC}/src/coxpcall.lua ${PREFIX}/share/lua/5.1/
|
||||
|
||||
.include <bsd.port.mk>
|
5
devel/coxpcall/distinfo
Normal file
5
devel/coxpcall/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (coxpcall-1.13.0.tar.gz) = 0+BVTcQmp6JONyeAs91f5g==
|
||||
RMD160 (coxpcall-1.13.0.tar.gz) = H0dpHvojPW9YTBByZH+xMwqZnEo=
|
||||
SHA1 (coxpcall-1.13.0.tar.gz) = izMhqbdDBbE0fOJUPpmKEYyoJwE=
|
||||
SHA256 (coxpcall-1.13.0.tar.gz) = BZHr2hY2eYZJ1uvWWeusNc5GGLk134q972M/Ndcq9w0=
|
||||
SIZE (coxpcall-1.13.0.tar.gz) = 17761
|
6
devel/coxpcall/pkg/DESCR
Normal file
6
devel/coxpcall/pkg/DESCR
Normal file
@ -0,0 +1,6 @@
|
||||
Coxpcall encapsulates the protected calls with a coroutine based loop,
|
||||
so errors can be handled without the usual pcall/xpcall issues with
|
||||
coroutines.
|
||||
|
||||
Using Coxpcall usually consists in simply loading the module and then
|
||||
replacing Lua pcall and xpcall by copcall and coxpcall.
|
2
devel/coxpcall/pkg/PLIST
Normal file
2
devel/coxpcall/pkg/PLIST
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/08/15 17:34:36 jolan Exp $
|
||||
share/lua/5.1/coxpcall.lua
|
Loading…
Reference in New Issue
Block a user