diff options
| author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2023-12-16 00:18:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-16 00:18:54 +0100 |
| commit | c06963917ccc951a1058d7b7f412c52d3c4f443a (patch) | |
| tree | e2341800e3c6cf77dfc50f90b6509c030bd71308 /rockspecs | |
| parent | 682decf94e238bb2e5407c23651f606ca8d7e107 (diff) | |
| download | luasystem-0.3.0.tar.gz luasystem-0.3.0.tar.bz2 luasystem-0.3.0.zip | |
Release v0.3.0 (#11)v0.3.0
Diffstat (limited to 'rockspecs')
| -rw-r--r-- | rockspecs/luasystem-0.3.0-1.rockspec | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/rockspecs/luasystem-0.3.0-1.rockspec b/rockspecs/luasystem-0.3.0-1.rockspec new file mode 100644 index 0000000..982aa89 --- /dev/null +++ b/rockspecs/luasystem-0.3.0-1.rockspec | |||
| @@ -0,0 +1,75 @@ | |||
| 1 | local package_name = "luasystem" | ||
| 2 | local package_version = "0.3.0" | ||
| 3 | local rockspec_revision = "1" | ||
| 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 | return { | ||
| 46 | modules = { | ||
| 47 | ['system.core'] = { | ||
| 48 | sources = { | ||
| 49 | 'src/core.c', | ||
| 50 | 'src/compat.c', | ||
| 51 | 'src/time.c', | ||
| 52 | 'src/environment.c', | ||
| 53 | 'src/random.c', | ||
| 54 | 'src/term.c', | ||
| 55 | }, | ||
| 56 | defines = defines[plat], | ||
| 57 | libraries = libraries[plat], | ||
| 58 | }, | ||
| 59 | }, | ||
| 60 | } | ||
| 61 | end | ||
| 62 | |||
| 63 | build = { | ||
| 64 | type = 'builtin', | ||
| 65 | platforms = { | ||
| 66 | linux = make_platform('linux'), | ||
| 67 | unix = make_platform('unix'), | ||
| 68 | macosx = make_platform('macosx'), | ||
| 69 | win32 = make_platform('win32'), | ||
| 70 | mingw32 = make_platform('mingw32'), | ||
| 71 | }, | ||
| 72 | modules = { | ||
| 73 | ['system.init'] = 'system/init.lua', | ||
| 74 | }, | ||
| 75 | } | ||
