diff options
| author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2023-11-09 19:56:49 +0100 |
|---|---|---|
| committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2023-11-09 22:59:06 +0100 |
| commit | 6f8f8fda06c6fa499484feeb6068b560b13d7859 (patch) | |
| tree | 0a4a6144982ae147cb98df43890550def54bbec6 | |
| parent | 0c8efdd97c08c06aeb5e5e419d933a6a28bdfe26 (diff) | |
| download | luasystem-6f8f8fda06c6fa499484feeb6068b560b13d7859.tar.gz luasystem-6f8f8fda06c6fa499484feeb6068b560b13d7859.tar.bz2 luasystem-6f8f8fda06c6fa499484feeb6068b560b13d7859.zip | |
chore(rockspecs): update new location
| -rw-r--r-- | luasystem-scm-0.rockspec | 23 | ||||
| -rw-r--r-- | rockspecs/luasystem-0.2.1-1.rockspec | 68 |
2 files changed, 85 insertions, 6 deletions
diff --git a/luasystem-scm-0.rockspec b/luasystem-scm-0.rockspec index 1093ac4..74e301d 100644 --- a/luasystem-scm-0.rockspec +++ b/luasystem-scm-0.rockspec | |||
| @@ -1,17 +1,28 @@ | |||
| 1 | package = 'luasystem' | 1 | local package_name = "luasystem" |
| 2 | version = 'scm-0' | 2 | local package_version = "scm" |
| 3 | local rockspec_revision = "0" | ||
| 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 | |||
| 3 | source = { | 11 | source = { |
| 4 | url = "git://github.com/o-lim/luasystem", | 12 | url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git", |
| 5 | branch = "master" | 13 | branch = (package_version == "scm") and "master" or nil, |
| 14 | tag = (package_version ~= "scm") and package_version or nil, | ||
| 6 | } | 15 | } |
| 16 | |||
| 7 | description = { | 17 | description = { |
| 8 | summary = 'Platform independent system calls for Lua.', | 18 | summary = 'Platform independent system calls for Lua.', |
| 9 | detailed = [[ | 19 | detailed = [[ |
| 10 | Adds a Lua API for making platform independent system calls. | 20 | Adds a Lua API for making platform independent system calls. |
| 11 | ]], | 21 | ]], |
| 12 | homepage = 'http://olivinelabs.com/luasystem/', | 22 | license = 'MIT <http://opensource.org/licenses/MIT>', |
| 13 | license = 'MIT <http://opensource.org/licenses/MIT>' | 23 | homepage = "https://github.com/"..github_account_name.."/"..github_repo_name, |
| 14 | } | 24 | } |
| 25 | |||
| 15 | dependencies = { | 26 | dependencies = { |
| 16 | 'lua >= 5.1', | 27 | 'lua >= 5.1', |
| 17 | } | 28 | } |
diff --git a/rockspecs/luasystem-0.2.1-1.rockspec b/rockspecs/luasystem-0.2.1-1.rockspec new file mode 100644 index 0000000..7d8b9b0 --- /dev/null +++ b/rockspecs/luasystem-0.2.1-1.rockspec | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | local package_name = "luasystem" | ||
| 2 | local package_version = "0.2.1" | ||
| 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 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 = { }, | ||
| 43 | mingw32 = { }, | ||
| 44 | } | ||
| 45 | return { | ||
| 46 | modules = { | ||
| 47 | ['system.core'] = { | ||
| 48 | sources = { 'src/core.c', 'src/compat.c', 'src/time.c', }, | ||
| 49 | defines = defines[plat], | ||
| 50 | libraries = libraries[plat], | ||
| 51 | }, | ||
| 52 | }, | ||
| 53 | } | ||
| 54 | end | ||
| 55 | |||
| 56 | build = { | ||
| 57 | type = 'builtin', | ||
| 58 | platforms = { | ||
| 59 | linux = make_platform('linux'), | ||
| 60 | unix = make_platform('unix'), | ||
| 61 | macosx = make_platform('macosx'), | ||
| 62 | win32 = make_platform('win32'), | ||
| 63 | mingw32 = make_platform('mingw32'), | ||
| 64 | }, | ||
| 65 | modules = { | ||
| 66 | ['system.init'] = 'system/init.lua', | ||
| 67 | }, | ||
| 68 | } | ||
