diff options
Diffstat (limited to 'rockspecs')
| -rw-r--r-- | rockspecs/luasystem-0.6.2-1.rockspec | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/rockspecs/luasystem-0.6.2-1.rockspec b/rockspecs/luasystem-0.6.2-1.rockspec new file mode 100644 index 0000000..7a8549f --- /dev/null +++ b/rockspecs/luasystem-0.6.2-1.rockspec | |||
| @@ -0,0 +1,85 @@ | |||
| 1 | local package_name = "luasystem" | ||
| 2 | local package_version = "0.6.2" | ||
| 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", "bcrypt" }, | ||
| 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 | 'src/bitflags.c', | ||
| 63 | 'src/wcwidth.c', | ||
| 64 | }, | ||
| 65 | defines = defines[plat], | ||
| 66 | libraries = libraries[plat], | ||
| 67 | libdirs = libdirs[plat], | ||
| 68 | }, | ||
| 69 | }, | ||
| 70 | } | ||
| 71 | end | ||
| 72 | |||
| 73 | build = { | ||
| 74 | type = 'builtin', | ||
| 75 | platforms = { | ||
| 76 | linux = make_platform('linux'), | ||
| 77 | unix = make_platform('unix'), | ||
| 78 | macosx = make_platform('macosx'), | ||
| 79 | win32 = make_platform('win32'), | ||
| 80 | mingw32 = make_platform('mingw32'), | ||
| 81 | }, | ||
| 82 | modules = { | ||
| 83 | ['system.init'] = 'system/init.lua', | ||
| 84 | }, | ||
| 85 | } | ||
