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

diff --git a/CHANGES b/CHANGES
index daeba2da289ebb41b62c8475c6fedb6a3dea55c4..8be098f0ad117f244aeae0c3ca2cba8b0a0d48ee 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -5,7 +5,7 @@
        New GTK-based configurator, usable using 'make gconfig'.
 
        New packages: cgilua, copas, coxpcall, luafilesystem,
-       luasocket, rings
+       luasocket, rings, wsapi
 
        Updated/fixed packages: cdrkit, libidn, netperf
 
index 2fb61b5493129fc4076f7c7b3faa926aa56792d4..5f389e0311d1470883a9aa6422d0157dc166ce15 100644 (file)
@@ -214,6 +214,7 @@ source "package/coxpcall/Config.in"
 source "package/luafilesystem/Config.in"
 source "package/luasocket/Config.in"
 source "package/rings/Config.in"
+source "package/wsapi/Config.in"
 endif
 source "package/microperl/Config.in"
 source "package/php/Config.in"
diff --git a/package/wsapi/Config.in b/package/wsapi/Config.in
new file mode 100644 (file)
index 0000000..3621648
--- /dev/null
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_WSAPI
+       bool "wsapi"
+       select BR2_PACKAGE_COXPCALL
+       select BR2_PACKAGE_LUAFILESYSTEM
+       select BR2_PACKAGE_RINGS
+       help
+         API that abstracts the web server from Lua web applications.
+
+         http://keplerproject.github.com/wsapi/
diff --git a/package/wsapi/wsapi.mk b/package/wsapi/wsapi.mk
new file mode 100644 (file)
index 0000000..c0f9c8b
--- /dev/null
@@ -0,0 +1,21 @@
+#############################################################
+#
+# wsapi
+#
+#############################################################
+
+WSAPI_VERSION = 1.3.4
+WSAPI_SITE = http://github.com/downloads/keplerproject/wsapi
+WSAPI_DEPENDENCIES = coxpcall luafilesystem rings
+
+define WSAPI_INSTALL_TARGET_CMDS
+       mkdir -p $(TARGET_DIR)/usr/share/lua/wsapi
+       $(INSTALL) -m 0644 -D $(@D)/src/wsapi/*.lua \
+               $(TARGET_DIR)/usr/share/lua/wsapi
+endef
+
+define WSAPI_UNINSTALL_TARGET_CMDS
+       rm -rf "$(TARGET_DIR)/usr/share/lua/wsapi"
+endef
+
+$(eval $(call GENTARGETS,package,wsapi))