From 13ec21c66c417450a74c173c16aa27ea339de9c3 Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Mon, 10 May 2010 14:46:24 -0300 Subject: New lua module: coxpcall Signed-off-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- package/coxpcall/Config.in | 8 ++++++++ package/coxpcall/coxpcall.mk | 20 ++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 package/coxpcall/Config.in create mode 100644 package/coxpcall/coxpcall.mk (limited to 'package/coxpcall') diff --git a/package/coxpcall/Config.in b/package/coxpcall/Config.in new file mode 100644 index 000000000..1237482ff --- /dev/null +++ b/package/coxpcall/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_COXPCALL + bool "coxpcall" + help + Coxpcall encapsulates the protected calls with a coroutine + based loop, so errors can be dealed without the usual + pcall/xpcall issues with coroutines. + + http://coxpcall.luaforge.net/ diff --git a/package/coxpcall/coxpcall.mk b/package/coxpcall/coxpcall.mk new file mode 100644 index 000000000..b9475711d --- /dev/null +++ b/package/coxpcall/coxpcall.mk @@ -0,0 +1,20 @@ +############################################################# +# +# coxpcall +# +############################################################# + +COXPCALL_VERSION = 1.13.0 +COXPCALL_SITE = http://luaforge.net/frs/download.php/3406 +COXPCALL_DEPENDENCIES = lua + +define COXPCALL_INSTALL_TARGET_CMDS + $(INSTALL) -m 0644 -D $(@D)/src/coxpcall.lua \ + $(TARGET_DIR)/usr/share/lua/coxpcall.lua +endef + +define COXPCALL_UNINSTALL_TARGET_CMDS + rm -f "$(TARGET_DIR)/usr/share/lua/coxpcall.lua" +endef + +$(eval $(call GENTARGETS,package,coxpcall)) -- cgit v1.2.3