From 2644cc9d12a7d0c16ca315ca44e011c11711fb07 Mon Sep 17 00:00:00 2001 From: Geoff Leyland Date: Tue, 6 Sep 2016 15:41:36 +1200 Subject: [PATCH] Try to update the rockspec --- .travis.yml | 2 +- appveyor.yml | 2 +- rockspecs/mmapfile-scm-2.rockspec | 33 +++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 rockspecs/mmapfile-scm-2.rockspec diff --git a/.travis.yml b/.travis.yml index bd87b28..50a6030 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ install: - luarocks install busted - luarocks install luacov - luarocks install luacov-coveralls - - luarocks install ljsyscall + - luarocks make rockspecs/mmapfile-scm-2.rockspec script: - luacheck src-lua diff --git a/appveyor.yml b/appveyor.yml index 11fc1c1..ab1a120 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -11,7 +11,7 @@ before_build: - luarocks install busted build_script: - - dir + - luarocks make rockspecs/mmapfile-scm-2.rockspec test_script: - busted . \ No newline at end of file diff --git a/rockspecs/mmapfile-scm-2.rockspec b/rockspecs/mmapfile-scm-2.rockspec new file mode 100644 index 0000000..c211328 --- /dev/null +++ b/rockspecs/mmapfile-scm-2.rockspec @@ -0,0 +1,33 @@ +package = "mmapfile" +version = "scm-2" +source = +{ + url = "git://github.com/geoffleyland/lua-mmapfile.git", + branch = "master", +} +description = +{ + summary = "Simple memory-mapped files", + homepage = "http://github.com/geoffleyland/lua-mmapfile", + license = "MIT/X11", + maintainer = "Geoff Leyland " +} +dependencies = +{ + 'lua == 5.1', -- should be "luajit >= 2.0.0" + platforms = + { + linux = { 'ljsyscall >= 0.9' }, + macosx = { 'ljsyscall >= 0.9' }, + } +} +build = +{ + type = "builtin", + modules = + { + mmapfile = "src-lua/mmapfile.lua", + ["mmapfile.unix"] = "src-lua/mmapfile/unix.lua", + ["mmapfile.windows"] = "src-lua/mmapfile/windows.lua", + }, +}