diff options
| author | Benoit Germain <bnt.germain@gmail.com> | 2011-03-01 21:41:01 +0100 |
|---|---|---|
| committer | Benoit Germain <bnt.germain@gmail.com> | 2011-03-01 21:41:01 +0100 |
| commit | 44e8ed9f1fc537bc279b51d1ebdb633c636f5bfa (patch) | |
| tree | 6ef759338b3cc684d66371ffe3735940fde674f0 | |
| parent | f213d882054417835d98314bae2e14a334cb9a04 (diff) | |
| download | lanes-44e8ed9f1fc537bc279b51d1ebdb633c636f5bfa.tar.gz lanes-44e8ed9f1fc537bc279b51d1ebdb633c636f5bfa.tar.bz2 lanes-44e8ed9f1fc537bc279b51d1ebdb633c636f5bfa.zip | |
rockspecs for 2.0.11 and 2.1.0 (latest not operational yet since tag doesn't exist)
| -rw-r--r-- | lanes-2.0-11.rockspec | 4 | ||||
| -rw-r--r-- | lanes-2.1-0.rockspec | 97 |
2 files changed, 99 insertions, 2 deletions
diff --git a/lanes-2.0-11.rockspec b/lanes-2.0-11.rockspec index 11682b6..a5e7d3a 100644 --- a/lanes-2.0-11.rockspec +++ b/lanes-2.0-11.rockspec | |||
| @@ -15,8 +15,8 @@ package = "Lanes" | |||
| 15 | version = "2.0-11" | 15 | version = "2.0-11" |
| 16 | 16 | ||
| 17 | source= { | 17 | source= { |
| 18 | url= "http://github.com/downloads/LuaLanes/lanes/lanes-2.0.11.tgz", | 18 | url= "git://github.com/LuaLanes/lanes.git", |
| 19 | md5= "23f8e3f88cca5fcea6c600014d806850" | 19 | branch= "v2.0.11" |
| 20 | } | 20 | } |
| 21 | 21 | ||
| 22 | description = { | 22 | description = { |
diff --git a/lanes-2.1-0.rockspec b/lanes-2.1-0.rockspec new file mode 100644 index 0000000..a8ff1d2 --- /dev/null +++ b/lanes-2.1-0.rockspec | |||
| @@ -0,0 +1,97 @@ | |||
| 1 | -- | ||
| 2 | -- Lanes rockspec | ||
| 3 | -- | ||
| 4 | -- Ref: | ||
| 5 | -- <http://luarocks.org/en/Rockspec_format> | ||
| 6 | -- | ||
| 7 | -- History: | ||
| 8 | -- BGe 1-Mar-2011: 2.1.0 | ||
| 9 | -- BGe 27-Jan-2011: 2.0.11 (see CHANGES) | ||
| 10 | -- AKa 1-Sep-2008: 2.0-2 (NOT sent to list): fixed VC++ not finding DLL issue | ||
| 11 | -- AKa 20-Aug-2008: 2.0-1 sent to luarocks-developers | ||
| 12 | -- | ||
| 13 | |||
| 14 | package = "Lanes" | ||
| 15 | |||
| 16 | version = "2.1-0" | ||
| 17 | |||
| 18 | source= { | ||
| 19 | url= "git://github.com/LuaLanes/lanes.git", | ||
| 20 | branch= "v2.1.0" | ||
| 21 | } | ||
| 22 | |||
| 23 | description = { | ||
| 24 | summary= "Multithreading support for Lua", | ||
| 25 | detailed= [[ | ||
| 26 | Lua Lanes is a portable, message passing multithreading library | ||
| 27 | providing the possibility to run multiple Lua states in parallel. | ||
| 28 | ]], | ||
| 29 | license= "MIT/X11", | ||
| 30 | homepage="http://kotisivu.dnainternet.net/askok/lanes/", | ||
| 31 | maintainer="Benoit Germain <bnt.germain@gmail.com>" | ||
| 32 | } | ||
| 33 | |||
| 34 | -- Q: What is the difference of "windows" and "win32"? Seems there is none; | ||
| 35 | -- so should we list either one or both? | ||
| 36 | -- | ||
| 37 | supported_platforms= { "win32", | ||
| 38 | "macosx", | ||
| 39 | "linux", | ||
| 40 | "freebsd", -- TBD: not tested | ||
| 41 | "msys", -- TBD: not supported by LuaRocks 1.0 (or is it?) | ||
| 42 | } | ||
| 43 | |||
| 44 | dependencies= { | ||
| 45 | "lua >= 5.1, <= 5.2", | ||
| 46 | } | ||
| 47 | |||
| 48 | -- | ||
| 49 | -- Non-Win32: build using the Makefile | ||
| 50 | -- Win32: build using 'make-vc.cmd' and "manual" copy of products | ||
| 51 | -- | ||
| 52 | -- TBD: How is MSYS treated? We'd like (really) it to use the Makefile. | ||
| 53 | -- It should be a target like "cygwin", not defining "windows". | ||
| 54 | -- "windows" should actually guarantee Visual C++ as the compiler. | ||
| 55 | -- | ||
| 56 | -- Q: Does "win32" guarantee we have Visual C++ 2005/2008 command line tools? | ||
| 57 | -- | ||
| 58 | -- Note: Cannot use the simple "module" build type, because we need to precompile | ||
| 59 | -- 'src/keeper.lua' -> keeper.lch and bake it into lanes.c. | ||
| 60 | -- | ||
| 61 | build = { | ||
| 62 | |||
| 63 | -- Win32 (Visual C++) uses 'make-vc.cmd' for building | ||
| 64 | -- | ||
| 65 | platforms= { | ||
| 66 | windows= { | ||
| 67 | type= "command", | ||
| 68 | build_command= "make-vc.cmd", | ||
| 69 | install= { | ||
| 70 | lua = { "src/lanes.lua" }, | ||
| 71 | lib = { "lua51-lanes.dll" } | ||
| 72 | } | ||
| 73 | } | ||
| 74 | }, | ||
| 75 | |||
| 76 | -- Other platforms use the Makefile | ||
| 77 | -- | ||
| 78 | -- LuaRocks defines CFLAGS, LIBFLAG and LUA_INCDIR for 'make rock', | ||
| 79 | -- defines LIBDIR, LUADIR for 'make install' | ||
| 80 | -- | ||
| 81 | -- Ref: <http://www.luarocks.org/en/Paths_and_external_dependencies> | ||
| 82 | -- | ||
| 83 | type = "make", | ||
| 84 | |||
| 85 | build_target = "rock", | ||
| 86 | build_variables= { | ||
| 87 | CFLAGS= "$(CFLAGS) -I$(LUA_INCDIR)", | ||
| 88 | LIBFLAG= "$(LIBFLAG)", | ||
| 89 | }, | ||
| 90 | |||
| 91 | install_target = "install", | ||
| 92 | install_variables= { | ||
| 93 | LUA_LIBDIR= "$(LIBDIR)", | ||
| 94 | LUA_SHAREDIR= "$(LUADIR)", | ||
| 95 | } | ||
| 96 | } | ||
| 97 | |||
