diff options
author | Diego Nehab <diego.nehab@gmail.com> | 2013-04-17 19:40:14 -0700 |
---|---|---|
committer | Diego Nehab <diego.nehab@gmail.com> | 2013-04-17 19:40:14 -0700 |
commit | 238b217c4f27ff723d0d246bb1141ab9ad96cb19 (patch) | |
tree | 7b091807d607519df82a3b64630c1d7f923a92b5 | |
parent | c28fa1d3093e40e3cde365641755544003c83877 (diff) | |
parent | 94c958871919726f2954b3d3fa9a9f8ae21124e9 (diff) | |
download | luasocket-238b217c4f27ff723d0d246bb1141ab9ad96cb19.tar.gz luasocket-238b217c4f27ff723d0d246bb1141ab9ad96cb19.tar.bz2 luasocket-238b217c4f27ff723d0d246bb1141ab9ad96cb19.zip |
Merge pull request #29 from keplerproject/94c958871919726f2954b3d3fa9a9f8ae21124e9
Rockspec for building and installing LuaSocket 2.1 with LuaRocks
-rw-r--r-- | luasocket-2.1-1.rockspec | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/luasocket-2.1-1.rockspec b/luasocket-2.1-1.rockspec new file mode 100644 index 0000000..9c59abe --- /dev/null +++ b/luasocket-2.1-1.rockspec | |||
@@ -0,0 +1,67 @@ | |||
1 | package = "LuaSocket" | ||
2 | version = "2.1-1" | ||
3 | source = { | ||
4 | url = "git://github.com/diegonehab/luasocket.git", | ||
5 | branch = "unstable" | ||
6 | } | ||
7 | description = { | ||
8 | summary = "Network support for the Lua language", | ||
9 | detailed = [[ | ||
10 | LuaSocket is a Lua extension library that is composed by two parts: a C core | ||
11 | that provides support for the TCP and UDP transport layers, and a set of Lua | ||
12 | modules that add support for functionality commonly needed by applications | ||
13 | that deal with the Internet. | ||
14 | ]], | ||
15 | homepage = "http://luaforge.net/projects/luasocket/", | ||
16 | license = "MIT" | ||
17 | } | ||
18 | dependencies = { | ||
19 | "lua >= 5.1" | ||
20 | } | ||
21 | build = { | ||
22 | type = "make", | ||
23 | build_variables = { | ||
24 | PLAT="linux", | ||
25 | LUAINC_linux="$(LUA_INCDIR)" | ||
26 | }, | ||
27 | install_variables = { | ||
28 | INSTALL_TOP_SHARE = "$(LUADIR)", | ||
29 | INSTALL_TOP_LIB = "$(LIBDIR)" | ||
30 | }, | ||
31 | platforms = { | ||
32 | macosx = { | ||
33 | build_variables = { | ||
34 | PLAT="macosx", | ||
35 | LUAINC_macosx="$(LUA_INCDIR)" | ||
36 | } | ||
37 | }, | ||
38 | windows={ | ||
39 | type= "command", | ||
40 | build_command= | ||
41 | "set INCLUDE=$(LUA_INCDIR);%INCLUDE% &".. | ||
42 | "set LIB=$(LUA_LIBDIR);%LIB% &".. | ||
43 | "msbuild /p:\"VCBuildAdditionalOptions= /useenv\" luasocket.sln &".. | ||
44 | "mkdir mime & mkdir socket &".. | ||
45 | "cp src/mime.dll mime/core.dll &".. | ||
46 | "cp src/socket.dll socket/core.dll", | ||
47 | install= { | ||
48 | lib = { | ||
49 | ["mime.core"] = "mime/core.dll", | ||
50 | ["socket.core"] = "socket/core.dll" | ||
51 | }, | ||
52 | lua = { | ||
53 | "src/ltn12.lua", | ||
54 | "src/mime.lua", | ||
55 | "src/socket.lua", | ||
56 | ["socket.headers"] = "src/headers.lua", | ||
57 | ["socket.ftp"] = "src/ftp.lua", | ||
58 | ["socket.http"] = "src/http.lua", | ||
59 | ["socket.smtp"] = "src/smtp.lua", | ||
60 | ["socket.tp"] = "src/tp.lua", | ||
61 | ["socket.url"] = "src/url.lua", | ||
62 | } | ||
63 | } | ||
64 | } | ||
65 | }, | ||
66 | copy_directories = { "doc", "samples", "etc", "test" } | ||
67 | } | ||