From 9c33366a7f1443e64d0e946ace0e3423bcf71a8a Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Tue, 12 May 2009 22:38:46 +0200 Subject: [PATCH] lua-coxpcall: Added lua-coxpcall 1.13.0 - Coroutine-safe xpcall and pcall versions for LUA --- lua/lua-coxpcall/hotfix.patch | 37 +++++++++++++++++++++++++++ lua/lua-coxpcall/lua-coxpcall.cache | 20 +++++++++++++++ lua/lua-coxpcall/lua-coxpcall.conf | 18 +++++++++++++ lua/lua-coxpcall/lua-coxpcall.desc | 39 +++++++++++++++++++++++++++++ 4 files changed, 114 insertions(+) create mode 100644 lua/lua-coxpcall/hotfix.patch create mode 100644 lua/lua-coxpcall/lua-coxpcall.cache create mode 100644 lua/lua-coxpcall/lua-coxpcall.conf create mode 100644 lua/lua-coxpcall/lua-coxpcall.desc diff --git a/lua/lua-coxpcall/hotfix.patch b/lua/lua-coxpcall/hotfix.patch new file mode 100644 index 000000000..07c584bb0 --- /dev/null +++ b/lua/lua-coxpcall/hotfix.patch @@ -0,0 +1,37 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../lua-coxpcall/hotfix.patch +# Copyright (C) 2009 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +--- ./configure.orig 2009-05-14 12:58:47.000000000 +0000 ++++ ./configure 2009-05-14 12:59:07.000000000 +0000 +@@ -1,6 +1,6 @@ + #!/bin/bash + +-if [ $1 == "--help" ]; then ++if [ "$1" == "--help" ]; then + echo "Usage: configure lua51" + echo "where lua51 is the name of your Lua executable" + exit 0 +@@ -8,8 +8,8 @@ + + echo "Trying to find where you installed Lua..." + +-if [ $1 != "" ]; then +- lua=$1 ++if [ "$1" != "" ]; then ++ lua="$1" + else + lua="lua51" + fi diff --git a/lua/lua-coxpcall/lua-coxpcall.cache b/lua/lua-coxpcall/lua-coxpcall.cache new file mode 100644 index 000000000..5f5818884 --- /dev/null +++ b/lua/lua-coxpcall/lua-coxpcall.cache @@ -0,0 +1,20 @@ + +[TIMESTAMP] 1242306370 Thu May 14 13:06:10 2009 +[BUILDTIME] 0 (5) +[SIZE] 0.02 MB, 8 files + +[DEP] bash +[DEP] bzip2 +[DEP] coreutils +[DEP] diffutils +[DEP] fhs +[DEP] findutils +[DEP] gcc +[DEP] glibc +[DEP] grep +[DEP] lua +[DEP] make +[DEP] patch +[DEP] sed +[DEP] sysfiles +[DEP] tar diff --git a/lua/lua-coxpcall/lua-coxpcall.conf b/lua/lua-coxpcall/lua-coxpcall.conf new file mode 100644 index 000000000..9563e796a --- /dev/null +++ b/lua/lua-coxpcall/lua-coxpcall.conf @@ -0,0 +1,18 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../lua-coxpcall/lua-coxpcall.conf +# Copyright (C) 2009 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +pkgprefix -t lua + +cleanconfopt=0 +confopt="$root$(pkgprefix bindir lua)/lua" diff --git a/lua/lua-coxpcall/lua-coxpcall.desc b/lua/lua-coxpcall/lua-coxpcall.desc new file mode 100644 index 000000000..7da138ad8 --- /dev/null +++ b/lua/lua-coxpcall/lua-coxpcall.desc @@ -0,0 +1,39 @@ +[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN --- +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] +[COPY] Filename: package/.../lua-coxpcall/lua-coxpcall.desc +[COPY] Copyright (C) 2009 The OpenSDE Project +[COPY] +[COPY] More information can be found in the files COPYING and README. +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; version 2 of the License. A copy of the +[COPY] GNU General Public License can be found in the file COPYING. +[COPY] --- SDE-COPYRIGHT-NOTE-END --- + +[I] Coroutine-safe xpcall and pcall versions for LUA + +[T] Coxpcall encapsulates the protected calls with a coroutine based loop, +[T] so errors can be dealed without the usual pcall/xpcall issues with +[T] coroutines. +[T] +[T] Using Coxpcall usually consists in simply loading the module and then +[T] replacing Lua pcall and xpcall by copcall and coxpcall. + +[U] http://coxpcall.luaforge.net/ + +[A] Roberto Ierusalimschy +[A] André Carregal +[M] Alejandro Mery + +[C] extra/development +[F] LUA + +[L] OpenSource + +[S] Stable +[V] 1.13.0 +[P] X -?---5---9 200.400 + +[D] 1637658151 coxpcall-1.13.0.tar.gz http://luaforge.net/frs/download.php/3406/