diff options
| author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2022-03-22 09:34:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-22 09:34:30 +0100 |
| commit | e178b1e0183ba07290145be3ec718cd78ad826cc (patch) | |
| tree | 1361adcd8cab7f0eaf9a2f50481867ef66b3edca | |
| parent | 642433e771b6e90bc872e5a8c03b6073f11832a1 (diff) | |
| parent | 91aa6522a0a4d5e24af86524fa68350de40a2667 (diff) | |
| download | luasocket-e178b1e0183ba07290145be3ec718cd78ad826cc.tar.gz luasocket-e178b1e0183ba07290145be3ec718cd78ad826cc.tar.bz2 luasocket-e178b1e0183ba07290145be3ec718cd78ad826cc.zip | |
Update URLs in (and to) SCM rockspec, start an epoch #355
| -rw-r--r-- | luasocket-scm-3.rockspec (renamed from rockspec/luasocket-3.0rc2-1.rockspec) | 8 | ||||
| -rw-r--r-- | rockspec/luasocket-scm-2.rockspec | 134 | ||||
| -rw-r--r-- | rockspecs/luasocket-3.0rc1-2.rockspec | 108 |
3 files changed, 112 insertions, 138 deletions
diff --git a/rockspec/luasocket-3.0rc2-1.rockspec b/luasocket-scm-3.rockspec index dfe5275..4e1669c 100644 --- a/rockspec/luasocket-3.0rc2-1.rockspec +++ b/luasocket-scm-3.rockspec | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | package = "LuaSocket" | 1 | package = "LuaSocket" |
| 2 | version = "3.0rc2-1" | 2 | version = "scm-3" |
| 3 | source = { | 3 | source = { |
| 4 | url = "git://github.com/diegonehab/luasocket.git", | 4 | url = "git+https://github.com/lunarmodules/luasocket.git", |
| 5 | tag = "v3.0-rc2", | 5 | branch = "master" |
| 6 | } | 6 | } |
| 7 | description = { | 7 | description = { |
| 8 | summary = "Network support for the Lua language", | 8 | summary = "Network support for the Lua language", |
| @@ -12,7 +12,7 @@ description = { | |||
| 12 | modules that add support for functionality commonly needed by applications | 12 | modules that add support for functionality commonly needed by applications |
| 13 | that deal with the Internet. | 13 | that deal with the Internet. |
| 14 | ]], | 14 | ]], |
| 15 | homepage = "http://luaforge.net/projects/luasocket/", | 15 | homepage = "https://github.com/lunarmodules/luasocket", |
| 16 | license = "MIT" | 16 | license = "MIT" |
| 17 | } | 17 | } |
| 18 | dependencies = { | 18 | dependencies = { |
diff --git a/rockspec/luasocket-scm-2.rockspec b/rockspec/luasocket-scm-2.rockspec deleted file mode 100644 index 9a71b07..0000000 --- a/rockspec/luasocket-scm-2.rockspec +++ /dev/null | |||
| @@ -1,134 +0,0 @@ | |||
| 1 | package = "LuaSocket" | ||
| 2 | version = "scm-2" | ||
| 3 | source = { | ||
| 4 | url = "git://github.com/diegonehab/luasocket.git" | ||
| 5 | , branch="master" | ||
| 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 | |||
| 22 | local 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 | end | ||
| 117 | return { modules = modules } | ||
| 118 | end | ||
| 119 | |||
| 120 | build = { | ||
| 121 | type = "builtin", | ||
| 122 | platforms = { | ||
| 123 | unix = make_plat("unix"), | ||
| 124 | macosx = make_plat("macosx"), | ||
| 125 | haiku = make_plat("haiku"), | ||
| 126 | win32 = make_plat("win32"), | ||
| 127 | mingw32 = make_plat("mingw32") | ||
| 128 | }, | ||
| 129 | copy_directories = { | ||
| 130 | "doc" | ||
| 131 | , "samples" | ||
| 132 | , "etc" | ||
| 133 | , "test" } | ||
| 134 | } | ||
diff --git a/rockspecs/luasocket-3.0rc1-2.rockspec b/rockspecs/luasocket-3.0rc1-2.rockspec new file mode 100644 index 0000000..3cb6524 --- /dev/null +++ b/rockspecs/luasocket-3.0rc1-2.rockspec | |||
| @@ -0,0 +1,108 @@ | |||
| 1 | package = "LuaSocket" | ||
| 2 | version = "3.0rc1-2" | ||
| 3 | source = { | ||
| 4 | url = "https://github.com/diegonehab/luasocket/archive/v3.0-rc1.zip", | ||
| 5 | dir = "luasocket-3.0-rc1", | ||
| 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 | |||
| 22 | local function make_plat(plat) | ||
| 23 | local defines = { | ||
| 24 | unix = { | ||
| 25 | "LUA_COMPAT_APIINTCASTS", | ||
| 26 | "LUASOCKET_DEBUG", | ||
| 27 | "LUASOCKET_API=__attribute__((visibility(\"default\")))", | ||
| 28 | "UNIX_API=__attribute__((visibility(\"default\")))", | ||
| 29 | "MIME_API=__attribute__((visibility(\"default\")))" | ||
| 30 | }, | ||
| 31 | macosx = { | ||
| 32 | "LUA_COMPAT_APIINTCASTS", | ||
| 33 | "LUASOCKET_DEBUG", | ||
| 34 | "UNIX_HAS_SUN_LEN", | ||
| 35 | "LUASOCKET_API=__attribute__((visibility(\"default\")))", | ||
| 36 | "UNIX_API=__attribute__((visibility(\"default\")))", | ||
| 37 | "MIME_API=__attribute__((visibility(\"default\")))" | ||
| 38 | }, | ||
| 39 | win32 = { | ||
| 40 | "LUA_COMPAT_APIINTCASTS", | ||
| 41 | "LUASOCKET_DEBUG", | ||
| 42 | "NDEBUG", | ||
| 43 | "LUASOCKET_API=__declspec(dllexport)", | ||
| 44 | "MIME_API=__declspec(dllexport)" | ||
| 45 | }, | ||
| 46 | mingw32 = { | ||
| 47 | "LUA_COMPAT_APIINTCASTS", | ||
| 48 | "LUASOCKET_DEBUG", | ||
| 49 | "LUASOCKET_INET_PTON", | ||
| 50 | "WINVER=0x0501", | ||
| 51 | "LUASOCKET_API=__declspec(dllexport)", | ||
| 52 | "MIME_API=__declspec(dllexport)" | ||
| 53 | } | ||
| 54 | } | ||
| 55 | local modules = { | ||
| 56 | ["socket.core"] = { | ||
| 57 | sources = { "src/luasocket.c", "src/timeout.c", "src/buffer.c", "src/io.c", "src/auxiliar.c", | ||
| 58 | "src/options.c", "src/inet.c", "src/except.c", "src/select.c", "src/tcp.c", "src/udp.c" }, | ||
| 59 | defines = defines[plat], | ||
| 60 | incdir = "src" | ||
| 61 | }, | ||
| 62 | ["mime.core"] = { | ||
| 63 | sources = { "src/mime.c" }, | ||
| 64 | defines = defines[plat], | ||
| 65 | incdir = "src" | ||
| 66 | }, | ||
| 67 | ["socket.http"] = "src/http.lua", | ||
| 68 | ["socket.url"] = "src/url.lua", | ||
| 69 | ["socket.tp"] = "src/tp.lua", | ||
| 70 | ["socket.ftp"] = "src/ftp.lua", | ||
| 71 | ["socket.headers"] = "src/headers.lua", | ||
| 72 | ["socket.smtp"] = "src/smtp.lua", | ||
| 73 | ltn12 = "src/ltn12.lua", | ||
| 74 | socket = "src/socket.lua", | ||
| 75 | mime = "src/mime.lua" | ||
| 76 | } | ||
| 77 | if plat == "unix" or plat == "macosx" then | ||
| 78 | modules["socket.core"].sources[#modules["socket.core"].sources+1] = "src/usocket.c" | ||
| 79 | modules["socket.unix"] = { | ||
| 80 | sources = { "src/buffer.c", "src/auxiliar.c", "src/options.c", "src/timeout.c", "src/io.c", | ||
| 81 | "src/usocket.c", "src/unix.c" }, | ||
| 82 | defines = defines[plat], | ||
| 83 | incdir = "/src" | ||
| 84 | } | ||
| 85 | modules["socket.serial"] = { | ||
| 86 | sources = { "src/buffer.c", "src/auxiliar.c", "src/options.c", "src/timeout.c", | ||
| 87 | "src/io.c", "src/usocket.c", "src/serial.c" }, | ||
| 88 | defines = defines[plat], | ||
| 89 | incdir = "/src" | ||
| 90 | } | ||
| 91 | end | ||
| 92 | if plat == "win32" or plat == "mingw32" then | ||
| 93 | modules["socket.core"].sources[#modules["socket.core"].sources+1] = "src/wsocket.c" | ||
| 94 | modules["socket.core"].libraries = { "ws2_32" } | ||
| 95 | end | ||
| 96 | return { modules = modules } | ||
| 97 | end | ||
| 98 | |||
| 99 | build = { | ||
| 100 | type = "builtin", | ||
| 101 | platforms = { | ||
| 102 | unix = make_plat("unix"), | ||
| 103 | macosx = make_plat("macosx"), | ||
| 104 | win32 = make_plat("win32"), | ||
| 105 | mingw32 = make_plat("mingw32") | ||
| 106 | }, | ||
| 107 | copy_directories = { "doc", "samples", "etc", "test" } | ||
| 108 | } | ||
