Add. http parser rockspec for Lua 5.4

master
Alexey Melnichuk 2021-01-07 16:50:46 +03:00
parent e40f48895a
commit dcbee2e72c
2 changed files with 29 additions and 0 deletions

View File

@ -51,6 +51,7 @@ before_script:
- luarocks show lunitx > /dev/null 2>&1 || luarocks install lunitx
- luarocks show luafilesystem > /dev/null 2>&1 || luarocks install luafilesystem
- luarocks show dkjson > /dev/null 2>&1 || luarocks install dkjson --deps-mode=none
- luarocks show lua-http-parser > /dev/null 2>&1 || luarocks install lua-http-parser || luarocks install test/deps/lua-http-parser-v2.7-1.rockspec
- luarocks show pegasus > /dev/null 2>&1 || luarocks install pegasus http.parser
--server=http://luarocks.org/manifests/moteus
- luarocks show pegasus-router > /dev/null 2>&1 || luarocks install pegasus-router

View File

@ -0,0 +1,28 @@
#!/usr/bin/env lua
package = 'lua-http-parser'
version = 'v2.7-1'
source = {
url = 'gitrec+https://github.com/brimworks/lua-http-parser'
}
description = {
summary = "A Lua binding to Ryan Dahl's http request/response parser.",
detailed = '',
homepage = 'http://github.com/brimworks/lua-http-parser',
license = 'MIT', --as with Ryan's
}
dependencies = {
'lua >= 5.1, < 5.5',
'luarocks-fetch-gitrec',
}
build = {
type = 'builtin',
modules = {
['http.parser'] = {
sources = {
"http-parser/http_parser.c",
"lua-http-parser.c"
}
}
}
}