diff options
author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2024-02-14 20:31:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-14 20:31:40 +0100 |
commit | 7cef1cf1a74c8e10d9cc61b6f5b748f4f7a26abd (patch) | |
tree | 3984be5a1b9043c96f19dafd11982763f59b732f | |
parent | 6c53f44c9a8860a9b7bb25f1c54ddbf8890d9e01 (diff) | |
download | luasystem-7cef1cf1a74c8e10d9cc61b6f5b748f4f7a26abd.tar.gz luasystem-7cef1cf1a74c8e10d9cc61b6f5b748f4f7a26abd.tar.bz2 luasystem-7cef1cf1a74c8e10d9cc61b6f5b748f4f7a26abd.zip |
chore(rockspec): new rockspec revision (#18)
-rw-r--r-- | rockspecs/luasystem-0.3.0-2.rockspec | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/rockspecs/luasystem-0.3.0-2.rockspec b/rockspecs/luasystem-0.3.0-2.rockspec new file mode 100644 index 0000000..7ee8762 --- /dev/null +++ b/rockspecs/luasystem-0.3.0-2.rockspec | |||
@@ -0,0 +1,83 @@ | |||
1 | local package_name = "luasystem" | ||
2 | local package_version = "0.3.0" | ||
3 | local rockspec_revision = "2" | ||
4 | local github_account_name = "lunarmodules" | ||
5 | local github_repo_name = "luasystem" | ||
6 | |||
7 | |||
8 | package = package_name | ||
9 | version = package_version.."-"..rockspec_revision | ||
10 | |||
11 | source = { | ||
12 | url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git", | ||
13 | branch = (package_version == "scm") and "master" or nil, | ||
14 | tag = (package_version ~= "scm") and "v"..package_version or nil, | ||
15 | } | ||
16 | |||
17 | description = { | ||
18 | summary = 'Platform independent system calls for Lua.', | ||
19 | detailed = [[ | ||
20 | Adds a Lua API for making platform independent system calls. | ||
21 | ]], | ||
22 | license = 'MIT <http://opensource.org/licenses/MIT>', | ||
23 | homepage = "https://github.com/"..github_account_name.."/"..github_repo_name, | ||
24 | } | ||
25 | |||
26 | dependencies = { | ||
27 | 'lua >= 5.1', | ||
28 | } | ||
29 | |||
30 | local function make_platform(plat) | ||
31 | local defines = { | ||
32 | linux = { }, | ||
33 | unix = { }, | ||
34 | macosx = { }, | ||
35 | win32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" }, | ||
36 | mingw32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" }, | ||
37 | } | ||
38 | local libraries = { | ||
39 | linux = { "rt" }, | ||
40 | unix = { }, | ||
41 | macosx = { }, | ||
42 | win32 = { "advapi32", "winmm" }, | ||
43 | mingw32 = { }, | ||
44 | } | ||
45 | local libdirs = { | ||
46 | linux = nil, | ||
47 | unix = nil, | ||
48 | macosx = nil, | ||
49 | win32 = nil, | ||
50 | mingw32 = { }, | ||
51 | } | ||
52 | return { | ||
53 | modules = { | ||
54 | ['system.core'] = { | ||
55 | sources = { | ||
56 | 'src/core.c', | ||
57 | 'src/compat.c', | ||
58 | 'src/time.c', | ||
59 | 'src/environment.c', | ||
60 | 'src/random.c', | ||
61 | 'src/term.c', | ||
62 | }, | ||
63 | defines = defines[plat], | ||
64 | libraries = libraries[plat], | ||
65 | libdirs = libdirs[plat], | ||
66 | }, | ||
67 | }, | ||
68 | } | ||
69 | end | ||
70 | |||
71 | build = { | ||
72 | type = 'builtin', | ||
73 | platforms = { | ||
74 | linux = make_platform('linux'), | ||
75 | unix = make_platform('unix'), | ||
76 | macosx = make_platform('macosx'), | ||
77 | win32 = make_platform('win32'), | ||
78 | mingw32 = make_platform('mingw32'), | ||
79 | }, | ||
80 | modules = { | ||
81 | ['system.init'] = 'system/init.lua', | ||
82 | }, | ||
83 | } | ||