aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2013-04-17 19:40:14 -0700
committerDiego Nehab <diego.nehab@gmail.com>2013-04-17 19:40:14 -0700
commit238b217c4f27ff723d0d246bb1141ab9ad96cb19 (patch)
tree7b091807d607519df82a3b64630c1d7f923a92b5
parentc28fa1d3093e40e3cde365641755544003c83877 (diff)
parent94c958871919726f2954b3d3fa9a9f8ae21124e9 (diff)
downloadluasocket-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.rockspec67
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 @@
1package = "LuaSocket"
2version = "2.1-1"
3source = {
4 url = "git://github.com/diegonehab/luasocket.git",
5 branch = "unstable"
6}
7description = {
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}
18dependencies = {
19 "lua >= 5.1"
20}
21build = {
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}