forked from lunarmodules/luasocket
-
Notifications
You must be signed in to change notification settings - Fork 3
/
luasocket-2.1-1.rockspec
67 lines (67 loc) · 2 KB
/
luasocket-2.1-1.rockspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package = "LuaSocket"
version = "2.1-1"
source = {
url = "git:https://github.com/diegonehab/luasocket.git",
branch = "unstable"
}
description = {
summary = "Network support for the Lua language",
detailed = [[
LuaSocket is a Lua extension library that is composed by two parts: a C core
that provides support for the TCP and UDP transport layers, and a set of Lua
modules that add support for functionality commonly needed by applications
that deal with the Internet.
]],
homepage = "https://luaforge.net/projects/luasocket/",
license = "MIT"
}
dependencies = {
"lua >= 5.1"
}
build = {
type = "make",
build_variables = {
PLAT="linux",
LUAINC_linux="$(LUA_INCDIR)"
},
install_variables = {
INSTALL_TOP_SHARE = "$(LUADIR)",
INSTALL_TOP_LIB = "$(LIBDIR)"
},
platforms = {
macosx = {
build_variables = {
PLAT="macosx",
LUAINC_macosx="$(LUA_INCDIR)"
}
},
windows={
type= "command",
build_command=
"set INCLUDE=$(LUA_INCDIR);%INCLUDE% &"..
"set LIB=$(LUA_LIBDIR);%LIB% &"..
"msbuild /p:\"VCBuildAdditionalOptions= /useenv\" luasocket.sln &"..
"mkdir mime & mkdir socket &"..
"cp src/mime.dll mime/core.dll &"..
"cp src/socket.dll socket/core.dll",
install= {
lib = {
["mime.core"] = "mime/core.dll",
["socket.core"] = "socket/core.dll"
},
lua = {
"src/ltn12.lua",
"src/mime.lua",
"src/socket.lua",
["socket.headers"] = "src/headers.lua",
["socket.ftp"] = "src/ftp.lua",
["socket.http"] = "src/http.lua",
["socket.smtp"] = "src/smtp.lua",
["socket.tp"] = "src/tp.lua",
["socket.url"] = "src/url.lua",
}
}
}
},
copy_directories = { "doc", "samples", "etc", "test" }
}