aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--luasystem-scm-0.rockspec23
-rw-r--r--rockspecs/luasystem-0.2.1-1.rockspec68
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 @@
1package = 'luasystem' 1local package_name = "luasystem"
2version = 'scm-0' 2local package_version = "scm"
3local rockspec_revision = "0"
4local github_account_name = "lunarmodules"
5local github_repo_name = "luasystem"
6
7
8package = package_name
9version = package_version.."-"..rockspec_revision
10
3source = { 11source = {
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
7description = { 17description = {
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
15dependencies = { 26dependencies = {
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 @@
1local package_name = "luasystem"
2local package_version = "0.2.1"
3local rockspec_revision = "1"
4local github_account_name = "lunarmodules"
5local github_repo_name = "luasystem"
6
7
8package = package_name
9version = package_version.."-"..rockspec_revision
10
11source = {
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
17description = {
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
26dependencies = {
27 'lua >= 5.1',
28}
29
30local 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 }
54end
55
56build = {
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}