New lua module: copas
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Mon, 10 May 2010 17:52:27 +0000 (14:52 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 5 Jun 2010 20:13:37 +0000 (22:13 +0200)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
package/Config.in
package/copas/Config.in [new file with mode: 0644]
package/copas/copas.mk [new file with mode: 0644]

diff --git a/CHANGES b/CHANGES
index b1787fa1ba5f3182abaf71f11717d744bb4e6b7a..daeba2da289ebb41b62c8475c6fedb6a3dea55c4 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -4,7 +4,8 @@
 
        New GTK-based configurator, usable using 'make gconfig'.
 
-       New packages: cgilua, coxpcall, luafilesystem, luasocket, rings
+       New packages: cgilua, copas, coxpcall, luafilesystem,
+       luasocket, rings
 
        Updated/fixed packages: cdrkit, libidn, netperf
 
index 05ec42fb007e8d83b44734c59487d7daa7958246..2fb61b5493129fc4076f7c7b3faa926aa56792d4 100644 (file)
@@ -209,6 +209,7 @@ source "package/java/jamvm/Config.in"
 source "package/lua/Config.in"
 if BR2_PACKAGE_LUA
 source "package/cgilua/Config.in"
+source "package/copas/Config.in"
 source "package/coxpcall/Config.in"
 source "package/luafilesystem/Config.in"
 source "package/luasocket/Config.in"
diff --git a/package/copas/Config.in b/package/copas/Config.in
new file mode 100644 (file)
index 0000000..9969c8f
--- /dev/null
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_COPAS
+       bool "copas"
+       select BR2_PACKAGE_COXPCALL
+       select BR2_PACKAGE_LUASOCKET
+       help
+         Copas is a dispatcher based on coroutines that
+         can be used by TCP/IP servers.
+
+         http://keplerproject.github.com/copas/
diff --git a/package/copas/copas.mk b/package/copas/copas.mk
new file mode 100644 (file)
index 0000000..1baed83
--- /dev/null
@@ -0,0 +1,20 @@
+#############################################################
+#
+# copas
+#
+#############################################################
+
+COPAS_VERSION = 1.1.6
+COPAS_SITE = http://github.com/downloads/keplerproject/copas
+COPAS_DEPENDENCIES = lua coxpcall luasocket
+
+define COPAS_INSTALL_TARGET_CMDS
+       $(INSTALL) -m 0644 -D $(@D)/src/copas/copas.lua \
+               $(TARGET_DIR)/usr/share/lua/copas.lua
+endef
+
+define COPAS_UNINSTALL_TARGET_CMDS
+       rm -f "$(TARGET_DIR)/usr/share/lua/copas.lua"
+endef
+
+$(eval $(call GENTARGETS,package,copas))