aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--appveyor.yml4
-rw-r--r--binary/Makefile.windows2
-rwxr-xr-xbinary/all_in_one2
-rw-r--r--binary/luasocket-3.1.0-1.rockspec136
-rwxr-xr-xconfigure2
-rw-r--r--install.bat2
-rw-r--r--luarocks-dev-1.rockspec (renamed from luarocks-3.9.2-1.rockspec)3
-rwxr-xr-xmakedist2
-rw-r--r--src/luarocks/core/cfg.lua2
9 files changed, 9 insertions, 146 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 81d0310f..b084cff5 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,4 +1,4 @@
1version: 3.9.2.{build}-test 1version: 3.0.0.{build}-test
2 2
3shallow_clone: true 3shallow_clone: true
4 4
@@ -6,7 +6,7 @@ matrix:
6 fast_finish: true 6 fast_finish: true
7 7
8environment: 8environment:
9 LUAROCKS_VER: 3.9.2 9 LUAROCKS_VER: 3.0.0
10 10
11 matrix: 11 matrix:
12 # Lua 5.4 tests 12 # Lua 5.4 tests
diff --git a/binary/Makefile.windows b/binary/Makefile.windows
index 8d943ed1..3e540279 100644
--- a/binary/Makefile.windows
+++ b/binary/Makefile.windows
@@ -8,7 +8,7 @@ OPENSSL_PLATFORM=mingw
8# Versions of dependencies 8# Versions of dependencies
9LIBLUA_VERSION=5.4.3 9LIBLUA_VERSION=5.4.3
10OPENSSL_VERSION=1.0.2o 10OPENSSL_VERSION=1.0.2o
11ZLIB_VERSION=1.2.13 11ZLIB_VERSION=1.2.12
12BZIP2_VERSION=1.0.6 12BZIP2_VERSION=1.0.6
13 13
14WINDOWS_DEPS_DIR=windows-deps-$(MINGW_PREFIX) 14WINDOWS_DEPS_DIR=windows-deps-$(MINGW_PREFIX)
diff --git a/binary/all_in_one b/binary/all_in_one
index eace5290..9db25bf8 100755
--- a/binary/all_in_one
+++ b/binary/all_in_one
@@ -470,7 +470,7 @@ local function main()
470 ["lua-zlib"] = "./binary/lua-zlib-1.2-0.rockspec", 470 ["lua-zlib"] = "./binary/lua-zlib-1.2-0.rockspec",
471 ["lua-bz2"] = "./binary/lua-bz2-0.2.1-1.rockspec", 471 ["lua-bz2"] = "./binary/lua-bz2-0.2.1-1.rockspec",
472 luaposix = if_platform("unix", "./binary/luaposix-35.1-1.rockspec"), 472 luaposix = if_platform("unix", "./binary/luaposix-35.1-1.rockspec"),
473 luasocket = "./binary/luasocket-3.1.0-1.rockspec", 473 luasocket = "luasocket",
474 luafilesystem = "luafilesystem", 474 luafilesystem = "luafilesystem",
475 dkjson = "dkjson", 475 dkjson = "dkjson",
476 } 476 }
diff --git a/binary/luasocket-3.1.0-1.rockspec b/binary/luasocket-3.1.0-1.rockspec
deleted file mode 100644
index f33080b0..00000000
--- a/binary/luasocket-3.1.0-1.rockspec
+++ /dev/null
@@ -1,136 +0,0 @@
1package = "LuaSocket"
2version = "3.1.0-1"
3source = {
4 url = "git+https://github.com/lunarmodules/luasocket.git",
5 tag = "v3.1.0"
6}
7description = {
8 summary = "Network support for the Lua language",
9 detailed = [[
10 LuaSocket is a Lua extension library composed of two parts: a set of C
11 modules that provide support for the TCP and UDP transport layers, and a
12 set of Lua modules that provide functions commonly needed by applications
13 that deal with the Internet.
14 ]],
15 homepage = "https://github.com/lunarmodules/luasocket",
16 license = "MIT"
17}
18dependencies = {
19 "lua >= 5.1"
20}
21
22local function make_plat(plat)
23 local defines = {
24 unix = {
25 "LUASOCKET_DEBUG"
26 },
27 macosx = {
28 "LUASOCKET_DEBUG",
29 "UNIX_HAS_SUN_LEN"
30 },
31 win32 = {
32 "LUASOCKET_DEBUG",
33 "NDEBUG"
34 },
35 mingw32 = {
36 "LUASOCKET_DEBUG",
37 "LUASOCKET_INET_PTON",
38 "WINVER=0x0501",
39 },
40 }
41 local modules = {
42 ["socket.core"] = {
43 sources = {
44 "src/luasocket.c"
45 , "src/timeout.c"
46 , "src/buffer.c"
47 , "src/io.c"
48 , "src/auxiliar.c"
49 , "src/options.c"
50 , "src/inet.c"
51 , "src/except.c"
52 , "src/select.c"
53 , "src/tcp.c"
54 , "src/udp.c"
55 , "src/compat.c" },
56 defines = defines[plat],
57 incdir = "/src"
58 },
59 ["mime.core"] = {
60 sources = { "src/mime.c", "src/compat.c" },
61 defines = defines[plat],
62 incdir = "/src"
63 },
64 ["socket.http"] = "src/http.lua",
65 ["socket.url"] = "src/url.lua",
66 ["socket.tp"] = "src/tp.lua",
67 ["socket.ftp"] = "src/ftp.lua",
68 ["socket.headers"] = "src/headers.lua",
69 ["socket.smtp"] = "src/smtp.lua",
70 ltn12 = "src/ltn12.lua",
71 socket = "src/socket.lua",
72 mime = "src/mime.lua"
73 }
74 if plat == "unix"
75 or plat == "macosx"
76 or plat == "haiku"
77 then
78 modules["socket.core"].sources[#modules["socket.core"].sources+1] = "src/usocket.c"
79 if plat == "haiku" then
80 modules["socket.core"].libraries = {"network"}
81 end
82 modules["socket.unix"] = {
83 sources = {
84 "src/buffer.c"
85 , "src/compat.c"
86 , "src/auxiliar.c"
87 , "src/options.c"
88 , "src/timeout.c"
89 , "src/io.c"
90 , "src/usocket.c"
91 , "src/unix.c"
92 , "src/unixdgram.c"
93 , "src/unixstream.c" },
94 defines = defines[plat],
95 incdir = "/src"
96 }
97 modules["socket.serial"] = {
98 sources = {
99 "src/buffer.c"
100 , "src/compat.c"
101 , "src/auxiliar.c"
102 , "src/options.c"
103 , "src/timeout.c"
104 , "src/io.c"
105 , "src/usocket.c"
106 , "src/serial.c" },
107 defines = defines[plat],
108 incdir = "/src"
109 }
110 end
111 if plat == "win32"
112 or plat == "mingw32"
113 then
114 modules["socket.core"].sources[#modules["socket.core"].sources+1] = "src/wsocket.c"
115 modules["socket.core"].libraries = { "ws2_32" }
116 modules["socket.core"].libdirs = {}
117 end
118 return { modules = modules }
119end
120
121build = {
122 type = "builtin",
123 platforms = {
124 unix = make_plat("unix"),
125 macosx = make_plat("macosx"),
126 haiku = make_plat("haiku"),
127 win32 = make_plat("win32"),
128 mingw32 = make_plat("mingw32"),
129 mingw64 = make_plat("mingw64")
130 },
131 copy_directories = {
132 "docs"
133 , "samples"
134 , "etc"
135 , "test" }
136}
diff --git a/configure b/configure
index a8bf8809..4a5542b9 100755
--- a/configure
+++ b/configure
@@ -320,7 +320,7 @@ do
320done 320done
321 321
322echo 322echo
323BLUE "Configuring LuaRocks version 3.9.2..." 323BLUE "Configuring LuaRocks version dev..."
324echo 324echo
325echo 325echo
326 326
diff --git a/install.bat b/install.bat
index de8cb70b..7a5df9cd 100644
--- a/install.bat
+++ b/install.bat
@@ -6,7 +6,7 @@ local vars = {}
6 6
7 7
8vars.PREFIX = nil 8vars.PREFIX = nil
9vars.VERSION = "3.9" 9vars.VERSION = "3.0"
10vars.SYSCONFDIR = nil 10vars.SYSCONFDIR = nil
11vars.CONFBACKUPDIR = nil 11vars.CONFBACKUPDIR = nil
12vars.SYSCONFFILENAME = nil 12vars.SYSCONFFILENAME = nil
diff --git a/luarocks-3.9.2-1.rockspec b/luarocks-dev-1.rockspec
index c4fe644d..718ce338 100644
--- a/luarocks-3.9.2-1.rockspec
+++ b/luarocks-dev-1.rockspec
@@ -1,9 +1,8 @@
1rockspec_format = "3.0" 1rockspec_format = "3.0"
2package = "luarocks" 2package = "luarocks"
3version = "3.9.2-1" 3version = "dev-1"
4source = { 4source = {
5 url = "git+https://github.com/luarocks/luarocks", 5 url = "git+https://github.com/luarocks/luarocks",
6 tag = "v3.9.2"
7} 6}
8description = { 7description = {
9 summary = "A package manager for Lua modules.", 8 summary = "A package manager for Lua modules.",
diff --git a/makedist b/makedist
index 0ba46034..0cc247d3 100755
--- a/makedist
+++ b/makedist
@@ -150,7 +150,7 @@ if [ "$1" = "binary" ]
150then 150then
151 shift 151 shift
152 152
153 ./configure --lua-version=5.4 --with-lua=${LUA_DIR:-/usr} 153 ./configure --lua-version=5.4
154 154
155 make binary 155 make binary
156 cd build-binary 156 cd build-binary
diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua
index eb170f35..a5f27e27 100644
--- a/src/luarocks/core/cfg.lua
+++ b/src/luarocks/core/cfg.lua
@@ -20,7 +20,7 @@ local vers = require("luarocks.core.vers")
20 20
21-------------------------------------------------------------------------------- 21--------------------------------------------------------------------------------
22 22
23local program_version = "3.9.2" 23local program_version = "dev"
24 24
25local is_windows = package.config:sub(1,1) == "\\" 25local is_windows = package.config:sub(1,1) == "\\"
26 26