package = "CGILua"
version = "scm-7"

source = {
    url = "git+ssh://git@github.com:lunarmodules/cgilua.git",
    --tag = "7.0.0",
	branch = "v7",
}

description = {
    summary = "Tool for creating dynamic Web pages and manipulating data from Web forms",
    detailed = [[
        CGILua allows the separation of logic and data handling from the
        generation of pages, making it easy to develop web applications with
        Lua. CGILua can be used with a variety of Web servers and, for each
        server, with different launchers. A launcher is responsible for the
        interaction of CGILua and the Web server, for example using ISAPI on
        IIS or mod_lua on Apache. 
    ]],
    homepage = "http://lunarmodules.github.io/cgilua",
    license = "MIT/X11",
}

dependencies = {
    "lua >= 5.2",
    "luafilesystem >= 1.8.0",
	"wsapi >= 1.7",
}

build = {
    type = "builtin",
    modules = {
        ["cgilua.main"] = "src/cgilua/main.lua",
        --["cgilua.authentication"] = "src/cgilua/authentication.lua", 
        ["cgilua.cookies"] = "src/cgilua/cookies.lua", 
        ["cgilua.dispatcher"] = "src/cgilua/dispatcher.lua", 
        ["cgilua.loader"] = "src/cgilua/loader.lua", 
        ["cgilua.lp"] = "src/cgilua/lp.lua", 
        --["cgilua.mime"] = "src/cgilua/mime.lua", 
        ["cgilua.post"] = "src/cgilua/post.lua", 
        ["cgilua.readuntil"] = "src/cgilua/readuntil.lua", 
        ["cgilua.serialize"] = "src/cgilua/serialize.lua", 
        ["cgilua.session"] = "src/cgilua/session.lua", 
        ["cgilua.urlcode"] = "src/cgilua/urlcode.lua"
    },
    install = { 
        bin = { 
            "src/launchers/cgilua.cgi", 
            "src/launchers/cgilua.fcgi",
        },
    },
    copy_directories = { 
        "examples",
        "docs",
        "tests"
    },
}
