35 lines
1.1 KiB
Lua
35 lines
1.1 KiB
Lua
package = "Copas"
|
|
version = "2.0.0-1"
|
|
source = {
|
|
url = "https://github.com/keplerproject/copas/archive/v2_0_0.tar.gz",
|
|
dir = "copas-2_0_0",
|
|
}
|
|
description = {
|
|
summary = "Coroutine Oriented Portable Asynchronous Services",
|
|
detailed = [[
|
|
Copas is a dispatcher based on coroutines that can be used by
|
|
TCP/IP servers. It uses LuaSocket as the interface with the
|
|
TCP/IP stack. A server registered with Copas should provide a
|
|
handler for requests and use Copas socket functions to send
|
|
the response. Copas loops through requests and invokes the
|
|
corresponding handlers. For a full implementation of a Copas
|
|
HTTP server you can refer to Xavante as an example.
|
|
]],
|
|
license = "MIT/X11",
|
|
homepage = "http://www.keplerproject.org/copas/"
|
|
}
|
|
dependencies = {
|
|
"lua >= 5.1, < 5.3",
|
|
"luasocket >= 2.1",
|
|
"coxpcall >= 1.14",
|
|
}
|
|
build = {
|
|
type = "builtin",
|
|
modules = {
|
|
["copas"] = "src/copas.lua",
|
|
["copas.http"] = "src/copas/http.lua",
|
|
["copas.ftp"] = "src/copas/ftp.lua",
|
|
["copas.smtp"] = "src/copas/smtp.lua",
|
|
["copas.limit"] = "src/copas/limit.lua",
|
|
}
|
|
}
|