-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
63 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
local package_name = "copas" | ||
local package_version = "4.7.1" | ||
local rockspec_revision = "1" | ||
local github_account_name = "lunarmodules" | ||
local github_repo_name = package_name | ||
|
||
|
||
package = package_name | ||
version = package_version.."-"..rockspec_revision | ||
source = { | ||
url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git", | ||
branch = (package_version == "cvs") and "master" or nil, | ||
tag = (package_version ~= "cvs") and package_version or nil, | ||
} | ||
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 = "https://github.com/"..github_account_name.."/"..github_repo_name, | ||
} | ||
dependencies = { | ||
"lua >= 5.1, < 5.5", | ||
"luasocket >= 2.1, <= 3.0rc1-2", | ||
"coxpcall >= 1.14", | ||
"binaryheap >= 0.4", | ||
"timerwheel ~> 1", | ||
} | ||
build = { | ||
type = "builtin", | ||
install = { | ||
bin = { | ||
copas = "bin/copas.lua", | ||
} | ||
}, | ||
modules = { | ||
["copas"] = "src/copas.lua", | ||
["copas.http"] = "src/copas/http.lua", | ||
["copas.ftp"] = "src/copas/ftp.lua", | ||
["copas.smtp"] = "src/copas/smtp.lua", | ||
["copas.timer"] = "src/copas/timer.lua", | ||
["copas.lock"] = "src/copas/lock.lua", | ||
["copas.semaphore"] = "src/copas/semaphore.lua", | ||
["copas.queue"] = "src/copas/queue.lua", | ||
}, | ||
copy_directories = { | ||
"docs", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters