diff options
author | Howard Su <howard0su@gmail.com> | 2016-10-27 15:50:26 +0300 |
---|---|---|
committer | Howard Su <howard0su@gmail.com> | 2016-10-27 18:10:21 +0300 |
commit | 78d5136eb6c2bc26d9106b0673f7f2a84398de2d (patch) | |
tree | ec8c96349876583ba4a6996145b53233c10bb85a /win-files | |
parent | 431843564500d138078975108164d9c4c0390947 (diff) |
get sys module working
Diffstat (limited to 'win-files')
-rw-r--r-- | win-files/luaffi-scm-1.rockspec | 35 | ||||
-rw-r--r-- | win-files/sys-1.1-0.rockspec | 33 | ||||
-rw-r--r-- | win-files/trepl-scm-1.rockspec | 55 |
3 files changed, 123 insertions, 0 deletions
diff --git a/win-files/luaffi-scm-1.rockspec b/win-files/luaffi-scm-1.rockspec new file mode 100644 index 0000000..c84cc71 --- /dev/null +++ b/win-files/luaffi-scm-1.rockspec @@ -0,0 +1,35 @@ +package = "luaffi" +version = "scm-1" + +source = { + url = "git://github.com/facebook/luaffifb.git", +} + +description = { + summary = "FFI library for calling C functions from lua", + detailed = [[ + ]], + homepage = "https://github.com/facebook/luaffifb", + license = "BSD" +} + +dependencies = { + "lua >= 5.1", +} + +build = { + type = "builtin", + noexp = true, + modules = { + ['ffi'] = { + incdirs = { + "dynasm" + }, + sources = { + "call.c", "ctype.c", "ffi.c", "parser.c", + } + }, + ['ffi.libtest'] = 'test.c', + ['ffi.test'] = 'test.lua' + } +} diff --git a/win-files/sys-1.1-0.rockspec b/win-files/sys-1.1-0.rockspec new file mode 100644 index 0000000..3344b53 --- /dev/null +++ b/win-files/sys-1.1-0.rockspec @@ -0,0 +1,33 @@ +package = "sys" +version = "1.1-0" + +source = { + url = "git://github.com/torch/sys" +} + +description = { + summary = "A system library for Torch", + detailed = [[ +Provides system functionalities for Torch. + ]], + homepage = "https://github.com/torch/sys", + license = "BSD" +} + +dependencies = { + "torch >= 7.0", +} + +build = { + type = "builtin", + modules = { + ['sys.init'] = 'init.lua', + ['sys.fpath'] = 'fpath.lua', + ['sys.color'] = 'colors.lua', + libsys = { + sources = { + "sys.c" + } + } + }, +} diff --git a/win-files/trepl-scm-1.rockspec b/win-files/trepl-scm-1.rockspec new file mode 100644 index 0000000..710f4cd --- /dev/null +++ b/win-files/trepl-scm-1.rockspec @@ -0,0 +1,55 @@ +package = "trepl" +version = "scm-1" + +source = { + url = "git://github.com/torch/trepl", + branch = "master", +} + +description = { + summary = "An embedabble, Lua-only REPL for Torch.", + detailed = [[ +An embedabble, Lua-only REPL for Torch. + ]], + homepage = "https://github.com/torch/trepl", + license = "BSD" +} + +dependencies = { + "torch >= 7.0", + "penlight >= 1.1.0", +} + +build = { + type = "builtin", + modules = { + ['trepl.init'] = 'init.lua', + ['trepl.colors'] = 'colors.lua', + ['trepl.colorize'] = 'colorize.lua', + ['readline'] = { + sources = {'readline.c'}, + libraries = {'readline'} + }, + ['treplutils'] = { + sources = {'utils.c'}, + } + }, + platforms = { + windows = { + modules = { + ['readline'] = { + sources = {'readline.c'}, + defines = {"EDITLINE"}, + incdirs = {"../../install/include"}, + libdirs = {"../../install/lib"}, + libraries = {'libedit_static', 'User32'} + } + } + } + }, + install = { + bin = { + 'th' + } + } +} |