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

diff --git a/CHANGES b/CHANGES
index d4d425375d27933c359f427570a036301fc83669..17d4a69083c6daee6343d30f08596dad7cf1cbf0 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -4,7 +4,7 @@
 
        New GTK-based configurator, usable using 'make gconfig'.
 
-       New packages: coxpcall, luafilesystem, rings
+       New packages: cgilua, coxpcall, luafilesystem, rings
 
        Updated/fixed packages: cdrkit, libidn, netperf
 
index 92a33359368a79dcb94a3569a9fd95d34ed889d0..bfbb12cb94b2b319048391fe1b5494c814be4d00 100644 (file)
@@ -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/cgilua/Config.in"
 source "package/coxpcall/Config.in"
 source "package/luafilesystem/Config.in"
 source "package/rings/Config.in"
diff --git a/package/cgilua/Config.in b/package/cgilua/Config.in
new file mode 100644 (file)
index 0000000..aba4c24
--- /dev/null
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_CGILUA
+       bool "cgilua"
+       depends on BR2_LARGEFILE
+       depends on BR2_PACKAGE_LUA_SHARED_LIBRARY
+       select BR2_PACKAGE_LUAFILESYSTEM
+       help
+         CGILua is a tool for creating dynamic HTML pages
+         and manipulating input data from Web forms.
+
+         http://luaforge.net/projects/cgilua/
diff --git a/package/cgilua/cgilua.mk b/package/cgilua/cgilua.mk
new file mode 100644 (file)
index 0000000..9d524cd
--- /dev/null
@@ -0,0 +1,20 @@
+#############################################################
+#
+# cgilua
+#
+#############################################################
+
+CGILUA_VERSION = 5.1.3
+CGILUA_SITE = http://luaforge.net/frs/download.php/3970
+CGILUA_DEPENDENCIES = luafilesystem
+
+define CGILUA_INSTALL_TARGET_CMDS
+       $(MAKE) -C $(@D) install LUA_DIR="$(TARGET_DIR)/usr/share/lua"
+endef
+
+define CGILUA_UNINSTALL_TARGET_CMDS
+       rm -rf "$(TARGET_DIR)/usr/share/lua/cgilua"
+       rm -f "$(TARGET_DIR)/usr/share/lua/cgilua.lua"
+endef
+
+$(eval $(call GENTARGETS,package,cgilua))