aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Germain <bnt.germain@gmail.com>2012-02-18 14:13:28 +0100
committerBenoit Germain <bnt.germain@gmail.com>2012-02-18 14:13:28 +0100
commit60a0e700054f70be151e3765b7ca0878ed379070 (patch)
tree0a69595efa2286bb7034b2a875c721d3ad5d8aee
parent076344633e7b2525cf48005f84f3935f324b60bf (diff)
downloadlanes-3.1.0.tar.gz
lanes-3.1.0.tar.bz2
lanes-3.1.0.zip
* rockspec for v3.1.0v3.1.0
-rw-r--r--lanes-3.1.0-1.rockspec91
1 files changed, 91 insertions, 0 deletions
diff --git a/lanes-3.1.0-1.rockspec b/lanes-3.1.0-1.rockspec
new file mode 100644
index 0000000..98bbbf5
--- /dev/null
+++ b/lanes-3.1.0-1.rockspec
@@ -0,0 +1,91 @@
1--
2-- Lanes rockspec
3--
4-- Ref:
5-- <http://luarocks.org/en/Rockspec_format>
6--
7
8package = "Lanes"
9
10version = "3.1.0-1"
11
12source= {
13 url= "git://github.com/LuaLanes/lanes.git",
14 branch= "v3.1.0"
15}
16
17description = {
18 summary= "Multithreading support for Lua",
19 detailed= [[
20 Lua Lanes is a portable, message passing multithreading library
21 providing the possibility to run multiple Lua states in parallel.
22 ]],
23 license= "MIT/X11",
24 homepage="http://kotisivu.dnainternet.net/askok/lanes/",
25 maintainer="Benoit Germain <bnt.germain@gmail.com>"
26}
27
28-- Q: What is the difference of "windows" and "win32"? Seems there is none;
29-- so should we list either one or both?
30--
31supported_platforms= { "win32",
32 "macosx",
33 "linux",
34 "freebsd", -- TBD: not tested
35 "msys", -- TBD: not supported by LuaRocks 1.0 (or is it?)
36}
37
38dependencies= {
39 "lua >= 5.1, <= 5.2",
40}
41
42--
43-- Non-Win32: build using the Makefile
44-- Win32: build using 'make-vc.cmd' and "manual" copy of products
45--
46-- TBD: How is MSYS treated? We'd like (really) it to use the Makefile.
47-- It should be a target like "cygwin", not defining "windows".
48-- "windows" should actually guarantee Visual C++ as the compiler.
49--
50-- Q: Does "win32" guarantee we have Visual C++ 2005/2008 command line tools?
51--
52-- Note: Cannot use the simple "module" build type, because we need to precompile
53-- 'src/keeper.lua' -> keeper.lch and bake it into lanes.c.
54--
55build = {
56
57 -- Win32 (Visual C++) uses 'make-vc.cmd' for building
58 --
59 platforms= {
60 windows= {
61 type= "command",
62 build_command= "make-vc.cmd",
63 install= {
64 lua = { "src/lanes.lua" },
65 lib = { "lua51-lanes.dll" }
66 }
67 }
68 },
69
70 -- Other platforms use the Makefile
71 --
72 -- LuaRocks defines CFLAGS, LIBFLAG and LUA_INCDIR for 'make rock',
73 -- defines LIBDIR, LUADIR for 'make install'
74 --
75 -- Ref: <http://www.luarocks.org/en/Paths_and_external_dependencies>
76 --
77 type = "make",
78
79 build_target = "rock",
80 build_variables= {
81 CFLAGS= "$(CFLAGS) -I$(LUA_INCDIR)",
82 LIBFLAG= "$(LIBFLAG)",
83 },
84
85 install_target = "install",
86 install_variables= {
87 LUA_LIBDIR= "$(LIBDIR)",
88 LUA_SHAREDIR= "$(LUADIR)",
89 }
90}
91