diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-09-25 17:25:01 -0500 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-09-25 17:25:01 -0500 |
commit | d0409b2ccd90bf61d17da5228502c1ae7657a094 (patch) | |
tree | bedb996c97ef32711a2911d46bbe088ed63c89c5 | |
parent | 8eb244f3799e3f0f06f62669f2ab2b814528522c (diff) | |
download | luarocks-packaging-d0409b2ccd90bf61d17da5228502c1ae7657a094.tar.gz luarocks-packaging-d0409b2ccd90bf61d17da5228502c1ae7657a094.tar.bz2 luarocks-packaging-d0409b2ccd90bf61d17da5228502c1ae7657a094.zip |
Work on luajit+luarocks
-rw-r--r-- | meta.lua | 39 |
1 files changed, 35 insertions, 4 deletions
@@ -1,27 +1,52 @@ | |||
1 | local lua_versions = { | 1 | local lua_versions = { |
2 | --[[ | ||
2 | ["51"] = { | 3 | ["51"] = { |
3 | link = "https://www.lua.org/ftp/lua-5.1.5.tar.gz", | 4 | link = "https://www.lua.org/ftp/lua-5.1.5.tar.gz", |
4 | slib = "liblua.a", | 5 | slib = "liblua.a", |
5 | bin = "lua.exe", | 6 | bin = "lua.exe", |
6 | dlib = "lua51.dll" | 7 | dlib = "lua51.dll" |
7 | }, | 8 | }, |
8 | ["52"] = {"liblua.a", "lua.exe", "lua52.dll"}, | 9 | ["52"] = { |
9 | ["53"] = {"liblua.a", "lua.exe", "lua53.dll"}, | 10 | link = "https://www.lua.org/ftp/lua-5.2.4.tar.gz", |
10 | ["54"] = {"liblua.a", "lua.exe", "lua54.dll"}, | 11 | slib = "liblua.a", |
11 | ["jit"] = {"libluajit.a", "luajit.exe", "lua51.dll"}, | 12 | bin = "lua.exe", |
13 | dlib = "lua52.dll" | ||
14 | }, | ||
15 | ["53"] = { | ||
16 | link = "https://www.lua.org/ftp/lua-5.3.6.tar.gz", | ||
17 | slib = "liblua.a", | ||
18 | bin = "lua.exe", | ||
19 | dlib = "lua53.dll" | ||
20 | }, | ||
21 | ["54"] = { | ||
22 | link = "https://www.lua.org/ftp/lua-5.4.7.tar.gz", | ||
23 | slib = "liblua.a", | ||
24 | bin = "lua.exe", | ||
25 | dlib = "lua54.dll" | ||
26 | }, | ||
27 | ]] | ||
28 | ["jit"] = { | ||
29 | slib = "libluajit.a", | ||
30 | bin = "luajit.exe", | ||
31 | dlib = "lua51.dll" | ||
32 | } | ||
12 | } | 33 | } |
13 | local optimizations = { | 34 | local optimizations = { |
14 | tiny = "-Oz", | 35 | tiny = "-Oz", |
36 | --[[ | ||
15 | size = "-Os", | 37 | size = "-Os", |
16 | debug = "-Og", | 38 | debug = "-Og", |
17 | zero = "-O0", | 39 | zero = "-O0", |
18 | one = "-O1", | 40 | one = "-O1", |
19 | two = "-O2", | 41 | two = "-O2", |
20 | three = "-O3", | 42 | three = "-O3", |
43 | ]] | ||
21 | } | 44 | } |
22 | local debug = { | 45 | local debug = { |
23 | release = "", | 46 | release = "", |
47 | --[[ | ||
24 | debug = "-g", | 48 | debug = "-g", |
49 | ]] | ||
25 | } | 50 | } |
26 | local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} | 51 | local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} |
27 | 52 | ||
@@ -47,6 +72,11 @@ for version_k, version_v, opti_k, opti_v, debug_k, debug_v, comp_k, comp_v in ca | |||
47 | CFLAGS=" " .. opti_v .. " " .. debug_v, | 72 | CFLAGS=" " .. opti_v .. " " .. debug_v, |
48 | } | 73 | } |
49 | } | 74 | } |
75 | if version_k ~= "jit" then | ||
76 | builds[name].requires[#builds[name].requires + 1] = {"http", version_v.link} | ||
77 | else | ||
78 | builds[name].requires[#builds[name].requires + 1] = {"git", "luajit"} | ||
79 | end | ||
50 | --[[ | 80 | --[[ |
51 | builds[name .. "-test"] = { | 81 | builds[name .. "-test"] = { |
52 | image="image-wine", | 82 | image="image-wine", |
@@ -60,4 +90,5 @@ for version_k, version_v, opti_k, opti_v, debug_k, debug_v, comp_k, comp_v in ca | |||
60 | } | 90 | } |
61 | ]] | 91 | ]] |
62 | end | 92 | end |
93 | |||
63 | return builds | 94 | return builds |