diff options
| author | Oscar Lim <olim@ucla.edu> | 2016-05-08 11:45:34 -0700 |
|---|---|---|
| committer | Oscar Lim <olim@ucla.edu> | 2016-05-08 16:01:41 -0700 |
| commit | 29c3365ae7bcf034e9c9e3a0f248fc9f0fc486ac (patch) | |
| tree | e122ee7e85d43c47306792d92c962c93147ec3a8 /luasystem-0.2.0-0.rockspec | |
| parent | 8c1a0fca53bf11f2b7ce708c8c5bdb05e5a55701 (diff) | |
| download | luasystem-0.2.0.tar.gz luasystem-0.2.0.tar.bz2 luasystem-0.2.0.zip | |
Release v0.2.0v0.2.0
Diffstat (limited to 'luasystem-0.2.0-0.rockspec')
| -rw-r--r-- | luasystem-0.2.0-0.rockspec | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/luasystem-0.2.0-0.rockspec b/luasystem-0.2.0-0.rockspec new file mode 100644 index 0000000..6d542f7 --- /dev/null +++ b/luasystem-0.2.0-0.rockspec | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | package = 'luasystem' | ||
| 2 | version = '0.2.0-0' | ||
| 3 | source = { | ||
| 4 | url = "https://github.com/o-lim/luasystem/archive/v0.2.0.tar.gz", | ||
| 5 | dir = "luasystem-0.2.0" | ||
| 6 | } | ||
| 7 | description = { | ||
| 8 | summary = 'Platform independent system calls for Lua.', | ||
| 9 | detailed = [[ | ||
| 10 | Adds a Lua API for making platform independent system calls. | ||
| 11 | ]], | ||
| 12 | homepage = 'http://olivinelabs.com/luasystem/', | ||
| 13 | license = 'MIT <http://opensource.org/licenses/MIT>' | ||
| 14 | } | ||
| 15 | dependencies = { | ||
| 16 | 'lua >= 5.1', | ||
| 17 | } | ||
| 18 | |||
| 19 | local function make_platform(plat) | ||
| 20 | local defines = { | ||
| 21 | linux = { }, | ||
| 22 | unix = { }, | ||
| 23 | macosx = { }, | ||
| 24 | win32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" }, | ||
| 25 | mingw32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" }, | ||
| 26 | } | ||
| 27 | local libraries = { | ||
| 28 | linux = { "rt" }, | ||
| 29 | unix = { }, | ||
| 30 | macosx = { }, | ||
| 31 | win32 = { }, | ||
| 32 | mingw32 = { }, | ||
| 33 | } | ||
| 34 | return { | ||
| 35 | modules = { | ||
| 36 | ['system.core'] = { | ||
| 37 | sources = { 'src/core.c', 'src/compat.c', 'src/time.c', }, | ||
| 38 | defines = defines[plat], | ||
| 39 | libraries = libraries[plat], | ||
| 40 | }, | ||
| 41 | }, | ||
| 42 | } | ||
| 43 | end | ||
| 44 | |||
| 45 | build = { | ||
| 46 | type = 'builtin', | ||
| 47 | platforms = { | ||
| 48 | linux = make_platform('linux'), | ||
| 49 | unix = make_platform('unix'), | ||
| 50 | macosx = make_platform('macosx'), | ||
| 51 | win32 = make_platform('win32'), | ||
| 52 | mingw32 = make_platform('mingw32'), | ||
| 53 | }, | ||
| 54 | modules = { | ||
| 55 | ['system.init'] = 'system/init.lua', | ||
| 56 | }, | ||
| 57 | } | ||
