summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2010-05-10 17:46:24 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2010-06-05 19:54:28 (GMT)
commit13ec21c66c417450a74c173c16aa27ea339de9c3 (patch)
treea2b2962f03de39b8cafb225f3626fee12761e8aa
parenta8495cdfcd46267e6782d174429231a49c22a23f (diff)
downloadbuildroot-13ec21c66c417450a74c173c16aa27ea339de9c3.tar.gz
buildroot-13ec21c66c417450a74c173c16aa27ea339de9c3.tar.bz2
New lua module: coxpcall
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--CHANGES2
-rw-r--r--package/Config.in1
-rw-r--r--package/coxpcall/Config.in8
-rw-r--r--package/coxpcall/coxpcall.mk20
4 files changed, 30 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index ad1419b..5150916 100644
--- a/CHANGES
+++ b/CHANGES
@@ -4,7 +4,7 @@
New GTK-based configurator, usable using 'make gconfig'.
- New packages: luafilesystem
+ New packages: coxpcall, luafilesystem
Updated/fixed packages: cdrkit, libidn, netperf
diff --git a/package/Config.in b/package/Config.in
index cb52c7c..faab6bf 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -208,6 +208,7 @@ source "package/haserl/Config.in"
source "package/java/jamvm/Config.in"
source "package/lua/Config.in"
if BR2_PACKAGE_LUA
+source "package/coxpcall/Config.in"
source "package/luafilesystem/Config.in"
endif
source "package/microperl/Config.in"
diff --git a/package/coxpcall/Config.in b/package/coxpcall/Config.in
new file mode 100644
index 0000000..1237482
--- /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 0000000..b947571
--- /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))