From 6f8f8fda06c6fa499484feeb6068b560b13d7859 Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Thu, 9 Nov 2023 19:56:49 +0100 Subject: chore(rockspecs): update new location --- luasystem-scm-0.rockspec | 23 ++++++++---- rockspecs/luasystem-0.2.1-1.rockspec | 68 ++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+), 6 deletions(-) create mode 100644 rockspecs/luasystem-0.2.1-1.rockspec 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 @@ -package = 'luasystem' -version = 'scm-0' +local package_name = "luasystem" +local package_version = "scm" +local rockspec_revision = "0" +local github_account_name = "lunarmodules" +local github_repo_name = "luasystem" + + +package = package_name +version = package_version.."-"..rockspec_revision + source = { - url = "git://github.com/o-lim/luasystem", - branch = "master" + url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git", + branch = (package_version == "scm") and "master" or nil, + tag = (package_version ~= "scm") and package_version or nil, } + description = { summary = 'Platform independent system calls for Lua.', detailed = [[ Adds a Lua API for making platform independent system calls. ]], - homepage = 'http://olivinelabs.com/luasystem/', - license = 'MIT ' + license = 'MIT ', + homepage = "https://github.com/"..github_account_name.."/"..github_repo_name, } + dependencies = { 'lua >= 5.1', } 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 @@ +local package_name = "luasystem" +local package_version = "0.2.1" +local rockspec_revision = "1" +local github_account_name = "lunarmodules" +local github_repo_name = "luasystem" + + +package = package_name +version = package_version.."-"..rockspec_revision + +source = { + url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git", + branch = (package_version == "scm") and "master" or nil, + tag = (package_version ~= "scm") and package_version or nil, +} + +description = { + summary = 'Platform independent system calls for Lua.', + detailed = [[ + Adds a Lua API for making platform independent system calls. + ]], + license = 'MIT ', + homepage = "https://github.com/"..github_account_name.."/"..github_repo_name, +} + +dependencies = { + 'lua >= 5.1', +} + +local function make_platform(plat) + local defines = { + linux = { }, + unix = { }, + macosx = { }, + win32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" }, + mingw32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" }, + } + local libraries = { + linux = { "rt" }, + unix = { }, + macosx = { }, + win32 = { }, + mingw32 = { }, + } + return { + modules = { + ['system.core'] = { + sources = { 'src/core.c', 'src/compat.c', 'src/time.c', }, + defines = defines[plat], + libraries = libraries[plat], + }, + }, + } +end + +build = { + type = 'builtin', + platforms = { + linux = make_platform('linux'), + unix = make_platform('unix'), + macosx = make_platform('macosx'), + win32 = make_platform('win32'), + mingw32 = make_platform('mingw32'), + }, + modules = { + ['system.init'] = 'system/init.lua', + }, +} -- cgit v1.2.3-55-g6feb